# Native Hybrid Attention for Efficient Sequence Modeling

- **ID:** 1253
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2510.07019
- **Authors:** Jusen Du, Jiaxi Hu, Tao Zhang, Weigao Sun, Yu Cheng
- **Venue:** arXiv 2510.07019 [cs.CL], submitted 8 Oct 2025, v3 15 Apr 2026; accepted ACL 2026
- **Published:** 2025
- **Source:** x
- **Language:** en
- **Access:** free
- **Tags:** native-hybrid-attention, linear-attention, sliding-window, memory-slots, recall, efficient-inference, acl-2026
- **Topics:** hybrid attention, linear attention, sliding window, recall, efficient inference, pretrained conversion
- **Added:** 2026-10-05
- **Verified:** 2026-10-05
- **Page:** https://papers.projxon.ai/entries/1253

## Summary

Native Hybrid Attention (NHA) unifies linear and full attention into a single softmax operation within one uniform layer design. Long-term history is compressed into fixed-size key-value memory slots updated by a linear RNN; short-term context comes from exact sliding-window tokens; one softmax over all keys and values learns per-token, per-head balancing dynamically with no extra fusion parameters. A single hyperparameter — the sliding window size — shifts each layer smoothly between pure linear attention (w=0), intra-layer hybrid, and full attention (w=N), with no structural changes; all layers share the same architecture. NHA beats Transformers and other hybrid baselines on recall-intensive and commonsense reasoning tasks, and pretrained LLMs (Llama-3, Qwen) can be structurally hybridized with NHA via lightweight finetuning (e.g., NHA-Qwen2.5-7B / NHA-Llama-3-8B trained on 10B tokens, NHA-Qwen3-30BA3B) to match accuracy with drastically lower GPU memory and inference latency.

## Research notes

- Discovery: @hooshaaii (Hoosha) X thread 2026-10-04 11:49 PM ET (https://x.com/hooshaaii/status/2106954974752309377), ~280 views; 3-part self-thread with paper figure images (token-dependency heatmaps, intra-layer hybrid diagram, window-size config levels, NHA vs pretrained latency/memory tables)
- Code: https://github.com/JusenD/NHA
- License: CC BY 4.0
- Related: catalog 1553 (Triadic Linear Attention — same linear-attention state-size vs recall theme)

## Similar entries

- [Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling](https://papers.projxon.ai/entries/1244) (paper, #1244)
- [LT2: Linear-Time Looped Transformers](https://papers.projxon.ai/entries/494) (model, #494)
- [KV cache as GPU-memory bottleneck in Transformer serving (GQA/MQA, quantization, sliding window)](https://papers.projxon.ai/entries/1066) (idea, #1066)
- [Telescopic Language Models](https://papers.projxon.ai/entries/748) (paper, #748)
- [Dynamic Linear Attention](https://papers.projxon.ai/entries/489) (paper, #489)
- [MoBA: Mixture of Block Attention for Long-Context LLMs](https://papers.projxon.ai/entries/707) (paper, #707)
