LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusion

Dongfu Jiang, Xiang Ren, Bill Yuchen Lin
6/5/2023
cs.CLcs.AIcs.LG

No official code found. Best implementation: yuchenlin/LLM-Blender (995 stars, Apache-2.0, last commit 2024-10-22).

Abstract

We present LLM-Blender, an ensembling framework designed to attain consistently superior performance by leveraging the diverse strengths of multiple open-source large language models (LLMs). Our framework consists of two modules: PairRanker and GenFuser, addressing the observation that optimal LLMs for different examples can significantly vary. PairRanker employs a specialized pairwise comparison method to distinguish subtle differences between candidate outputs. It jointly encodes the input text and a pair of candidates, using cross-attention encoders to determine the superior one. Our results demonstrate that PairRanker exhibits the highest correlation with ChatGPT-based ranking. Then, GenFuser aims to merge the top-ranked candidates, generating an improved output by capitalizing on their strengths and mitigating their weaknesses. To facilitate large-scale evaluation, we introduce a benchmark dataset, MixInstruct, which is a mixture of multiple instruction datasets featuring oracle pairwise comparisons. Our LLM-Blender significantly outperform individual LLMs and baseline methods across various metrics, establishing a substantial performance gap.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ACL2023] We introduce LLM-Blender, an innovative ensembling framework to attain consistently superior performance by leveraging the diverse strengths of multiple open-source LLMs. LLM-Blender cut the weaknesses through ranking and integrate the strengths through fusing generation to enhance the capability of LLMs.

99591Shell, PythonMay 31, 20231 years agoApache-2.0
ensamble-methodslarge-language-modelsllmnatural-language-processing

Cite this paper

@article{jiang2023llmblender,
  title  = {LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusion},
  author = {Dongfu Jiang and Xiang Ren and Bill Yuchen Lin},
  year   = {2023},
  eprint = {2306.02561},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.02561v3}
}

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/2306.02561.svg)](https://codeofpaper.com/paper/2306.02561)

Discussion