Paper: 2605.06665 Authors: Minbin Huang, Han Shi, Chuanyang Zheng, Yimeng Wu, Guoxuan Chen, Xingtong Yu, Yichun Yin, Hong Cheng Categories: cs.LG Code: https://github.com/Centaurus-Alpha/UniPool

Abstract

Modern Mixture-of-Experts (MoE) architectures allocate expert capacity through a rigid per-layer rule: each transformer layer owns a separate expert set. This convention couples depth scaling with linear expert-parameter growth and assumes that every layer needs isolated expert capacity. However, this allocation rule can be wasteful—experts at different layers cannot be shared even when they learn similar transformations. This paper introduces UniPool, an MoE architecture that treats expert capacity as a global architectural budget by replacing per-layer expert ownership with a single shared pool accessed by independent per-layer routers. Across five model scales trained on 30B tokens, UniPool consistently improves validation loss and enables sublinear expert scaling—using only 41.6%–66.7% of vanilla MoE’s expert parameters while matching or exceeding performance.

Key Contributions

  • Global Expert Pool Architecture: Replaces the conventional per-layer expert ownership with a single shared pool, enabling cross-layer expert reuse while preserving layer-specific routing capabilities.

  • Pool-Level Balancing: Introduces a novel auxiliary loss that balances expert utilization at the global pool level rather than per-layer, preventing globally dead experts while allowing layers to specialize on different expert subsets.

  • NormRouter Integration: Adopts NormRouter (L2-normalize-then-ReLU) for sparse and scale-stable routing into the shared expert pool, addressing stability challenges that arise from multiple layers accessing the same expert budget.

  • Sublinear Expert Scaling: Demonstrates that expert parameters need not grow linearly with depth—reduced-pool variants using 41.6%–66.7% of vanilla MoE’s expert budget match or outperform layer-wise MoE across tested scales.

  • Consistent Performance Gains: Achieves up to 0.0386 validation loss reduction across five LLaMA-architecture model scales (182M to 978M parameters) trained on 30B tokens from the Pile dataset.

Methodology

The Problem with Vanilla MoE

Traditional MoE architectures follow a rigid allocation rule:

  • Each transformer layer owns a private set of expert FFNs
  • A layer-specific router selects a sparse subset of those private experts
  • This creates a linear relationship between depth and total expert parameters
  • Experts cannot be shared across layers, even when learning similar transformations

The authors’ routing-randomization probe on production MoE models revealed significant redundancy: replacing a deep layer’s learned router with uniform random routing drops accuracy by only 1.0–1.6 points, suggesting that standard MoE training may duplicate expert functions across layers.

UniPool Architecture

UniPool fundamentally rethinks expert allocation:

  1. Single Shared Pool: All layers access the same global expert pool instead of maintaining private expert sets
  2. Independent Per-Layer Routers: Each layer retains its own router to select experts from the shared pool
  3. Pool-Level Load Balancing: Aggregates token-to-expert assignments across all layers and applies a single balancing objective over the shared pool
  4. NormRouter for Stability: Uses L2-normalize-then-ReLU scoring with learnable scaling factors to maintain stable routing across different depths

Key Design Decisions

Why Pool-Level Balancing?

  • Layer-local balancing (forcing every layer to use every expert) conflicts with cross-layer reuse
  • Pool-level balancing prevents globally dead experts while allowing layer specialization
  • Aggregates utilization statistics across layers for a single global objective

Why NormRouter?

  • Softmax-based routers designed for layer-specific experts become unstable with shared pools
  • L2 normalization makes scores less sensitive to layer-specific hidden-state scales
  • ReLU induces sparse competition over the large pool
  • Learnable scaling factors let each router adjust routing strength during training

Results

Performance Improvements

Across five model scales (182M, 469M, 650M, 830M, 978M parameters):

  • Consistent validation loss reduction: Up to 0.0386 improvement over vanilla MoE
  • Better perplexity: Improvements across all tested scales
  • Training stability: No collapse or instability issues with shared pool design

Sublinear Expert Scaling

The most striking finding is that UniPool enables efficient parameter reduction:

Expert BudgetPerformance vs Vanilla MoE
66.7%Matches or exceeds vanilla MoE
50%Competitive performance
41.6%Still matches vanilla at some scales

This demonstrates that under a shared-pool design, expert parameters can grow sublinearly with depth while remaining more efficient than vanilla MoE.

Pool Size as Hyperparameter

UniPool identifies pool size as an explicit depth-scaling hyperparameter:

  • Larger pools provide more capacity but may be underutilized
  • Smaller pools force more efficient expert reuse
  • Optimal pool size depends on model depth and task requirements

Composability with Expert Decomposition

Further analysis shows UniPool’s benefits compose with finer-grained expert decomposition, suggesting the approach is compatible with other MoE optimization techniques.

Takeaways

  • Rethinking Expert Allocation: The conventional per-layer expert ownership is a rigid design choice that may be suboptimal. Treating expert capacity as a global budget enables more efficient parameter usage.

  • Redundancy in Deep Layers: The routing-randomization probe reveals that deeper layers in vanilla MoE may have substantial redundancy, suggesting opportunities for parameter sharing.

  • Sublinear Scaling Unlocked: UniPool demonstrates that expert parameters need not scale linearly with model depth—a finding with significant implications for scaling large MoE models efficiently.

  • Practical Efficiency Gains: Using only 41.6%–66.7% of vanilla MoE’s expert parameters while matching performance translates to substantial memory and computational savings in production deployments.

  • New Design Space: Pool-level balancing and shared expert pools open a new design space for MoE architectures, with pool size emerging as a key hyperparameter for depth scaling.

  • Production Viability: The approach maintains training stability and shows consistent improvements across multiple scales, suggesting readiness for production deployment.

论文: 2605.06665 作者: Minbin Huang, Han Shi, Chuanyang Zheng, Yimeng Wu, Guoxuan Chen, Xingtong Yu, Yichun Yin, Hong Cheng 分类: cs.LG 代码: https://github.com/Centaurus-Alpha/UniPool

摘要

现代混合专家(MoE)架构通过严格的每层规则分配专家容量:每个transformer层拥有独立的专家集。这种约定将深度扩展与线性专家参数增长耦合在一起,并假设每一层都需要隔离的专家容量。然而,这种分配规则可能是浪费的——不同层的专家即使学习相似的转换也无法共享。本文介绍了UniPool,这是一种MoE架构,通过用单个共享池替代每层专家所有权,将专家容量视为全局架构预算,由独立的每层路由器访问。在30B token上训练的五个模型规模中,UniPool持续改进验证损失,并实现亚线性专家扩展——仅使用vanilla MoE专家参数的41.6%–66.7%,同时匹配或超越性能。

主要贡献

  • 全局专家池架构:用单个共享池替代传统的每层专家所有权,在保留层特定路由能力的同时实现跨层专家重用。

  • 池级平衡:引入了一种新颖的辅助损失,在全局池级别而不是每层平衡专家利用率,防止全局死亡专家,同时允许层在不同专家子集上专门化。

  • NormRouter集成:采用NormRouter(L2归一化然后ReLU)进行稀疏且规模稳定的路由到共享专家池,解决了多层访问相同专家预算时出现的稳定性挑战。

  • 亚线性专家扩展:证明专家参数不必随深度线性增长——使用vanilla MoE专家预算的41.6%–66.7%的缩减池变体在测试规模上匹配或超越逐层MoE。

  • 一致的性能提升:在30B token的Pile数据集上训练的五个LLaMA架构模型规模(182M到978M参数)中,实现高达0.0386的验证损失降低。

方法论

Vanilla MoE的问题

传统MoE架构遵循严格的分配规则:

  • 每个transformer层拥有一组私有的专家FFN
  • 层特定的路由器从这些私有专家中选择稀疏子集
  • 这在深度和总专家参数之间创建了线性关系
  • 专家无法跨层共享,即使学习相似的转换

作者对生产MoE模型的路由随机化探测揭示了显著的冗余:用均匀随机路由替换深层的学习路由器仅使准确率下降1.0–1.6个点,这表明标准MoE训练可能在各层之间复制专家功能。

UniPool架构

UniPool从根本上重新思考专家分配:

  1. 单个共享池:所有层访问相同的全局专家池,而不是维护私有专家集
  2. 独立的每层路由器:每层保留自己的路由器以从共享池中选择专家
  3. 池级负载平衡:聚合所有层的token到专家分配,并在共享池上应用单个平衡目标
  4. NormRouter保证稳定性:使用带有可学习缩放因子的L2归一化然后ReLU评分,以在不同深度保持稳定的路由

关键设计决策

为什么采用池级平衡?

  • 层局部平衡(强制每层使用每个专家)与跨层重用冲突
  • 池级平衡防止全局死亡专家,同时允许层专门化
  • 跨层聚合利用率统计以实现单个全局目标

为什么采用NormRouter?

  • 为层特定专家设计的基于softmax的路由器在共享池中变得不稳定
  • L2归一化使分数对层特定隐藏状态规模不太敏感
  • ReLU在大池上引发稀疏竞争
  • 可学习的缩放因子让每个路由器在训练期间调整路由强度

实验结果

性能改进

在五个模型规模(182M、469M、650M、830M、978M参数)中:

  • 一致的验证损失降低:相比vanilla MoE改进高达0.0386
  • 更好的困惑度:在所有测试规模上都有改进
  • 训练稳定性:共享池设计没有崩溃或不稳定问题

亚线性专家扩展

最引人注目的发现是UniPool实现了高效的参数减少:

专家预算相对Vanilla MoE的性能
66.7%匹配或超越vanilla MoE
50%具有竞争力的性能
41.6%在某些规模上仍然匹配vanilla

这证明了在共享池设计下,专家参数可以随深度亚线性增长,同时保持比vanilla MoE更高的效率。

池大小作为超参数

UniPool将池大小识别为显式的深度扩展超参数:

  • 更大的池提供更多容量但可能未充分利用
  • 更小的池强制更高效的专家重用
  • 最佳池大小取决于模型深度和任务要求

与专家分解的可组合性

进一步分析表明,UniPool的优势与更细粒度的专家分解相结合,表明该方法与其他MoE优化技术兼容。

要点总结

  • 重新思考专家分配:传统的每层专家所有权是一个可能不是最优的严格设计选择。将专家容量视为全局预算可以实现更高效的参数使用。

  • 深层的冗余:路由随机化探测揭示了vanilla MoE中深层可能存在大量冗余,表明参数共享的机会。

  • 解锁亚线性扩展:UniPool证明专家参数不必随模型深度线性扩展——这一发现对高效扩展大型MoE模型具有重要意义。

  • 实际效率提升:仅使用vanilla MoE专家参数的41.6%–66.7%同时匹配性能,在生产部署中转化为显著的内存和计算节省。

  • 新的设计空间:池级平衡和共享专家池为MoE架构开辟了新的设计空间,池大小成为深度扩展的关键超参数。

  • 生产可行性:该方法保持训练稳定性,并在多个规模上显示一致的改进,表明已准备好用于生产部署。