Ensemble Learning for Large Language Models in Text and Code Generation: A Survey

View at publisher
Authors: Mari Ashiga, Jie Wei, Fan Wu, Vardan Voskanyan, Fateme Dinmohammadi, Paul S. Brookes, Jingzhi Gong, Zheng Wang, Rafail Giavrimis, Mike Basios, Leslie Kanthan
Cited by: 2
References: 37

Abstract

Generative Pretrained Transformers (GPTs) are foundational Large Language Models (LLMs) for text generation. However, individual LLMs often produce inconsistent outputs and exhibit biases, limiting their representation of diverse language patterns. The closed-source nature of many powerful LLMs further restricts industry applications due to data privacy concerns. Inspired by successes in text generation, LLM ensemble techniques are now increasingly explored for code generation. This article reviews these emerging ensemble approaches to enhance understanding, encourage further research, and promote practical implementation in both text and code generation. We categorize LLM ensembles into seven main methods—weight merging, knowledge fusion, mixture-of-experts, reward ensemble, output ensemble, routing, and cascading—analyzing capabilities of those approaches. Our findings highlight key benefits such as improved diversity representation, enhanced output quality, and greater application flexibility. These insights aid model selection for real-world tasks and crucially, lay groundwork for extending ensemble strategies to multimodal LLMs and agentic workflows.

Fields of Study & Subjects

Topic Modeling Text and Document Classification Technologies Natural Language Processing Techniques

Publication details

Journal / source
IEEE Transactions on Artificial Intelligence
Publisher
Institute of Electrical and Electronics Engineers (IEEE)
Volume
7
Issue
8
Pages
4267–4281
Publication date
4 March 2026