DAG-MoE: From Simple Mixture to Structural Aggregation in Mixture-of-Experts

Jiarui Feng, Hanqing Zeng, Karish Grover, Ruizhong Qiu, Yinglong Xia, Qiang Zhang, Qifan Wang, Ren Chen, Dongqi Fu, Jiayi Liu, Zhuokai Zhao, Xiangjun Fan, Benyu Zhang, Yixin Chen

Introduction

Mixture-of-Experts (MoE) has become the standard architecture for scaling Large Language Models (LLMs), allowing for massive parameter counts without a proportional increase in compute cost. However, scaling MoE typically involves making experts more fine-grained, which creates a massive bottleneck in routing logic.

Furthermore, standard MoE layers suffer from a fundamental limitation in aggregation. Currently, a router picks the top-$K$ experts and combines their outputs via a simple weighted sum. This permutation-invariant operation means experts do not interact; it is akin to a committee where everyone shouts their opinion at once rather than having a structured discussion. This lack of internal structure limits the model's ability to perform multi-step reasoning within a single layer. To address this, researchers introduce DAG-MoE, a framework that organizes selected experts into a learned Directed Acyclic Graph (DAG), enabling complex, multi-step interactions with negligible computational overhead.

Methodology: Structural Aggregation via DAGs

DAG-MoE replaces the simple weighted sum with a structural aggregation module. Instead of merely summing outputs, a lightweight module learns a DAG structure for each token.

This module operates over $L$ iterations. In each step, it treats the experts as nodes and learns which nodes should communicate with others from the previous iteration. Crucially, this DAG is token-adaptive; the model learns to adjust the aggregation structure based on the specific input, allowing for distinct reasoning paths for different types of data. To maintain efficiency and preserve the compute savings of the MoE architecture, the module projects expert representations into a lower-dimensional space before calculating connectivity.

Experimental Setup

The researchers evaluated DAG-MoE across pretraining, out-of-domain evaluation, and fine-tuning stages:

  • Pretraining: Utilized The Pile (an 800GB dataset of diverse text) with a small-scale study on 12B tokens and a larger-scale run on 40B tokens.
  • Out-of-Domain Evaluation: Generalization was tested on FineWeb-Edu, Wikipedia, and C4.
  • Fine-Tuning: Models were instruction-tuned on a mixture of datasets, including Alpaca, Open-Platypus, SlimOrca, MathInstruct, Open-R1-Math, and MetaMathQA.
  • Downstream Benchmarks: Performance was measured on standard tasks such as PIQA, ARC-e, HellaSwag, GPQA, Lambada, MMLU, and BBH.

Key Insights and Results

Enhanced Expressiveness and Reasoning

The paper theoretically proves that a DAG-style MoE is strictly more powerful than a standard MoE. By altering how experts are combined, the space of possible functions expands significantly. A standout theoretical result is that a single DAG-MoE layer can simulate a full pass of Dynamic Programming (DP)—a feat impossible for standard MoE layers lacking sequential, hierarchical structure.

Superior Inductive Bias

Compared to a baseline that uses a large MLP to mix experts, the DAG version performs better, indicating that structured, iterative composition provides a superior inductive bias for language modeling.

Performance Gains

In pretraining, DAG-MoE consistently achieved lower perplexity than standard MoE baselines across all tested scales. The gap widened on out-of-domain data (e.g., -1.00 perplexity on C4 vs. -0.24 on The Pile), suggesting better generalization to unfamiliar text.

The most significant gains appeared in downstream tasks requiring multi-step inference. After fine-tuning, DAG-MoE improved over the baseline by +6.06 on GPQA (expert-level Q&A), +3.46 on Lambada, and +3.15 on PIQA.

Minimal Overhead

Despite the added complexity of DAG learning, the throughput overhead remains surprisingly low—only 1.5% to 4.5% slower than standard MoE.

Limitations and Future Directions

The current implementation relies on a simplified DAG with a fixed number of nodes per depth and only adjacent-layer connections. Exploring more flexible, unconstrained DAG structures could yield even better results. Additionally, while results at the 700M parameter scale are promising, future work must verify if these advantages persist at the scale of hundreds of billions of parameters. Finally, identifying and learning the truly optimal DAG for a given token remains an open challenge, potentially requiring sophisticated architecture search or reinforcement learning techniques.

Summary updated

BibTeX
@inproceedings{feng2026dag,
  author = {Jiarui Feng and Hanqing Zeng and Karish Grover and Ruizhong Qiu and Yinglong Xia and Qiang Zhang and Qifan Wang and Ren Chen and Dongqi Fu and Jiayi Liu and Zhuokai Zhao and Xiangjun Fan and Benyu Zhang and Yixin Chen},
  title = {{DAG-MoE: From Simple Mixture to Structural Aggregation in Mixture-of-Experts}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=yv1iRquxF9},
}
Figure