COSMosFL: Ensemble of Small Language Models for Fault Localisation
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 23 of its 44 references that are in the map. First posted on arXiv 5 Feb 2025.
Builds on
23 of 44 references.
References · 23
- 2017Attention Is All You Needcited by 60,361
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,254
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024RouteLLM: Learning to Route LLMs with Preference Datacited by 682
- 2022Mixture-of-Experts with Expert Choice Routingcited by 623
11 more
- 2023LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusioncited by 564
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 232
- 2023Large Language Models for Test-Free Fault Localizationcited by 67
- 2024Learning to Decode Collaboratively with Multiple Language Modelscited by 62
- 2023A Quantitative and Qualitative Evaluation of LLM-Based Explainable Fault Localizationcited by 50
- 2023Better patching using LLM prompting, via Self-Consistencycited by 29
- 2023Large Language Models in Fault Localisationcited by 28
- 2019Arachne: Search Based Repair of Deep Neural Networkscited by 26
- 2023Towards Autonomous Testing Agents via Conversational Large Language Modelscited by 13
- 2023Evaluating Diverse Large Language Models for Automatic and General Bug Reproductioncited by 12
- 2023InfeRE: Step-by-Step Regex Generation via Chain of Inferencecited by 5
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2025The Rise of Small Language Models in Healthcare: A Comprehensive Surveycited by 18
- 2026Atropos: Improving Cost-Benefit Trade-off of LLM-based Agents under Self-Consistency with Early Termination and Model Hotswapcited by 3
- 2026SLMJury: Can Small Language Models Judge as Well as Large Ones?cited by 3
- 2026SLMJury: Can Small Language Models Judge as Well as Large Ones?5 Jun 2026
- 2026Atropos: Improving Cost-Benefit Trade-off of LLM-based Agents under Self-Consistency with Early Termination and Model Hotswap16 Apr 2026
- 2025The Rise of Small Language Models in Healthcare: A Comprehensive Survey23 Apr 2025