paper-with-me

Papers

Native Hybrid Attention for Efficient Sequence Modeling

2025-10-08 · Jusen Du, Jiaxi Hu, Tao Zhang, Weigao Sun, Yu Cheng arxiv

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 softmax attention 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.

📄 PDF Abstract BibTeX arXiv:2510.07019

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Multi-Mixer Models: Flexible Sequence Modeling with Shared Representations

2026-05-27 · Kevin Y. Li, Asher Trockman, Ananda Theertha Suresh, Ziteng Sun arxiv

Softmax attention is the cornerstone of modern large language models, but its memory scales linearly and compute quadratically with sequence length. Linear recurrent models, such as linear attention and state space model…

HyMaTE: A Hybrid Mamba and Transformer Model for EHR Representation Learning

2025-09-28 · Md Mozaharul Mottalib, Thao-Ly T. Phan, Rahmatollah Beheshti arxiv

Electronic health Records (EHRs) have become a cornerstone in modern-day healthcare. They are a crucial part for analyzing the progression of patient health; however, their complexity, characterized by long, multivariate…

Representation Learning

Hungry Hungry Hippos: Towards Language Modeling with State Space Models

2022-12-28 · Daniel Y. Fu, Tri Dao, Khaled K. Saab, Armin W. Thomas 외

State space models (SSMs) have demonstrated state-of-the-art sequence modeling performance in some modalities, but underperform attention in language modeling. Moreover, despite scaling nearly linearly in sequence length…

8kCoreference ResolutionFew-Shot LearningLanguage Modeling+6

LPC-SM: Local Predictive Coding and Sparse Memory for Long-Context Language Modeling

2026-03-12 · Keqin Xie arxiv

Most current long-context language models still rely on attention to handle both local interaction and long-range state, which leaves relatively little room to test alternative decompositions of sequence modeling. We pro…

Systems and Algorithms for Convolutional Multi-Hybrid Language Models at Scale

2025-02-25 · Jerome Ku, Eric Nguyen, David W. Romero, Garyk Brixi 외

We introduce convolutional multi-hybrid architectures, with a design grounded on two simple observations. First, operators in hybrid models can be tailored to token manipulation tasks such as in-context recall, multi-tok…

State Space Models