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

Linear attention builds the query that softmax attention uses for retrieval

Wenqi Zeng, Chen Feng, YuAng Chen · arXiv · 2026-11-1

- **Problem** Hybrid language models were thought to retrieve only through their softmax-attention layers. What the linear-attention layers beside them contribute to retrieval was unknown.
- **Method** The authors run removal and transplant tests on linear-attention blocks in Qwen3.5 and Granite4.0. An early Encode block keeps token identity, and an Address block builds the query that the softmax reader uses.
- **Results** Transplanting the Address block output redirects Qwen3.5-9B retrieval in 0.97 to 0.99 of cases. Other blocks, such as G0, have no effect at 0.00.

## Where existing explanations stop

Hybrid models mix a few softmax-attention layers into a stack of linear-attention layers. Linear attention folds past context into a fixed-size state, which keeps cost linear in length, whereas softmax attention keeps an explicit cache of past tokens. Earlier work found that linear layers struggle at in-context retrieval, and that retrieval in hybrids leans on the softmax layers.

Knowing where retrieval happens, however, says nothing about what the linear layers beside that point contribute.

The authors study this with an in-context key–value task, in which a prompt lists eight pairs and then asks for one value. The main format, chat8, wraps the prompt in the model's chat template and prefills the answer. Two variants, list8 and rev8, change the surface form, with 100 prompts in each format. A synthetic task like this keeps retrieval apart from parametric knowledge and reasoning, which benchmarks such as MMLU mix together.

The puzzle is that softmax layers can read the whole dictionary directly, so the linear layers look optional. Yet removing the earliest linear layer cuts retrieval accuracy to at most 0.05 across the models studied, with every softmax layer still present. The linear layers are therefore needed, and the question becomes what they compute.

## Finding the layer where retrieval appears

The authors start from the progressive-pruning analysis of Bick et al. (2025) to find the softmax layer where retrieval first becomes possible. Each truncated model keeps layers 0 through L and drops every later layer, both its token mixer and its MLP. The pruned hidden state goes straight into the final normalization and language-model head, so no later layer can help.

Random guessing gives a chance level of 1/8, and normalized accuracy maps chance to 0 and the unpruned model to 1.

Knowledge is measured on six benchmarks: ARC-Challenge, ARC-Easy, PIQA, WinoGrande, OpenBookQA, and HellaSwag, averaged in zero-shot evaluation. Knowledge-focused performance grows steadily as more layers are retained, which is the gradual trend the authors contrast with retrieval. Retrieval stays at the level of random guessing until layer 19, no matter how many earlier linear-attention layers remain.

Keeping the softmax layer L19 raises normalized retrieval accuracy from 0 to 0.67, so this layer marks the onset of retrieval. Retrieval accuracy can fluctuate between softmax layers, possibly because intermediate representations aren't decodable by the final LM head, but that doesn't move the onset.

Retaining 24 of the 32 layers of Qwen3.5-9B preserves 0.94 of its normalized retrieval accuracy. The same truncation keeps only 0.47 of its knowledge-focused performance, so retrieval needs far less of the network than knowledge does. The reader is therefore the single softmax layer L19, and the remaining question is what the linear blocks just below it contribute.

Pruning can't answer that, because every layer below the reader stays intact in these runs. The authors use blocks, maximal runs of consecutive linear-attention layers, as the unit for the next interventions, since retrieval changes mainly at softmax-layer boundaries. Removal and transplant act only on the linear token mixers and leave the MLPs intact, because the question is what linear attention computes.

## An Encode–Address circuit in the linear blocks before the reader

The key idea is a split of labour inside the linear layers: an early block keeps each token's identity, and a block just before the reader builds the query. The authors call the early block Encode and the block immediately before the reader Address. The Encode role can be reproduced by a simple token-wise linear projection, which the authors test later.

Figure 1 summarizes the circuit in Qwen3.5-9B, where Encode is G0, Address is G4 and the reader is layer 19.

![Figure 1: Overview. (a) The Encode block re-encodes token identity, the Address block constructs the retrieval query, and softmax attention retrieves the match…](https://refivu.com/papers/9550022a-ad1c-4740-b9d0-0f19e5a9c614/figures/figure-404da152ae61c3059902b5ae3f47e4fa.png?thumb=512)

**Figure 1** : Overview. (a) The Encode block re-encodes token identity, the Address block constructs the retrieval query, and softmax attention retrieves the matching value. (b) Transplanting the address from prompt A into prompt B makes the model answer A’s question. (c) Addresses transfer between Qwen3.5 (Gated DeltaNet) and Granite4.0 (Mamba-2)

[Original paper](https://arxiv.org/abs/2611.01909v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Wenqi Zeng, Chen Feng, YuAng Chen · Who Asks, Who Answers: Linear Attention Builds the Query in Hybrid Language Models · Original paper figure · Extracted the figure area from page 2 of the original PDF.

Removal zeroes a block's token-mixer output at every position, so it asks whether the block is necessary for retrieval. Transplant swaps a block's final-position output for the output a donor prompt produces, so it asks whether that output is enough to pick the retrieved value. Both interventions act only on the linear-attention token mixers and leave the MLPs in place.

The authors work at block level because retrieval changes mainly at softmax-layer boundaries.

Removing G0 drops accuracy to 0.01, and removing only its first layer drops it to 0.05. Removing G4 leaves accuracy at 1.00, but the logit gap falls from +23.8 to +11.6. Reader attention on the queried entry falls from 0.83 to 0.06 when G4 is removed. Later softmax layers L23 and L27 appear to compensate and recover the answer. Removal therefore shows that G4 is critical to the reader but may not decide the final answer.

Removal alone can't show which block sets what gets retrieved.

Transplanting G4's output at the final position redirects the host to the donor's answer in 0.99 of the 100 pairs. Transplanting any other block, G0 included, has no effect at 0.00. The result holds for list8 at 0.97 and rev8 at 0.98. Removal and transplant point in different directions, which is why the authors call G4 the Address block.

## What Encode is needed for

Patching the Encode outputs restores the original key–value associations in 0.98 of cases for both value and key swaps. Patching only the input token embeddings reaches 1.00, while patching any other block's output has no effect. The authors read this as a sign that the needed information already sits in the input embeddings, rather than being computed uniquely by Encode.

The key swap exchanges the keys of two entries and restores their original Encode outputs, with the input embeddings at swapped positions as a control.

To isolate the block, the authors replace G0 with a token-wise linear projection fitted by ridge regression to its original inputs and outputs. Retrieval accuracy stays at 1.00 after this swap, but WikiText-2 perplexity rises from 10.6 to 44.7. The original block's intact perplexity is 10.6, so the replacement costs general language modelling quality.

So a linear map covers Encode's retrieval role, while the original block still matters for general language modelling.

The authors conclude that Encode's role in retrieval can be fulfilled by a simple linear transformation. They don't claim that the linear map reproduces every computation of the original Encode block. Having settled Encode's role in preserving token identity, the authors turn to how Address builds the representation for the reader. That next question takes up the Address block's query, which the following section examines through Query or keys interventions.

## Query or keys: what the Address block sets

The authors test if the Address block shapes the reader's query or the dictionary keys by recomputing attention two ways. They run Qwen3.5-9B with and without G4, then combine the query from one run with the keys from the other. Selectivity measures how far the log attention on the queried entry rises above the average log attention on other entries.

Top-1 rate counts how often the queried entry collects the largest share of attention.

![Figure 4: How the Address block constructs the retrieval target in Qwen3.5-9B. (a) Reader selectivity when its query or keys are computed without the indicated…](https://refivu.com/papers/9550022a-ad1c-4740-b9d0-0f19e5a9c614/figures/figure-9fd4aad9a5da82b1a35a87842b0247f4.png?thumb=512)

**Figure 4** : How the Address block constructs the retrieval target in Qwen3.5-9B. (a) Reader selectivity when its query or keys are computed without the indicated block; numbers show top-1 rates. Solid, light, and hatched bars denote the three prompt formats. (b) Transplanting the Address block’s final-position output, or its recurrent state, redirects retrieval; the states of earlier blocks and the block’s input at the final position do not. (c) Address block outputs computed without any single upstream block still redirect retrieval, but those computed without all three do not.

[Original paper](https://arxiv.org/abs/2611.01909v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

With keys computed without G4, selectivity stays nearly unchanged at 4.80, and the top-1 rate remains 1.00. Removing the preceding block G3 only mildly weakens query selectivity and doesn't change the reader's choice. So the Address block primarily sets the reader's attention query rather than the dictionary keys.

The authors then ask whether the Address block's recurrent state carries the retrieval target. The host then processes its own final token, and retrieval redirects in 0.99 of cases. Copying the recurrent states of G0 or G3 has no effect, with a rate of 0.00. Feeding the donor's input at the final position while keeping the host state fails, at 0.00.

The authors conclude that the recurrent state holds the retrieval target, which the block turns into the final-position output that the reader's query uses.

## Moving the Address block between model families

Qwen3.5 and Granite-4.0-H differ in layer proportion, recurrent mechanism and size, so transferring an Address block is a real test. The authors pair Qwen3.5-0.8B with Granite4.0-1B and Qwen3.5-9B with Granite4.0-7B. Because the hidden representations differ, they fit linear alignment maps by ridge regression on paired activations, and neither model's weights change.

Transplanting the Qwen3.5-0.8B Address output into Granite4.0-1B redirects retrieval in 0.98 of pairs. The same-model baseline is 1.00, so the cross-model transfer nearly matches it. In the reverse direction, Granite4.0-1B's output redirects Qwen3.5-0.8B in 0.91 of pairs, against 0.97 within the same model. Granite4.0-7B needs both of its Address blocks, because transplanting G2 alone changes the answer in only 0.03 to 0.06 of pairs.

Transplanting both G2 and G3 reaches 1.00, 1.00 and 0.90 across the three prompt formats. Qwen3.5-9B's Address output moved into both Granite blocks succeeds in 0.99 of cases, close to the in-family 1.00. Going the other way, Granite4.0-7B's two Address outputs redirect Qwen3.5-9B in 0.83 of cases, against 0.92 in-family.

Swapping Granite4.0-1B's Address block for Qwen3.5-0.8B's gives 0.92 accuracy, compared to 0.01 when the block is simply removed. The reverse replacement reaches 0.95, compared to 0.30 for removal. The linear projection and zeroed-mixer controls reach at most 0.28, which the authors read as dependence on the donor's recurrent token mixing.

For the larger pair, replacing both Granite4.0-7B Address blocks with Qwen3.5-9B's gives 0.94 accuracy, compared to 0.00 without replacement. A token-wise linear projection gives 0.14, and zeroed donor mixers give 0.18. The reverse replacement reaches 0.46, above the removal control of 0.35 and either donor block alone at 0.34 to 0.36. It stays below the intact receiver's accuracy of 0.75.

The authors suggest that computation spread over several Address blocks plus a softmax layer is harder to transfer.

## How Address computation spreads with model size

In the four smaller Qwen3.5 models, one Address block sits immediately before the first reader and guides all three readers. Transplanting that block's final-position output redirects retrieval in 0.70 to 1.00 of cases across these models. Removing the block cuts accuracy to 0.06 at 0.8B and 0.41 at 2B, but leaves it at 0.94 and 0.92 at 4B and 9B.

When the stronger Address signal is present, it dominates and all readers follow it.

![Table 3: Address blocks and the readers they guide in Qwen3.5 models.Removal: accuracy after removing the Address blocks.Transplant: fraction of prompts redire…](https://refivu.com/papers/9550022a-ad1c-4740-b9d0-0f19e5a9c614/figures/figure-18ff3e71d26e8ec201692ac29f88f8e6.png?thumb=512)

**Table 3** : Address blocks and the readers they guide in Qwen3.5 models.Removal: accuracy after removing the Address blocks.Transplant: fraction of prompts redirected to the donor’s target when the Address blocks are transplanted jointly.

[Original paper](https://arxiv.org/abs/2611.01909v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Table 3 lists the Address blocks and their guided readers for each Qwen3.5 model, with removal and transplant results. Qwen3.5-0.8B and Qwen3.5-2B both use G3, which guides L15, L19 and L23, with removal accuracy of 0.06 and 0.41. Qwen3.5-4B and Qwen3.5-9B both use G4, which guides L19, L23 and L27, with removal accuracy of 0.94 and 0.92.

In Qwen3.5-27B, the Address blocks are spread over G8 to G10 and G11 to G12, guiding L39, L43, L51 and L59. Qwen3.5-35B-A3B uses G6, G7 and G8, which guide L27, L31 and L35.

Above 9B, no single block can redirect retrieval, so different Address blocks each guide their own set of readers. Jointly transplanting these blocks redirects 0.98 of answers in Qwen3.5-27B and 0.75 in Qwen3.5-35B-A3B. Removing the Address blocks leaves accuracy at 1.00 for the dense 27B model. For the MoE 35B-A3B model, the same removal drops accuracy to 0.34.

The authors read the spread as added redundancy and robustness, but the two large models depend on the Address blocks to different degrees. They didn't test a systematic comparison of dense and MoE architectures, which they leave for future work.

## What these results leave unsettled

The evidence rests on one synthetic retrieval task, with 100 prompts in each of its three formats. That task isolates retrieval, so it doesn't measure the parametric knowledge that benchmarks such as MMLU also involve. The authors use Qwen3.5-9B for the main figures and move results for the other models into Appendix C.

The Qwen3.5 family spans six models, but the Granite side includes only Granite4.0-1B and Granite4.0-7B. Granite4.0-7B is a mixture-of-experts model, which adds a second architectural variable to the Mamba-2 comparison. Qwen3.5-35B-A3B reaches removal accuracy of 0.34, and the paper reports that result without such a comparison.

Removal alone doesn't show which block sets the retrieved value, since the Address block can look dispensable for the final answer. Later softmax layers L23 and L27 compensate when the block before the reader is removed. The authors attribute this dispensability to redundancy in later softmax layers. The Granite-to-Qwen transfer stays partial, reaching 0.46 against an intact accuracy of 0.75.

That partial recovery suggests that distributed Address computation plus a softmax layer is harder to transfer.

The authors score the Qwen3.5-9B replacement after L19 so that later readers can't compensate. That score therefore isn't a full-model measure of the replaced Address blocks. Retrieval accuracy may fluctuate between softmax layers, possibly because intermediate representations aren't decodable by the final LM head.

## Paper info

- **Authors**: Wenqi Zeng, Chen Feng, YuAng Chen
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-1
- **Added**: 2026-11-3
- **Updated**: 2026-11-1
- **Version**: v1
- **arXiv**: 2611.01909
- **Category**: cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.01909v1) · [PDF ↗](https://arxiv.org/pdf/2611.01909v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## 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

## Quote from the paper

Wenqi Zeng, Chen Feng, YuAng Chen (2026). Who Asks, Who Answers: Linear Attention Builds the Query in Hybrid Language Models. arXiv:2611.01909v1. https://arxiv.org/abs/2611.01909v1

**BibTeX**

```
@misc{zeng2026asks,
  title = {{Who Asks, Who Answers: Linear Attention Builds the Query in Hybrid Language Models}},
  author = {Wenqi Zeng and Chen Feng and YuAng Chen},
  year = {2026},
  eprint = {2611.01909},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.01909v1}
}
```

## Other paper commentary

- [Precedent Labels and Facts Shift LLM Approval Decisions in Opposite Directions](https://refivu.com/en/papers/2be7501f-3661-46f2-9181-80fc53b03b68-precedent-labels-and-facts-shift-llm-approval-decisions.md)
- [Robustness Starts with the Objective: Designing and Certifying Robust LLM-Generated Heuristics](https://refivu.com/en/papers/c5ef476a-8e13-4a8d-9bf3-f756d8e0931c-robustness-starts-with-the-objective-designing-and.md)
- [Temperature, Not Knowledge: What Recursive Self-Training and Its Remedies Do to a Language Model's Confidence](https://refivu.com/en/papers/647a62a0-780f-4069-8540-3b3571002565-temperature-not-knowledge-what-recursive-self-training-and.md)
- [Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units](https://refivu.com/en/papers/cc6caaac-3d30-4b25-b682-a3f14b4cd27b-integer-exact-microscaling-running-mxfp4-language-models-on.md)
- [From Small to Large: Assessing Medical Reasoning, Benchmark Contamination, and Model Size in Language Models](https://refivu.com/en/papers/a50af6f3-052c-439d-b37e-144102cf1c53-from-small-to-large-assessing-medical-reasoning-benchmark.md)
- [DAPS: Dependency-Aware Premise Selection for LLM Theorem Proving](https://refivu.com/en/papers/a7ae9d0f-ded1-4286-bd70-8a5526753610-daps-dependency-aware-premise-selection-for-llm-theorem.md)
- [Bernoulli On-Policy Distillation: Don't Ignore High-Confidence Student Tokens](https://refivu.com/en/papers/8b8b436f-cb22-42ff-ae0e-fa85467e47b5-bernoulli-on-policy-distillation-don-t-ignore-high.md)
- [WAR-CRAFT: Refining Web API Recommendations through Requirement Auditing](https://refivu.com/en/papers/55f50616-1dd4-415c-b847-5176baf35714-war-craft-refining-web-api-recommendations-through.md)
- [CogRSI: Evolving and Auditing Cognitive Reasoning Strategies](https://refivu.com/en/papers/46f7d70e-b92f-4b54-90ab-d6436dede203-cogrsi-evolving-and-auditing-cognitive-reasoning-strategies.md)
- [Generative Forecasting from Coarse-Grained Observations: When Does Cascading Help?](https://refivu.com/en/papers/8c440be3-bfbd-4f0b-9b14-5f4445b5d4c0-generative-forecasting-from-coarse-grained-observations-when.md)
- [Tight Stochastic Sequential Covers for General VC Classes with Unknown i.i.d. Features](https://refivu.com/en/papers/d3f48227-9ff3-4857-8e94-60662a3e851a-tight-stochastic-sequential-covers-for-general-vc-classes.md)

## Terms in this paper

- [Gated DeltaNet](https://refivu.com/en/terms/867332aa385b-gated-deltanet)
- [linear attention](https://refivu.com/en/terms/102ebaed8489-linear-attention)
- [Softmax attention](https://refivu.com/en/terms/140344948263-softmax-attention)
- [Mamba-2](https://refivu.com/en/terms/caf9f0e79adb-mamba-2)
- [recurrent state](https://refivu.com/en/terms/704c50e81f39-recurrent-state)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/9550022a-ad1c-4740-b9d0-0f19e5a9c614-who-asks-who-answers-linear-attention-builds-the)
