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

Mari Ashiga, Wei Jie, Fan Wu, Vardan Voskanyan, Fateme Dinmohammadi +3 more
3/13/2025
cs.CLcs.AIcs.LG

No confident code implementation found for this paper. 10 possible matches can be shown below.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 10 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ashiga2025ensemble,
  title  = {Ensemble Learning for Large Language Models in Text and Code Generation: A Survey},
  author = {Mari Ashiga and Wei Jie and Fan Wu and Vardan Voskanyan and Fateme Dinmohammadi and Paul Brookes and Jingzhi Gong and Zheng Wang},
  year   = {2025},
  eprint = {2503.13505},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.13505v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.13505.svg)](https://codeofpaper.com/paper/2503.13505)

Discussion