Mixture of Parrots: Mixtures of experts improve memorization more than reasoning

Samy Jelassi, Clara Mohri, David Brandfonbrener, Alex Gu, Nikhil Vyas, Nikhil Anand, David Alvarez-Melis, Yuanzhi Li, Sham M. Kakade, Eran Malach

TL;DR

Mixture-of-Experts (MoE) models can significantly boost memorization capabilities, allowing them to store more knowledge with fewer active parameters. However, this comes at a cost: MoEs struggle to improve reasoning abilities compared to standard dense models, even when given more experts.

What Problem Does This Paper Address?

The rapid scaling of large language models (LLMs) has led to impressive capabilities, but also to a proportional increase in computational cost. Mixture-of-Experts (MoE) architectures offer a way to increase model size (total parameters) without a proportional increase in computation (active parameters), by routing tokens to specialized "experts." While MoEs have become popular, it's unclear how they truly trade off performance against standard dense models, especially concerning different types of tasks: memorization (knowledge recall) versus reasoning (problem-solving). This paper investigates this trade-off, aiming to understand when MoEs offer a genuine advantage and when they fall short.

Methods

The authors employ a multi-pronged approach:

  • Theoretical Analysis: They use communication-complexity lower bounds to demonstrate that MoEs have fundamental limitations in solving certain reasoning tasks (like graph connectivity) that dense models can overcome with a slightly larger width. Conversely, they show MoEs can be highly efficient for memorization tasks.
  • Empirical Evaluation: They pre-train a series of MoE and dense transformer models on large datasets. These models are then evaluated on a diverse set of benchmarks covering world knowledge (memorization-intensive) and reasoning (commonsense, math).
  • Analysis of Generalization Gap: They examine the difference between training and test accuracies to infer how well models memorize data versus generalize.

Datasets

The paper uses a combination of existing and implicitly defined datasets:

  • Pre-training:
    • Natural Language: FineWeb-edu, Cosmopedia, Wikipedia, and downstream task training sets.
  • Math: Proof-Pile 2, OpenMathInstruct, DeepMind math, and various instruction-following datasets (Math-Orca, TinyGSM, StackMathQA, MAmmoTH2, NuminaMath-CoT, MetaMathQA).
  • Evaluation:
    • World Knowledge: TriviaQA, Natural Questions, HotpotQA, WebQuestions, Complex WebQuestions.
  • Commonsense Reasoning: ARC-C, ARC-E, CommonsenseQA, HellaSwag, OpenBookQA, PIQA, SciQ, SIQA, WinoGrande.
  • Math Reasoning: SVAMP, GSM8k, GSM-Hard, Hendrycks-MATH, Minerva-MATH.

Key Insights and Ideas

  • MoEs are Memory Masters: Increasing the number of experts in an MoE model consistently improves its ability to memorize data, effectively leveraging its large parameter count for knowledge storage. This is particularly evident in world knowledge tasks.
  • Reasoning Remains a Challenge: Despite having more experts, MoE models do not show significant improvements on reasoning tasks compared to dense models of similar parameter counts. In fact, dense models often outperform MoEs on these tasks.
  • Theoretical Limits of MoEs: The paper provides theoretical evidence that MoEs have inherent limitations in solving certain reasoning problems, suggesting that simply adding more experts might not overcome these fundamental architectural constraints.
  • Generalization Gap: MoEs exhibit a larger generalization gap on reasoning tasks, indicating a tendency to memorize training data rather than learn generalizable reasoning patterns, especially at larger scales.
  • Task-Dependent Benefits: The effectiveness of MoEs is highly dependent on the task. They excel at knowledge-intensive tasks but offer diminishing returns for reasoning-heavy tasks.

Key Results

  • World Knowledge: MoEs consistently outperform dense transformers on world knowledge benchmarks when fixing validation perplexity, demonstrating their superior memorization capacity.
  • Reasoning Tasks: On commonsense and math reasoning benchmarks, MoEs perform similarly to or worse than dense models with the same total number of parameters. Increasing the number of experts does not yield comparable gains to increasing the model's width (dimension).
  • Generalization Gap: Figure 2 shows that MoEs suffer from a more significant generalization gap than dense transformers on math reasoning tasks (GSM8k and Hendrycks-MATH) at scales beyond 159M parameters, suggesting a higher propensity for memorization.
  • Theoretical Separation: The paper proves that for certain reasoning tasks, a dense transformer with a specific width can solve the problem, while a sparse MoE model with the same number of total parameters cannot, especially when the number of experts is large.

Limitations and Future Work

  • Focus on Depth-1: Much of the theoretical analysis is focused on single-layer transformers. Extending these findings to deeper architectures would be valuable.
  • Specific Reasoning Tasks: While the paper covers math and commonsense reasoning, exploring a broader range of complex reasoning tasks could provide more comprehensive insights.
  • Routing Mechanisms: The paper uses standard top-1 routing. Investigating how different routing strategies might impact the reasoning vs. memorization trade-off could be a fruitful direction.
  • Computational Cost: While MoEs offer computational advantages in terms of active parameters, the total parameter count can still be very large, posing challenges for deployment and memory. Future work could explore more efficient MoE variants.

Summary updated

BibTeX
@inproceedings{jelassi2025mixture,
  author = {Samy Jelassi and Clara Mohri and David Brandfonbrener and Alex Gu and Nikhil Vyas and Nikhil Anand and David Alvarez-Melis and Yuanzhi Li and Sham M. Kakade and Eran Malach},
  title = {{Mixture of Parrots: Mixtures of experts improve memorization more than reasoning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=9XETcRsufZ},
}
Figure