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

DINT Transformer

DINT Transformer

Tsinghua University(清华大学);Peking University School of Public Health(北京大学公共卫生学院)

Yueyang Cang, Yuhang Liu, Xiaoteng Zhang, Erlu Zhao, Li Shi

摘要:

DIFF Transformer通过引入差分注意力机制来增强局部注意力的鲁棒性,从而解决了不相关上下文干扰的问题。然而,它有两个关键的限制:缺乏全局上下文建模,这是必不可少的识别全局显着的令牌,和数值不稳定,由于缺乏严格的行规范化的注意矩阵。为了克服这些挑战,我们提出了DINT Transformer,它通过引入微分积分机制来扩展DIFF Transformer。通过计算全局重要性分数并将其集成到注意力矩阵中,DINT Transformer提高了捕获全局依赖关系的能力。此外,统一的参数设计强制执行行归一化的注意矩阵,提高数值稳定性。实验结果表明,DINT Transformer在长上下文语言建模和关键信息检索等实际应用中具有良好的准确性和鲁棒性。这些结果将DINT Transformer定位为高效且有前途的架构。

英文摘要:

DIFF Transformer addresses the issue of irrelevant context interference by introducing a differential attention mechanism that enhances the robustness of local attention. However, it has two critical limitations: the lack of global context modeling, which is essential for identifying globally significant tokens, and numerical instability due to the absence of strict row normalization in the attention matrix. To overcome these challenges, we propose DINT Transformer, which extends DIFF Transformer by incorporating a differential-integral mechanism. By computing global importance scores and integrating them into the attention matrix, DINT Transformer improves its ability to capture global dependencies. Moreover, the unified parameter design enforces row-normalized attention matrices, improving numerical stability. Experimental results demonstrate that DINT Transformer excels in accuracy and robustness across various practical applications, such as long-context language modeling and key information retrieval. These results position DINT Transformer as a highly effective and promising architecture.

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

↑