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

注意力的谱条件化提升变换器性能

Spectral Conditioning of Attention Improves Transformer Performance

Australian Institute for Machine Learning(澳大利亚机器学习研究所)

Hemanth Saratchandran, Simon Lucey

AI总结:

通过优化注意力层的谱特性以降低雅可比矩阵的条件数,提升变换器模型的性能。

摘要:

我们对变换器中注意力块的雅可比矩阵进行了理论分析,表明其受查询、键和值投影所定义的注意力机制所支配。基于这一见解,我们引入了一种方法,系统地改变每个注意力层的谱特性以降低雅可比矩阵的条件数,从而改善变换器网络中注意力层的整体条件性。我们实证表明,这种改进的雅可比条件性在实践中转化为性能的提升。我们的方法简单、广泛适用,并可以轻松集成为现有注意力机制的即插即用替代方案。我们在多样化的变换器架构和任务中验证了其有效性,展示了在性能上的持续改进。

英文摘要:

We present a theoretical analysis of the Jacobian of an attention block within a transformer, showing that it is governed by the query, key, and value projections that define the attention mechanism. Leveraging this insight, we introduce a method that systematically alters the spectral properties of each attention layer to reduce the Jacobian's condition number, thereby improving the overall conditioning of the attention layers within a transformer network. We empirically show that this improved Jacobian conditioning translates to enhanced performance in practice. Our approach is simple, broadly applicable, and can be easily integrated as a drop-in replacement for a wide range of existing attention mechanisms. We validate its effectiveness across diverse transformer architectures and tasks, demonstrating consistent improvements in performance.

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

↑