Rethinking Mixture-of-Agents: Is Mixing Different Large Language Models Beneficial?

Wenzhe Li, Yong Lin, Mengzhou Xia, Chi Jin · DOI

TL;DR

This paper challenges the conventional wisdom in Mixture-of-Agents (MoA) that emphasizes diversity across different Large Language Models (LLMs). Instead, they propose "Self-MoA," which leverages in-model diversity by aggregating outputs from a single, top-performing LLM. Surprisingly, Self-MoA consistently outperforms traditional MoA, suggesting that prioritizing model quality over cross-model diversity is key to better performance.

What Problem Does This Paper Address?

The field of Large Language Models (LLMs) has seen rapid progress, with researchers often turning to ensembling techniques to boost performance. A popular ensembling method is Mixture-of-Agents (MoA), which involves querying multiple different LLMs and then using another LLM to synthesize their outputs. The prevailing assumption in MoA research has been that maximizing the diversity among these "proposer" LLMs is crucial for achieving superior results. However, this focus on diversity might inadvertently include lower-quality models, leading to a "quality-diversity trade-off." This paper questions whether this emphasis on cross-model diversity is truly beneficial and explores an alternative approach that prioritizes in-model diversity.

Methods

The core innovation is Self-MoA, an ensemble method that deviates from the standard MoA. Instead of sampling from multiple distinct LLMs, Self-MoA repeatedly samples from a single, high-performing LLM. The aggregator LLM then synthesizes these multiple outputs from the same model. This approach leverages "in-model diversity," which arises from the inherent variability in outputs generated by a single model when prompted multiple times.

To address the limitations of context windows in LLMs, the authors also introduce Self-MoA-Seq. This sequential version processes LLM outputs in a sliding window, allowing it to handle a large number of samples without overwhelming the aggregator's context length.

Datasets

The paper evaluates its methods on several standard benchmarks:

  • AlpacaEval 2.0: A benchmark for assessing instruction-following abilities, using GPT-4 as an annotator and a length-controlled win rate metric.
  • MMLU-redux: A subset of the MMLU benchmark, designed for multitask accuracy evaluation, with human-annotated corrections.
  • CRUX: A dataset for evaluating code reasoning abilities, consisting of Python code functions.
  • MATH: A dataset of challenging competition-level mathematics problems.
  • MT-Bench: Another benchmark for evaluating LLM performance, used for comparison with previous work.

Key Insights and Ideas

  • Quality Trumps Diversity (Often): The most striking insight is that aggregating outputs from a single, high-quality LLM (Self-MoA) often outperforms mixing outputs from multiple, potentially lower-quality LLMs (Mixed-MoA). This suggests that the quality of individual models is a more critical factor than their diversity.
  • The Quality-Diversity Trade-off is Real: The authors systematically investigate this trade-off, finding that MoA performance is highly sensitive to proposer quality. While diversity can help, it's most effective when combined with high-quality proposers.
  • In-Model Diversity is Powerful: Self-MoA demonstrates that leveraging the inherent variability of a single strong model can be a more effective strategy than seeking diversity across different models.
  • Context Length is a Bottleneck, Not a Dealbreaker: Self-MoA-Seq shows that sequential processing can effectively scale MoA to handle more samples, overcoming LLM context window limitations without sacrificing performance.

Key Results

  • AlpacaEval 2.0: Self-MoA achieved a 6.6% improvement over standard MoA. When applied to top-ranking models, Self-MoA achieved new state-of-the-art performance.
  • General Benchmarks (MMLU, CRUX, MATH): Self-MoA showed an average improvement of 3.8% compared to Mixed-MoA.
  • Specialized Models: When using specialized models for specific tasks (e.g., math, coding), Self-MoA with the best model for each task significantly outperformed Mixed-MoA.
  • Self-MoA-Seq: This sequential variant performed comparably to, and sometimes better than, Self-MoA, enabling scaling to more samples.
  • Statistical Analysis: Linear regression confirmed a strong positive correlation between MoA performance and both quality and diversity, but highlighted a greater sensitivity to quality.

Limitations and Future Work

  • Scenarios for Mixed-MoA: While Self-MoA generally excels, the paper identifies specific scenarios where mixing LLMs could be beneficial, particularly when individual model qualities are similar and cross-model diversity can provide a distinct advantage.
  • Computational Budgets: The paper explores scaling inference compute with Self-MoA, but the optimal number of samples can vary, and there isn't a universal "compute-optimal" solution.
  • Future Work: The authors suggest further exploring the potential of in-model diversity and advancing ensemble methods, particularly for scenarios with constrained context lengths. The development of Self-MoA-Seq is a step in this direction.

Summary updated

Abstract

Ensembling outputs from diverse sources is a straightforward yet effective approach to boost performance. Mixture-of-Agents (MoA) is one such popular ensemble method that aggregates outputs from multiple \emph{different} Large Language Models (LLMs). This paper raises the question in the context of language models: is mixing different LLMs truly beneficial? We propose Self-MoA --- an ensemble method that aggregates outputs from only the \emph{single} top-performing LLM. Our extensive experiments reveal that, surprisingly, Self-MoA outperforms standard MoA that mixes different LLMs in a large number of scenarios: Self-MoA achieves $6.6\%$ improvement over MoA on the AlpacaEval 2.0 benchmark, and an average of $3.8\%$ improvement across various benchmarks, including MMLU, CRUX, and MATH. Applying Self-MoA to one of the top-ranking models in AlpacaEval 2.0 directly achieves the new state-of-the-art performance on the leaderboard. To understand the effectiveness of Self-MoA, we systematically investigate the trade-off between diversity and quality of outputs under various MoA settings. We confirm that the MoA performance is rather sensitive to the quality, and mixing different LLMs often lowers the average quality of the models. To complement the study, we identify the scenarios where mixing different LLMs could be helpful. This paper further introduces a sequential version of Self-MoA, that is capable of aggregating a large number of LLM outputs on-the-fly over multiple rounds, and is as effective as aggregating all outputs at once.
BibTeX
@inproceedings{li2024rethinking,
  author = {Wenzhe Li and Yong Lin and Mengzhou Xia and Chi Jin},
  title = {{Rethinking Mixture-of-Agents: Is Mixing Different Large Language Models Beneficial?}},
  booktitle = {LanGame @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=rMfhBWRT6C},
}
Figure