COSMosFL:用于故障定位的小型语言模型集成
COSMosFL: Ensemble of Small Language Models for Fault Localisation
AI总结:
本文提出任务级LLM集成技术COSMos,通过投票机制结合小型语言模型与大型语言模型,并以AutoFL实例化,在Defects4J上验证其能在故障定位准确性与推理成本之间实现帕累托最优。
摘要:
大语言模型(LLMs)正被迅速采用,以构建用于软件工程的强大工具和智能体,但其中大多数严重依赖超大规模的闭源模型。这反过来可能因安全问题以及财务成本和环境影响而阻碍更广泛的采用。最近,许多开源的小型语言模型(SLMs)相继发布并逐渐受到关注。虽然SLMs规模更小、更节能,因而更容易在本地部署,但与更大的闭源LLMs相比,它们往往表现出更差的性能。我们提出COSMos,这是一种任务级LLM集成技术,使用投票机制,以在SLMs和LLMs之间提供更广泛的选择范围。我们使用基于LLM的故障定位技术AutoFL来实例化COSMos,并报告LLM准确性与各种成本(如能耗、推理时间和使用的token数量)之间的成本效益权衡。使用Defects4J进行的实证评估表明,与单个模型相比,COSMos能够构建有效的集成,在故障定位准确性和推理成本方面实现帕累托最优。
英文摘要:
LLMs are rapidly being adopted to build powerful tools and agents for software engineering, but most of them rely heavily on extremely large closed-source models. This, in turn, can hinder wider adoption due to security issues as well as financial cost and environmental impact. Recently, a number of open source Small Language Models (SLMs) are being released and gaining traction. While SLMs are smaller, more energy-efficient, and therefore easier to locally deploy, they tend to show worse performance when compared to larger closed LLMs. We present COSMos, a task-level LLM ensemble technique that uses voting mechanism, to provide a broader range of choice between SLMs and LLMs. We instantiate COSMos with an LLM-based Fault Localisation technique, AutoFL, and report the cost-benefit trade-off between LLM accuracy and various costs such as energy consumption, inference time, and the number of tokens used. An empirical evaluation using Defects4J shows that COSMos can build effective ensembles that can achieve Pareto-optimality in terms of FL accuracy and inference cost, when compared to individual models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。