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

共享DIFF变换器

Shared DIFF Transformer

Tsinghua University, Beijing, China(清华大学);Donghua University, Shanghai, China(东华大学)

Yueyang Cang, Yuhang Liu, Xiaoteng Zhang, Li Shi, Wenge Que

AI总结:

共享DIFF变换器通过引入共享基矩阵和低秩更新,减少参数冗余并提升效率,实现更优的噪声抑制和任务适应性。

摘要:

DIFF变换器通过增强对相关上下文的关注并抑制噪声来改进注意力分配。它引入了一种差分注意力机制,通过计算两个独立生成的注意力分布之间的差异,有效减少噪声并促进稀疏的注意力模式。然而,DIFF变换器中的独立信号生成导致了参数冗余和信息利用率低下。在本工作中,我们提出了共享DIFF变换器,借鉴差分放大器的理念,引入共享基矩阵来建模全局模式,并采用低秩更新来增强任务特定的灵活性。这种设计显著减少了参数冗余,提高了效率,并保留了强大的噪声抑制能力。实验结果表明,与DIFF变换器相比,我们的方法在长序列建模、关键信息检索和上下文学习等任务中表现更优。我们的工作为优化差分注意力机制和推进稳健的Transformer架构提供了新的高效方法。

英文摘要:

DIFF Transformer improves attention allocation by enhancing focus on relevant context while suppressing noise. It introduces a differential attention mechanism that calculates the difference between two independently generated attention distributions, effectively reducing noise and promoting sparse attention patterns. However, the independent signal generation in DIFF Transformer results in parameter redundancy and suboptimal utilization of information. In this work, we propose Shared DIFF Transformer, which draws on the idea of a differential amplifier by introducing a shared base matrix to model global patterns and incorporating low-rank updates to enhance task-specific flexibility. This design significantly reduces parameter redundancy, improves efficiency, and retains strong noise suppression capabilities. Experimental results show that, compared to DIFF Transformer, our method achieves better performance in tasks such as long-sequence modeling, key information retrieval, and in-context learning. Our work provides a novel and efficient approach to optimizing differential attention mechanisms and advancing robust Transformer architectures.

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

↑