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

去除跳跃:训练无残差Transformer

Cutting the Skip: Training Residual-Free Transformers

Australian Institute for Machine Learning, Adelaide University(澳大利亚机器学习研究所,阿德莱德大学);DATA61, CSIRO(DATA61,澳大利亚联邦科学与工业研究组织);University of Auckland(奥克兰大学)

Yiping Ji, James Martens, Jianqiao Zheng, Ziqin Zhou, Peyman Moghadam, Xinyu Zhang, Hemanth Saratchandran, Simon Lucey

AI总结:

本研究通过分析无跳跃Transformer块的雅可比矩阵提出有原则的初始化策略,首次在不修改标准架构的情况下稳定高效训练无跳跃ViT,其在密集预测基准上优于带残差连接的强基线,为视觉层次表征学习开辟新方向。

摘要:

Transformer已在广泛应用中取得显著成功,这一成就常归功于其可扩展性。然而,在没有跳跃(残差)连接的情况下训练Transformer仍然出了名地困难。尽管跳跃连接能稳定优化过程,但它们也会破坏表征的层次结构,这引发了一个长期存在的问题:Transformer是否能在没有跳跃连接的情况下被高效训练。在本研究中,我们通过分析无跳跃Transformer块的雅可比矩阵来解决这一问题,阐明了跳跃连接为何能改善条件数,并揭示其稳定化收益可通过一种有原则的初始化策略来实现。基于这一洞见,我们提出了首个无需修改标准架构就能稳定高效训练无跳跃Transformer的方法。我们在有监督和自监督设置下的Vision Transformers(ViTs,视觉Transformer)上验证了我们的方法,证明采用我们的初始化方法训练的无跳跃ViT克服了常见的优化障碍,学习到更丰富的层次表征,并且在密集预测基准上优于包含跳跃连接的强基线模型。这些结果表明,跳跃连接并非训练ViT的基本要求,同时为视觉模型中的层次表征学习开辟了新途径。

英文摘要:

Transformers have achieved remarkable success across a wide range of applications, a feat often attributed to their scalability. Yet training them without skip (residual) connections remains notoriously difficult. While skips stabilize optimization, they also disrupt the hierarchical structure of representations, raising the long-standing question of whether transformers can be trained efficiently without them. In this work, we address this problem by analyzing the Jacobian of a skipless transformer block, showing why skips improve conditioning and revealing that their stabilization benefits can be recovered through a principled initialization strategy. Building on this insight, we introduce the first method that enables stable and efficient training of skipless transformers without altering the standard architecture. We validate our approach on Vision Transformers (ViTs) in both supervised and self-supervised settings, demonstrating that skipless ViTs trained with our initialization overcome the usual optimization barriers, learn richer hierarchical representations, and outperform strong baselines, that incorporate skip connections, on dense prediction benchmarks. These results show that skip connections are not a fundamental requirement for training ViTs and open new avenues for hierarchical representation learning in vision models.

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

↑