paper-with-me

홈 › Papers

Wisdom and Delusion of LLM Ensembles for Code Generation and Repair

2025-10-24 · Fernando Vallecillos-Ruiz, Max Hort, Leon Moonen arxiv

Today's pursuit of a single Large Language Model (LMM) for all software engineering tasks is resource-intensive and overlooks the potential benefits of complementarity, where different models contribute unique strengths. However, the degree to which coding LLMs complement each other and the best strategy for maximizing an ensemble's potential are unclear, leaving practitioners without a clear path to move beyond single-model systems. To address this gap, we empirically compare ten individual LLMs from five families, and three ensembles of these LLMs across three software engineering benchmarks covering code generation and program repair. We assess the complementarity between models and the performance gap between the best individual model and the ensembles. Next, we evaluate various selection heuristics to identify correct solutions from an ensemble's candidate pool. We find that the theoretical upperbound for an ensemble's performance can be 83% above the best single model. Our results show that consensus-based strategies for selecting solutions fall into a "popularity trap," amplifying common but incorrect outputs. In contrast, a diversity-based strategy realizes up to 95% of this theoretical potential, and proves effective even in small two-model ensembles, enabling a cost-efficient way to enhance performance by leveraging multiple LLMs.

📄 PDF Abstract BibTeX arXiv:2510.21513

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationProgram Repair

Similar Papers 제목 키워드 기반

ModelWisdom: An Integrated Toolkit for TLA+ Model Visualization, Digest and Repair

2026-02-12 · Zhiyong Chen, Jialun Cao, Chang Xu, Shing-Chi Cheung arxiv

Model checking in TLA+ provides strong correctness guarantees, yet practitioners continue to face significant challenges in interpreting counterexamples, understanding large state-transition graphs, and repairing faulty …

Delusions of Large Language Models

2025-03-09 · Hongshen Xu, Zixv yang, Zichen Zhu, Kunyao Lan 외

Large Language Models often generate factually incorrect but plausible outputs, known as hallucinations. We identify a more insidious phenomenon, LLM delusion, defined as high belief hallucinations, incorrect outputs wit…

Question AnsweringRetrieval-augmented Generation

Lost in Delusion: Examining LLM Safety Under User Delusions and Distress

2026-05-31 · Andrew Aquilina, Chetna Nihalani, Vasudha Varadarajan, Nathan S. Fishbein 외 arxiv

LLM chatbots increasingly serve as a first source of support for people in psychological distress, including those whose distress is entangled with delusional beliefs. Prior work on LLM mental-health safety largely evalu…

AI Psychosis: Does Conversational AI Amplify Delusion-Related Language?

2026-03-20 · Soorya Ram Shimgekar, Vipin Gunda, Jiwon Kim, Violeta J. Rodriguez 외 arxiv

Conversational AI systems are increasingly used for personal reflection and emotional disclosure, raising concerns about their effects on vulnerable users. Recent anecdotal reports suggest that prolonged interactions wit…

Characterizing Delusional Spirals through Human-LLM Chat Logs

2026-03-17 · Jared Moore, Ashish Mehta, William Agnew, Jacy Reese Anthis 외 arxiv

As large language models (LLMs) have proliferated, disturbing anecdotal reports of negative psychological effects, such as delusions, self-harm, and ``AI psychosis,'' have emerged in global media and legal discourse. How…