跳到正文
Apple Machine Learning Research·· 2026-07-06AI 评分50

路径约束的混合专家模型(Path-constrained Mixture-of-Experts)

Path-Constrained Mixture-of-Experts

AI 导读

稀疏混合专家(MoE)中,每层独立路由token。论文从“专家路径”(token在各层选中的专家序列)视角发现:尽管N专家L层有N^L条可能路径,实际token仅聚集在少数与语言功能对齐的路径上,大部分路径未被利用。为此提出PathMoE,在连续层块间共享路由参数,强制约束有效路径空间以放大自然聚集。0.9B和16B参数模型实验显示,相比独立路由,PathMoE在困惑度和下游任务上一致改进,且无需辅助损失。专家路径为MoE设计提供了新维度。

正文 · 原文

Sparse Mixture-of-Experts (MoE) architectures route each token through a subset of experts at each layer independently. We propose viewing MoE computation through the lens of expert paths—the sequence of expert selections a token makes across all layers. This perspective reveals that, despite N^L possible paths for N experts across L layers, tokens in practice cluster into a small fraction of paths that align with linguistic function, yet the vast majority of paths remain unexplored, representing a statistical inefficiency. This motivates architectures that constrain the effective path space to amplify this natural concentration. As one instantiation, we introduce PathMoE, which shares router parameters across blocks of consecutive layers. Analysis confirms that PathMoE amplifies the emergent path structure: it produces more concentrated path clusters, better cross-layer consistency, and greater robustness to routing perturbations. Experiments on 0.9B and 16B parameter PathMoE models demonstrate consistent improvements on perplexity and downstream tasks over independent routing, while eliminating the need for auxiliary losses. These results establish expert paths as a useful design axis for MoE architectures, complementary to existing work on independent routing mechanisms.

  • † Google
  • ** Work done while at Apple

Related readings and updates.

Omni-Router: Sharing Routing Decisions in Sparse Mixture-of-Experts for Speech Recognition

Mixture-of-experts (MoE) architectures have expanded from language modeling to automatic speech recognition (ASR). Traditional MoE methods, such as the Switch Transformer, route experts independently within each layer. Our analysis reveals that routers in most layers make expert choices that are not strongly correlated with the choices of the routers in other layers. To increase the cooperation between experts in different layers and encourage…

Duo-LLM: A Framework for Studying Adaptive Computation in Large Language Models

This paper was accepted at the Efficient Natural Language and Speech Processing (ENLSP) Workshop at NeurIPS 2024.

Large Language Models (LLMs) typically generate outputs token by token using a fixed compute budget, leading to inefficient resource utilization. To address this shortcoming, recent advancements in mixture of expert (MoE) models, speculative decoding, and early exit strategies leverage the insight that computational demands can vary…

Bottom banner

Discover opportunities in Machine Learning.

来源:Apple Machine Learning Research · machinelearning.apple.com