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

关于Transformer的运行道级联用于语言建模

On the Runway Cascade of Transformers for Language Modeling

Department of Computer Science, Southern Methodist University, Dallas TX USA(计算机科学系,南方 Methodist 大学,德克萨斯州达拉斯)

Hunjae Lee, Corey Clark

AI总结:

本文提出运行道意识重 wiring方法,通过直接融入运行道上下文改善Transformer的语言建模能力,提升信息检索与外推性能。

摘要:

在仅解码器(因果)Transformer中,由因果掩码生成的计算图通过直接路径注意力和由中间token形成的间接路径路由信息。我们将token对之间的间接路径称为它们的运行道。我们认为,因果Transformer中观察到的某些故障模式可能因这两种信息传播模式之间的不一致而加剧。我们正式将运行道级联定义为一种现象,即这种不一致导致冗余和无关信息级联到token表示中,尽管注意力模式已经充分学习。作为解决方案,我们提出了一种运行道意识重 wiring,作为一种更明确的方式,将运行道上下文直接纳入每个token的直接路径注意力中。这种机制根据token的运行道景观的总结重新 wiring每个token的注意力模式,使能够意识到累积的表示影响,并允许更平衡的信息传播。我们提出的方法不引入额外参数,可以无缝集成到标准注意力机制中。从经验上,我们的重 wiring的Transformer在通用语言建模以及信息检索和外推能力方面相比标准Transformer实现了稳步改进。

英文摘要:

In decoder-only (causal) transformers, the computation graph created by causal masking routes information through both direct-path attention and indirect paths formed by intermediate tokens. We denote these indirect paths between token pairs as their runways. We argue that certain failure modes of causal transformers as observed by a growing body of recent works are likely exacerbated by a misalignment between these two information propagation modes. We formalize runway cascade as a phenomenon whereby this misalignment results in redundancies and irrelevant information cascading to token representations despite adequately learned attention patterns. As a solution, we propose runway-aware rewiring as a more explicit way of incorporating runway context directly into each token's direct-path attention. This mechanism re-wires the attention pattern for each token based on a summary of its runway landscape, enabling awareness of accumulating representational influences and allowing for more balanced information propagation. Our proposed methodology introduces no additional parameters and can seamlessly be integrated into standard attention mechanism. Empirically, our rewired transformer results in steady improvements in general language modeling as well as noticeably stronger information retrieval and extrapolation abilities compared to standard transformers.

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

↑