MoTA:用于循环Transformer的矩倾斜注意力机制
MoTA: Moment-Tilted Attention for Looped Transformers
AI总结:
本文提出MoTA矩倾斜注意力机制,解决循环Transformer检索目标不明确的问题,经实验在预训练及数学相关任务上均取得性能提升。
摘要:
循环Transformer通过重复应用共享层来增加语言模型的计算深度,但标准循环Transformer依赖隐藏状态更新来引导后续注意力读取,使得下一次检索目标不明确。本文提出矩倾斜注意力(MoTA),其使用相同的注意力权重检索内容并为下一个循环写入紧凑目标;为引导下一次读取,MoTA采用软矩匹配将学习到的源特征的注意力加权均值移向目标,同时保留与原始注意力分布的接近度;所得更新利用源协方差确定校正方向,利用投影源分数的范围设置闭式步长,还为对偶目标建立了下降保证。在四种模型规模上的实验表明,MoTA在聚合预训练性能上较标准循环Transformer取得一致提升;在轻量适配后,该提升可延伸至数学知识领域,在数学中间训练后,更大模型规模下的数学问题求解、科学问答及分析推理能力进一步提升。
英文摘要:
Looped Transformers increase the computational depth of language models by repeatedly applying shared layers. However, standard looped Transformers rely on hidden-state updates to guide subsequent attention reads, leaving the next retrieval goal implicit. In this paper, we introduce Moment-Tilted Attention (MoTA), which uses the same attention weights to retrieve content and write a compact target for the next loop. To guide the next read, MoTA uses soft moment matching to move the attention-weighted mean of learned source features toward the target while preserving proximity to the original attention distribution. The resulting update uses source covariance to determine the correction direction and the range of projected source scores to set a closed-form step size. We further establish a descent guarantee for the dual objective. Experiments across four model sizes demonstrate consistent improvements in aggregate pretraining performance over standard looped Transformers. The gains extend to mathematical knowledge after lightweight adaptation, with further improvements in mathematical problem solving, scientific question answering, and analytical reasoning at larger model scales after mathematical midtraining.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。