Native Hybrid Attention for Efficient Sequence Modeling

Jusen Du, Jiaxi Hu, Zhang Tao, Weigao Sun, Yu Cheng


Abstract
Transformers excel at sequence modeling but face quadratic complexity, while linear attention offers improved efficiency but often compromises recall accuracy over long contexts. In this work, we introduce Native Hybrid Attention (NHA), a novel hybrid architecture of linear and full attention that integrates both intra inter-layer hybridization into a unified layer design. NHA maintains long-term context in key–value slots updated by a linear RNN, and augments them with short-term tokens from a sliding window. A single operation is then applied over all keys and values, enabling per-token and per-head context-dependent weighting without requiring additional fusion parameters. The inter-layer behavior is controlled through a single hyperparameter, the sliding window size, which allows smooth adjustment between purely linear and full attention while keeping all layers structurally uniform. Experimental results show that NHA surpasses Transformers and other hybrid baselines on recall-intensive and commonsense reasoning tasks. Furthermore, pretrained LLMs can be structurally hybridized with NHA, achieving competitive accuracy while delivering significant efficiency gains. Code is available at https://github.com/JusenD/NHA.
Anthology ID:
2026.acl-long.176
Volume:
Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
Month:
July
Year:
2026
Address:
San Diego, California, United States
Editors:
Maria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
Venue:
ACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
3826–3842
Language:
URL:
https://preview.aclanthology.org/ingest-acl/2026.acl-long.176/
DOI:
Bibkey:
Cite (ACL):
Jusen Du, Jiaxi Hu, Zhang Tao, Weigao Sun, and Yu Cheng. 2026. Native Hybrid Attention for Efficient Sequence Modeling. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3826–3842, San Diego, California, United States. Association for Computational Linguistics.
Cite (Informal):
Native Hybrid Attention for Efficient Sequence Modeling (Du et al., ACL 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl/2026.acl-long.176.pdf
Checklist:
 2026.acl-long.176.checklist.pdf