English

Nexus: Higher-Order Attention Mechanisms in Transformers

Computation and Language 2025-12-05 v2

Abstract

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 O(1)\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.

Keywords

Cite

@article{arxiv.2512.03377,
  title  = {Nexus: Higher-Order Attention Mechanisms in Transformers},
  author = {Hanting Chen and Chong Zhu and Kai Han and Yuchuan Tian and Yuchen Liang and Tianyu Guo and Xinghao Chen and Dacheng Tao and Yunhe Wang},
  journal= {arXiv preprint arXiv:2512.03377},
  year   = {2025}
}
R2 v1 2026-07-01T08:06:56.680Z