Who Asks, Who Answers: Linear Attention Builds the Query in Hybrid Language Models
Not on the map. Why?
Abstract (arXiv)
Hybrid language models interleave linear-attention layers with a small number of softmax-attention layers. Prior work largely attributes in-context retrieval to softmax attention, treating linear attention primarily as a mechanism for compressing past context. We revisit this division of labor and show that linear attention plays a direct role in retrieval by constructing the query used by softmax attention. Studying Qwen3.5 (Gated DeltaNet) and Granite4.0 (Mamba-2), we identify an Encode--Address circuit. An early Encode block preserves token identity, while an Address block constructs the final-position representation from which a softmax reader forms its attention query. Transplanting this representation between prompts with different queried keys redirects retrieval in 0.97--0.99 of cases. The Address block's recurrent state carries the retrieval target, and its computation transfers across architectures: replacing Granite's Address block with Qwen's restores retrieval accuracy to 0.92--0.94 without updating either model's weights. Across six Qwen3.5 models, Address computation becomes distributed at larger scales over a chain of blocks, each guiding a successive reader, as the query no longer passes from one reader to the next through attention. These findings reveal a division of labor in hybrid retrieval: linear attention constructs the query, while softmax attention performs the lookup. Code is available at https://github.com/yuang-chen/LinearQuery
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 17 of its 22 references that are in the map. Submitted 1 Nov 2026.
Builds on
17 of 22 references.
References · 17
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,479
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 690
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 554
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 272
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 249
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 245
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 236
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 232
- 2024An Empirical Study of Mamba-based Language Modelscited by 209
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 192
- 2023Does Circuit Analysis Interpretability Scale? Evidence from Multiple Choice Capabilities in Chinchillacited by 165
- 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 135
5 more
- 2025Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Modelscited by 121
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 68
- 2024Locating and Editing Factual Associations in Mambacited by 40
- 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanismcited by 18
- 2025Mamba Knockout for Unraveling Factual Information Flowcited by 6
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Rethinking the Role of Efficient Attention in Hybrid Architectures
- 2026RAM-Net: Linear-Time Sequence Modeling with Sparsely Addressable State
- 2026Identifying Crucial Attention Heads for Multilingual Language Models: Retrieval and Retrieval-Transition Heads
- 2026Forget Attention: Importance-Aware Attention Is All You Need
- 2026Sliding-window beats linear attention
- 2025Infinite Retrieval: Attention Enhanced LLMs in Long-Context Processing
- 2026Attention Degradation, Function Token Anchoring, and the Limits of Attention-Based Intervention in Large Language Models
- 2026Retrieval from Within: An Intrinsic Capability of Attention-Based Models