Unveiling Hidden Collaboration within Mixture-of-Experts in Large Language Models

Yuanbo Tang, Yan Tang, Naifan Zhang, Meixuan Chen, Yang LiarXiv 2025 · DOI · arXiv

Introduction

Mixture-of-Experts (MoE) architectures, utilized in state-of-the-art Large Language Models (LLMs) like Mixtral and DeepSeek, offer significant computational efficiency by activating only a subset of specialized "experts" for any given token. Despite their success, the internal collaborative dynamics of these experts remain largely opaque. Current understanding identifies which experts are routed but fails to map the intricate "teamwork" occurring across different layers. This research introduces a framework to uncover these hidden collaboration patterns and leverages them to optimize model performance through pruning.

Methodology: Hierarchical Pattern Mining and Pruning

To decode the collaborative structure of MoE models, the authors propose two integrated approaches: Hierarchical Sparse Dictionary Learning (HSDL) and Contribution-Aware Expert Pruning (CAEP).

Overview of the MoE collaboration pattern mining and pruning pipeline.

Hierarchical Sparse Dictionary Learning (HSDL)

HSDL identifies "expert teams" by applying dictionary learning to expert activation matrices. While standard dictionary learning decomposes data into basic atoms, the hierarchical approach recursively breaks these atoms down. This reveals collaboration at multiple scales: broad task-level groupings in shallower layers and fine-grained semantic specializations in deeper layers.

Contribution-Aware Expert Pruning (CAEP)

Traditional pruning often targets experts based on low activation frequency. In contrast, CAEP evaluates an expert's importance based on its role within the identified collaborative patterns. By iteratively removing experts with low contribution to these functional "teams," CAEP ensures that the model's core logic remains intact while reducing its footprint.

Key Insights: The "Buddy System" and Hierarchical Specialization

The analysis reveals that experts do not operate in isolation. Instead, they form consistent "buddy systems" across layers.

Heatmap showing high correlation between specific expert pairs across different layers.

As shown in the correlation analysis, specific experts (e.g., Expert 21 in Layer 5 and Expert 3 in Layer 6) exhibit highly synchronized activation patterns. These collaborations follow a "coarse-to-fine" logic:

  • Top Layers: Form broad teams for general categories like "Dates and Math."
  • Deeper Layers: Specialize into sub-teams for niche tasks such as "Mathematical Calculation" versus "Key Verbs."
  • Domain Specificity: STEM fields (Math, Physics, CS) share similar expert distributions, whereas domains like Law utilize distinct expert clusters, suggesting a domain-specific internal logic.

Experimental Results

The researchers evaluated their methods using the MMLU-pro dataset for pattern analysis and the LM-Harness suite for pruning performance.

  • Performance Enhancement: Remarkably, CAEP-pruned models often outperformed their unpruned counterparts. On average, the method yielded a 2.5% performance improvement over baseline pruning techniques.
  • Efficiency: In tests with the DeepSeek model, CAEP achieved a score of 0.612 even after dropping 25% of experts, significantly outperforming SEER-MoE (0.587) and random pruning (0.500).
  • Robustness: The model maintained high performance even at 50% pruning, with only a 5.7% drop, indicating substantial redundancy in modern MoE architectures.

Conclusion and Future Directions

This work provides a vital map for interpreting MoE models, shifting the focus from individual experts to collaborative modules. While the current approach relies on manual labeling of semantic patterns and assumes optimal routing, future work aims to automate pattern interpretation using LLMs and explore more complex combinatorial "squads" beyond pairs and triplets. By protecting functional teams rather than just frequent experts, CAEP demonstrates that pruning can serve as a form of model optimization rather than just a compression trade-off.

Summary updated

BibTeX
@misc{tang2025unveiling,
  author = {Yuanbo Tang and Yan Tang and Naifan Zhang and Meixuan Chen and Yang Li},
  title = {{Unveiling Hidden Collaboration within Mixture-of-Experts in Large Language Models}},
  year = {2025},
  eprint = {2504.12359},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.12359},
}
Figure