arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.27004cs.LG
收藏

Mixture-of-Transformers 学习更快:关于分类问题的理论研究

Mixture-of-Transformers Learn Faster: A Theoretical Study on Classification Problems

Department of ECE The Ohio State University(电子工程系,俄亥俄州立大学);Department of CSE The Ohio State University(计算机科学与工程系,俄亥俄州立大学);Department of Computer Science University of Houston(计算机科学系,休斯顿大学);Department of ECE Department of CSE The Ohio State University(电子工程系、计算机科学与工程系,俄亥俄州立大学)

Hongbo Li, Qinhang Wu, Sen Lin, Yingbin Liang, Ness B. Shroff

AI总结:

本文研究了 Mixture-of-Transformers (MoT) 框架,通过持续训练门控网络实现专家特化,证明了其在 $O(\log(\varepsilon^{-1}))$ 步内收敛,显著优于单 Transformer,并提供了首个统一理论解释。

摘要:

混合专家模型提升了 Transformer 的效率,但缺乏统一的理论解释,尤其是当前馈层和注意力层均被允许进行特化时。为此,我们研究了 Mixture-of-Transformers (MoT),这是一个易于处理的理论框架,其中每个 transformer 模块作为一个由持续训练的门控网络控制的专家。这一设计使我们能够分离并研究专家特化和注意力对齐的核心学习动态。具体而言,我们开发了一种三阶段训练算法,对门控网络进行持续训练,并表明每个 transformer 专家特化于不同的任务类别,且门控网络能准确地将数据样本路由至正确的专家。我们的分析揭示了专家特化如何减少梯度冲突,并使每个子任务变为强凸。我们证明,该训练在 $O(\log(\varepsilon^{-1}))$ 次迭代步骤中将预期预测损失驱动至接近零,显著优于单个 transformer 的 $O(\varepsilon^{-1})$ 速率。我们进一步通过广泛的实际数据实验验证了理论发现,证明了 MoT 的实际有效性。这些结果共同提供了关于 transformer 级别特化和学习动态的首个统一理论解释,为设计高效的大规模模型提供了实践指导。

英文摘要:

Mixture-of-Experts (MoE) models improve transformer efficiency but lack a unified theoretical explanation, especially when both feed-forward and attention layers are allowed to specialize. To this end, we study the Mixture-of-Transformers (MoT), a tractable theoretical framework in which each transformer block acts as an expert governed by a continuously trained gating network. This design allows us to isolate and study the core learning dynamics of expert specialization and attention alignment. In particular, we develop a three-stage training algorithm with continuous training of the gating network, and show that each transformer expert specializes in a distinct class of tasks and that the gating network accurately routes data samples to the correct expert. Our analysis shows how expert specialization reduces gradient conflicts and makes each subtask strongly convex. We prove that the training drives the expected prediction loss to near zero in $O(\log(ε^{-1}))$ iteration steps, significantly improving over the $O(ε^{-1})$ rate for a single transformer. We further validate our theoretical findings through extensive real-data experiments, demonstrating the practical effectiveness of MoT. Together, these results offer the first unified theoretical account of transformer-level specialization and learning dynamics, providing practical guidance for designing efficient large-scale models.

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

↑