# Who Asks, Who Answers: Linear Attention Builds the Query in Hybrid Language Models

DevFeed: [Who Asks, Who Answers: Linear Attention Builds the Query in Hybrid Language Models](<https://devfeed.tech/articles/who-asks-who-answers-linear-attention-builds-the-query-in-hybrid-language-models-115232.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.01909>)

Author: Wenqi Zeng, Chen Feng, YuAng Chen

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Language models](<https://devfeed.tech/topics/language-models.md>), [Mamba](<https://devfeed.tech/topics/mamba.md>), [qwen](<https://devfeed.tech/topics/qwen.md>)

Tags: [architectures](<https://devfeed.tech/tags/architectures.md>), [attention](<https://devfeed.tech/tags/attention.md>), [block](<https://devfeed.tech/tags/block.md>), [blocks](<https://devfeed.tech/tags/blocks.md>), [circuit](<https://devfeed.tech/tags/circuit.md>), [context](<https://devfeed.tech/tags/context.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [granite](<https://devfeed.tech/tags/granite.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [keys](<https://devfeed.tech/tags/keys.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [layers](<https://devfeed.tech/tags/layers.md>), [linear](<https://devfeed.tech/tags/linear.md>), [lookup](<https://devfeed.tech/tags/lookup.md>), [mamba](<https://devfeed.tech/tags/mamba.md>), [mamba-2](<https://devfeed.tech/tags/mamba-2.md>), [mechanism](<https://devfeed.tech/tags/mechanism.md>), [model](<https://devfeed.tech/tags/model.md>), [query](<https://devfeed.tech/tags/query.md>), [qwen](<https://devfeed.tech/tags/qwen.md>)

## AI overview

In the studied Qwen3.5 and Granite4.0 hybrid models, linear attention helps retrieve information by constructing the query that softmax attention uses to look up a matching key. The authors identify an Encode-Address circuit: an early Encode block preserves token identity, and an Address block builds a final-position representation that guides a softmax reader. Transplanting that representation between prompts redirects retrieval in 0.97-0.99 of cases. The Address block's recurrent state carries the retrieval target; substituting Qwen's Address block into Granite restores 0.92-0.94 retrieval accuracy without weight updates. In six Qwen3.5 models, the Address computation spreads across a chain of blocks at larger scales, each guiding a successive reader. The evidence supports a division of labor in these models: linear attention constructs the query, and softmax attention performs the lookup.

## Source excerpt

arXiv:2611.01909v1 Announce Type: new Abstract: 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 \emph{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