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

Nexus:Transformer中的高阶注意力机制

Nexus: Higher-Order Attention Mechanisms in Transformers

Nanyang Technological University(南洋理工大学);Huawei Noah's Ark Lab(华为诺亚实验室)

Hanting Chen, Chong Zhu, Kai Han, Yuchuan Tian, Yuchen Liang, Tianyu Guo, Xinghao Chen, Dacheng Tao, Yunhe Wang

AI总结:

Nexus通过递归框架和动态注意力机制提升Transformer的表示能力,突破线性瓶颈并优于标准Transformer。

摘要:

Transformer在多个领域取得了显著成功,依赖自注意力机制捕捉依赖关系。然而,标准的一阶注意力机制常受到低秩瓶颈的限制,难以在单层内捕捉复杂的多跳关系。在本文中,我们提出了Nexus,一种新的架构,通过递归框架增强表示能力。与标准方法使用静态线性投影进行查询和键不同,Nexus通过嵌套的自注意力机制动态优化这些表示。具体而言,查询和键向量本身是内部注意力循环的输出,使标记能够聚合全局上下文并建模高阶相关性,在最终注意力计算之前。我们强制在递归步骤中进行参数高效的权重共享策略,确保这种增强的表达能力仅增加$\mathcal{O}(1)$个参数。我们提供了理论分析,证明我们的方法突破了标准注意力的线性瓶颈。实验证明,Nexus在多个基准上优于标准Transformer。

英文摘要:

Transformers have achieved significant success across various domains, relying on self-attention to capture dependencies. However, the standard first-order attention mechanism is often limited by a low-rank bottleneck, struggling to capture intricate, multi-hop relationships within a single layer. In this paper, we propose the Nexus, a novel architecture designed to enhance representational power through a recursive framework. Unlike standard approaches that use static linear projections for Queries and Keys, Nexus dynamically refines these representations via nested self-attention mechanisms. Specifically, the Query and Key vectors are themselves outputs of inner attention loops, allowing tokens to aggregate global context and model high-order correlations \textit{prior} to the final attention computation. We enforce a parameter-efficient weight-sharing strategy across recursive steps, ensuring that this enhanced expressivity incurs $\mathcal{O}(1)$ additional parameters. We provide theoretical analysis demonstrating that our method breaks the linear bottleneck of standard attention. Empirically, Nexus outperforms standard Transformers on multiple benchmarks.

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

↑