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

Wenzhe Li, Yong Lin, Mengzhou Xia, Chi Jin

TL;DR

This paper challenges the prevailing wisdom that ensembling different Large Language Models (LLMs) is the best way to boost performance. The authors introduce Self-MoA, a method that aggregates multiple outputs from a single top-performing model, demonstrating that it consistently outperforms traditional "Mixed-MoA" by prioritizing output quality over cross-model diversity.

What Problem Does This Paper Address?

Ensembling—combining the outputs of multiple models—is a proven strategy for improving LLM performance at inference time. The popular "Mixture-of-Agents" (MoA) framework typically uses a diverse set of different models (proposers) to generate responses, which are then synthesized by another LLM (aggregator).

However, the authors identify a critical "quality-diversity trade-off." While mixing different models increases diversity, it often introduces lower-quality outputs from weaker models into the mix. This paper investigates whether the benefits of MoA actually stem from this cross-model diversity or if simply generating and aggregating multiple responses from the best available model is more effective.

Methods

The authors compare three primary architectures, as illustrated in the figure below:

Figure 1: Comparison of MoA, Self-MoA, and Self-MoA-Seq. (a) In MoA, multiple models respond to a query, followed by an aggregator synthesizing their outputs. (b) Self-MoA simplifies this by repeatedly sampling from a single model. (c) Self-MoA-Seq extends Self-MoA by applying a sliding window to combine the best output so far with candidate outputs. At each timestep, the synthesized output is repeated to bias the aggregator towards it, reducing the context length requirements and expanding the method’s applicability. Note that MoA can extend to multiple rounds of aggregation (Appendix A.1), while Self-MoA and Self-MoA- Seq can extend to more outputs, but we omit them here for clarity.
  1. Mixed-MoA (Standard): Multiple different LLMs ($M_1, M_2, M_3$) generate responses to a query. An aggregator ($A$) synthesizes these into a final output.
  2. Self-MoA: A single top-performing model ($M_1$) is sampled multiple times (using a temperature like 0.7 to ensure variety). The aggregator then synthesizes these "in-model" diverse responses.
  3. Self-MoA-Seq: To overcome context window limits when aggregating many samples, the authors propose a sequential version. It uses a sliding window to iteratively combine the "best output so far" with new candidate samples.

To quantify their findings, they use the Vendi Score to measure diversity and average proposer accuracy to measure quality, then perform linear regression to see how each factor influences final performance.

Datasets

The study evaluates these methods across a broad range of benchmarks:

  • AlpacaEval 2.0: A standard for instruction-following, using a GPT-4-based annotator and length-controlled (LC) win rates.
  • MMLU-redux: A cleaned version of the Massive Multitask Language Understanding dataset (3,000 samples).
  • CRUX: A benchmark for Python code reasoning and execution.
  • MATH: Challenging competition-level mathematics problems.
  • MT-Bench: A multi-turn conversation benchmark.

Key Insights and Ideas

  • Quality Trumps Diversity: The most significant "aha moment" is that MoA performance is highly sensitive to the quality of the proposers. Mixing in weaker models for the sake of diversity often "dilutes" the pool, leading to worse results than just using the best model multiple times.
  • The Pareto Front: The authors visualize a clear trade-off between quality and diversity. As shown in Figure 2, the best-performing configurations (the yellow/green stars) typically cluster in the high-quality, relatively lower-diversity region.
Figure 2: The diversity-quality trade-off: Mixed-MoA incorporates different individual models as proposers, while Self-MoA uses the same individual model for this role. Quality is assessed based on the average performance of each proposer, and diversity is computed with the Vendi Score [Dan Friedman and Dieng, 2023] of outputs generated by proposers on the same prompts.
  • In-Model Diversity is Sufficient: Repeated sampling from a single strong model provides enough "in-model" diversity to allow the aggregator to correct errors or synthesize a more comprehensive answer, without the risk of being misled by poor outputs from inferior models.
  • Aggregator Sensitivity: The aggregator model acts as a filter. If the input quality is high, the aggregator can effectively pick the best parts. If the input quality is low (due to mixing in weak models), the aggregator struggles to produce a high-quality result.

Key Results

  • New State-of-the-Art: By applying Self-MoA to top-tier models like gemma-2-9b-it-WPO-HB, the authors achieved a new SOTA on the AlpacaEval 2.0 leaderboard with a 78.5% LC win rate.
  • Outperforming Mixed-MoA: On AlpacaEval 2.0, Self-MoA achieved a 6.6 point improvement over the standard Mixed-MoA approach using the same number of forward passes.
  • Consistent Gains: Across MMLU, CRUX, and MATH, Self-MoA provided an average 3.8% improvement over standard MoA.
  • Efficiency: In a 3-layer setting, Self-MoA outperformed the Mixed-MoA baseline while requiring only half the number of forward passes (7 vs 13).

Limitations and Future Work

  • When Mixing Helps: The authors acknowledge that Mixed-MoA can be beneficial in specific "mixture tasks" where different models have specialized, non-overlapping strengths (e.g., one model is great at math, another at code). However, in general-purpose tasks, this is rarely the case.
  • Aggregator Bottleneck: The performance of Self-MoA is still limited by the aggregator's ability. If the aggregator is significantly weaker than the proposer (as seen in some MATH experiments), the benefits of ensembling are diminished.
  • Inference Cost: While Self-MoA is more effective than Mixed-MoA, it still requires multiple samples per query, which increases inference latency and cost compared to a single model pass. Future work could explore more efficient ways to achieve these gains.

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 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 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