IntBMoE:将块级条件整合到专家组合中实现全参与混合专家
研究论文 · 2026/09/21
混合专家(MoE)可扩展容量,但现有设计无法独立设定三个量:参与度(每个token有多少专家贡献知识)、执行量(实际计算多少专家,即计算成本)和物化量(需构建和存储多少专家规模参数集,即内存成本)。稀疏路由保持低执行和低物化,但降低参与度;稠密输出混合恢复全参与,但执行随专家数增长;参数合并保持执行为一个专家,但物化随路由决策数增长。我们提出IntBMoE,一种块条件MoE,通过将稠密专家组合与稀疏块执行配对,解耦这三个量。其块来自小型学习码本,每个条目一个块。在每个内部层,轻量超网络将该层专家池中的所有专家基合并为一个组合专家。参与度是完整的,因为每个组合专家都利用整个专家池。执行保持稀疏,因为路由器将每个token只发送到少数块。物化有界,因为码本(而非输入)决定存在多少块。双路径残差门控(DPRG)通过乘法门控进一步耦合两条独立组合路径。图像分类实验显示,相比代表性稀疏和稠密MoE基线,性能持续提升。语言建模和序列推荐的额外实验验证了其超越视觉的泛化能力。IntBMoE已完全部署在AMap的生成式推荐系统中,在60ms延迟预算下服务数亿用户,在线A/B测试中UVCTR相对提升2.4%。代码见https://github.com/AMAP-ML/DreamX-Rec/。
该工作解决了MoE中参与度、计算成本和内存成本难以独立调节的核心矛盾,提出了一种可同时实现全参与、低计算和有限内存的新架构,并在大规模工业推荐系统中验证了其有效性和效率。
Mixture-of-Experts (MoE) scales capacity, but existing designs cannot set three quantities independently. For a single token, participation is how many experts contribute knowledge to its output, execution is how many are actually computed (compute cost), and materialization is how many expert-sized parameter sets must be built and stored (memory cost). Sparse routing keeps execution and materialization low, but shrinks participation: for each token, only a few experts contribute. Dense output-mixing restores full participation, but its execution grows with the number of experts. Parameter-merging keeps execution at one expert, but its materialization grows with the number of routing decisions. We propose IntBMoE, a block-conditioned MoE that decouples all three by pairing dense expert composition with sparse block execution. Its blocks come from a small learned codebook, one per entry. At each internal layer, a lightweight hypernetwork merges all expert bases in that layer's pool into one composed expert. Participation is full, because every composed expert draws on the entire pool. Execution stays sparse, because a router sends each token to only a few blocks. Materialization is bounded, because the codebook, not the input, fixes how many blocks exist. Dual-Path Residual Gating (DPRG) further couples two independently composed paths through multiplicative gating. Experiments on image classification show consistent gains over representative sparse and dense MoE baselines. Additional experiments on language modeling and sequential recommendation validate its generalization beyond vision. IntBMoE is fully deployed in AMap's generative recommendation system, serving hundreds of millions of users under a 60ms latency budget, with a 2.4% relative UVCTR gain in online A/B testing. Our code is available at https://github.com/AMAP-ML/DreamX-Rec/.