arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2507.06607cs.CLcs.LG
收藏

解码器-混合-解码器架构用于长生成的高效推理

Decoder-Hybrid-Decoder Architecture for Efficient Reasoning with Long Generation

Microsoft(微软公司);Stanford University(斯坦福大学)
Liliang Ren, Congcong Chen, Haoran Xu, Young Jin Kim, Adam Atkinson, Zheng Zhan, Jiankai Sun, Baolin Peng, Liyuan Liu, Shuohang Wang, Hao Cheng, Jianfeng Gao, W… 展开作者

Liliang Ren, Congcong Chen, Haoran Xu, Young Jin Kim, Adam Atkinson, Zheng Zhan, Jiankai Sun, Baolin Peng, Liyuan Liu, Shuohang Wang, Hao Cheng, Jianfeng Gao, Weizhu Chen, Yelong Shen

AI总结:

本文提出门控记忆单元(GMU)及解码器-混合-解码器架构SambaY,通过跨层记忆共享提升解码效率和长上下文性能,无需位置编码,在推理任务上显著优于基线,并实现高达10倍解码吞吐量提升。

摘要:

近期语言建模的进展已证明状态空间模型(SSMs)在高效序列建模中的有效性。虽然诸如Samba和YOCO等混合架构及解码器-解码器架构相比Transformer已展现出有前景的性能提升,但先前的工作尚未探究SSM层间表示共享的效率潜力。在本文中,我们引入了门控记忆单元(GMU),这是一种简单而有效的跨层高效记忆共享机制。我们将其应用于创建SambaY,一种解码器-混合-解码器架构,在交叉解码器中融入GMU,以共享来自基于Samba的自解码器的记忆读出状态。SambaY显著提升了解码效率,保持了线性预填充时间复杂度,并增强了长上下文性能,同时无需显式位置编码。通过广泛的扩展实验,我们证明我们的模型相比强基线YOCO展现出显著更低的不可约损失,表明在大规模计算场景下具有优越的性能可扩展性。我们最大的模型,结合了微分注意力增强的Phi4-mini-Flash-Reasoning,在推理任务(如Math500、AIME24/25和GPQA Diamond)上,无需任何强化学习即显著优于Phi4-mini-Reasoning,同时在vLLM推理框架下,对于2K长度提示和32K生成长度,实现了高达10倍的解码吞吐量提升。我们在https://github.com/microsoft/ArchScale上发布了基于开源数据的训练代码库。

英文摘要:

Recent advances in language modeling have demonstrated the effectiveness of State Space Models (SSMs) for efficient sequence modeling. While hybrid architectures such as Samba and the decoder-decoder architecture, YOCO, have shown promising performance gains over Transformers, prior works have not investigated the efficiency potential of representation sharing between SSM layers. In this paper, we introduce the Gated Memory Unit (GMU), a simple yet effective mechanism for efficient memory sharing across layers. We apply it to create SambaY, a decoder-hybrid-decoder architecture that incorporates GMUs in the cross-decoder to share memory readout states from a Samba-based self-decoder. SambaY significantly enhances decoding efficiency, preserves linear pre-filling time complexity, and boosts long-context performance, all while eliminating the need for explicit positional encoding. Through extensive scaling experiments, we demonstrate that our model exhibits a significantly lower irreducible loss compared to a strong YOCO baseline, indicating superior performance scalability under large-scale compute regimes. Our largest model enhanced with Differential Attention, Phi4-mini-Flash-Reasoning, achieves significantly better performance than Phi4-mini-Reasoning on reasoning tasks such as Math500, AIME24/25, and GPQA Diamond without any reinforcement learning, while delivering up to 10x higher decoding throughput on 2K-length prompts with 32K generation length under the vLLM inference framework. We release our training codebase on open-source data at https://github.com/microsoft/ArchScale.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑