Skip to main content
QUICK REVIEW

[논문 리뷰] LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusion

Dongfu Jiang, Xiang Ren|arXiv (Cornell University)|2023. 06. 05.
Natural Language Processing TechniquesComputer Science인용 수 9
한 줄 요약

LLM-Blender 앙상블은 PairRanker와 GenFuser를 결합하여 오픈 소스 LLM을 페어랭킹 모듈로 연결하고 MixInstruct를 이 작업의 벤치마크로 도입합니다. 이는 개별 모델과 기본 앙상블 방법보다 우수한 성능을 달성합니다.

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.

연구 동기 및 목표

  • 다양한 오픈 소스 LLM의 다이내믹한 앙상블 구성을 통해 어느 한 모델보다 우수한 성능을 달성하도록 동적 앙상블을 자극합니다.
  • 후보 출력 간의 미묘한 차이를 포착하는 페어와이즈 랭킹 모듈을 개발합니다.
  • 최고 후보들을 종합하여 더 우수한 최종 출력을 생성하는 생성적 융합 모듈을 만듭니다.
  • oracle 스타일의 페어와이즈 비교를 통해 LLM 앙상블을 평가하는 MixInstruct를 벤치마크로 제공합니다.
  • 앵상블이 지시문 준수 작업 전반에서 견고성과 정렬(alignment) 개선을 가져오는지 입증합니다.

제안 방법

  • PairRanker가 입력과 후보 출력 한 쌍을 교차 주의(attention)로 함께 인코딩하여 페어우월성을 학습합니다.
  • 모든 후보 쌍에 걸친 페어 비교 행렬을 구성하고 이를 통해 랭킹을 도출합니다.
  • 최대 로짓(MaxLogits) 집계(기본값)를 사용하여 O(N) 시간에 상위 후보를 효율적으로 선택합니다.
  • GenFuser가 입력과 상위-K 랭크 후보를 받아 seq2seq 모델(실험에선 Flan-T5-XL 사용)로 최종 출력을 생성합니다.
  • MixInstruct는 PairRanker를 감독하고 앙상블 성능을 평가하기 위해 oracle 스타일의 페어 비교 데이터를 제공합니다.
Figure 1: Motivation of ensembling LLMs. Based on this pie chart about the percentage of examples where each LLM ranks 1st, we can see that optimal LLMs for different examples can significantly vary.
Figure 1: Motivation of ensembling LLMs. Based on this pie chart about the percentage of examples where each LLM ranks 1st, we can see that optimal LLMs for different examples can significantly vary.

실험 결과

연구 질문

  • RQ1전통적인 포인트-와이즈 점수보다 페어와이즈 후보 비교가 여러 LLM 후보 중에서 최상의 출력 식별에 더 효과적입니까?
  • RQ2상위-K 랭크 후보들의 융합이 단일 후보나 간단한 재랭킹보다 우수한 출력을 만들어냅니까?
  • RQ3LLM- Blender 프레임워크는 개별 LLM과 기존 베이스라인에 비해 지시사항-준수 과제에서 어떤 성능을 보입니까?
  • RQ4MixInstruct는 다양한 지시 작업에서 LLM 앙상블 방법을 평가하는 효과적인 벤치마크입니까?
  • RQ5이 설정에서 자동화된 지표(BERTScore, BLEURT, BARTScore)와 GPT 기반 랭킹(GPT-Rank) 간의 상관관계는 어떤가요?

주요 결과

  • PairRanker는 GPT-Rank와의 상관관계에서 가장 높은 값을 달성하여 SummaReranker 및 SimCLS를 능가합니다.
  • 상위 3개의 PairRanker 선택과 GenFuser를 더한 LLM- Blender는 최상의 단일 LLM보다 GPT-Rank 및 NLG 지표에서 우수한 성능을 보입니다.
  • MixInstruct에서 PR(K=3) + GF를 사용하는 LLM- Blender는 GPT-Rank 3.01, BERTScore 79.09, BARTScore -3.02, BLEURT -0.17, Top-3 비율 68.59, OA 및 Vicuna를 이기는 출력 비율이 더 큽니다.
  • PairRanker 단독은 최상의 개별 모델보다 개선된 성능을 보이며 GPT-Rank 3.20 및 Top-3 65.12%를 달성하여 예시별 모델 선택의 효과를 보여줍니다.
  • BARTScore는 평가 지표 중 GPT-Rank와 강한 상관관계를 보이며 PairRanker 학습의 지도에 유용하다는 점을 지지합니다.
Figure 2: The LLM- Blender framework. For each input $x$ from users, we employ $N$ different LLMs to get output candidates. Then, we pair all candidates and concatenate them with the input before feeding them to PairRanker , producing a matrix as comparison results. By aggregating the results in the
Figure 2: The LLM- Blender framework. For each input $x$ from users, we employ $N$ different LLMs to get output candidates. Then, we pair all candidates and concatenate them with the input before feeding them to PairRanker , producing a matrix as comparison results. By aggregating the results in the

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.