potentialpaper

GPA: General Principled Framework for Linearizing Softmax Attention via KV Cache Approximation

wang ning, Zekun Li, Tongxin Bai, Man Yao, Chunlei Men, Guoqi Li

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Fine-tune Transformer to Linear Model;

Abstract. Transformers excel at sequence modeling, yet Softmax attention incurs quadratic complexity and unbounded KV cache growth. While linear attention offers a promising alternative, existing approaches lack systematic functional comparison with Softmax attention, rigorous error analysis, and a theoretically grounded improvement roadmap. We address this gap by framing linearization as KV cache approximation and establishing a principled pathway from Softmax attention to linear models. Our analysis identifies five critical components—redundancy elimination, token-level quantization with positional separation, positional compression, inter-layer similarity, and multi-state decomposition—each accompanied by theoretical justification and error bounds, with explicit connections to existing mechanisms. Building upon this framework, we introduce GPA, a linearized attention model that inherits pretrained weights and achieves state-of-the-art results. GPA outperforms strong baselines including MVA and GSA across multiple benchmarks, while requiring less fine-tuning resources. Our work provides both theoretical clarity and practical guidance for advancing linear attention, charting a principled course toward efficient, scalable alternatives to Softmax attention.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
2 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:45 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper views the problem of linearizing softmax attention from the perspective of KV cache approximation. This motivates a linearization algorithm that aims to minimize (various sources of) the approximation error gap resulting from linearization. Results on linearizing Qwen/LLaMA family of models indicate that the proposed approach (GPA) can better maintain the performance of pretrained softmax attention while requiring fewer tokens for the linearization process.

The reviewers were generally positive about the paper, but raised several concerns, some of which were suggested (below) to be addressed during the rebuttal. In particular:

  • Results on more retrieval focused benchmarks
  • Investigating why MMLU drop happens (this is a short-context benchmark so I am also puzzled at the performance drop)
  • Better unifying the theory (propositions 1-5)
  • Better connecting theory to practical algorithms

These points were adequately addressed during the rebuttal (though I think the theory unification could use further refinement). Two of the three reviewers raised their scores, while one reviewer who was less positive was not responsive.

Final justification

Please see above.

Area Chair G5TJ · Meta-reviewOpenReview ↗
Final justification
Please see above.
Read meta-review
Meta-review

This paper views the problem of linearizing softmax attention from the perspective of KV cache approximation. This motivates a linearization algorithm that aims to minimize (various sources of) the approximation error gap resulting from linearization. Results on linearizing Qwen/LLaMA family of models indicate that the proposed approach (GPA) can better maintain the performance of pretrained softmax attention while requiring fewer tokens for the linearization process.

The reviewers were generally positive about the paper, but raised several concerns, some of which were suggested (below) to be addressed during the rebuttal. In particular:

  • Results on more retrieval focused benchmarks
  • Investigating why MMLU drop happens (this is a short-context benchmark so I am also puzzled at the performance drop)
  • Better unifying the theory (propositions 1-5)
  • Better connecting theory to practical algorithms

These points were adequately addressed during the rebuttal (though I think the theory unification could use further refinement). Two of the three reviewers raised their scores, while one reviewer who was less positive was not responsive.

2 comments
Authors · CommentOpenReview ↗

Dear AC,

Thank you for the clear guidance provided in the Meta Review. With less than a day remaining before the discussion closes, and to facilitate your review, we summarize our rebuttal below. Furthermore, in response to your four core concerns, we have provided detailed replies and supplementary experiments, incorporating the specific feedback from all three reviewers during the discussion phase. The key points are summarized as follows:


1. Results on More Retrieval-Focused Benchmarks

Following the suggestions of Reviewers XRoi and 5EQ1, we evaluated GPA on SWDE, SQuAD, FDA, as well as the long-context stress tests NIAH-1/2/3 and BABILong:

  • SWDE / SQuAD / FDA: GPA-Qwen-7B significantly outperforms GSA and GDN (e.g., SWDE: 56.18 vs. 45.76/41.22; SQuAD: 53.85 vs. 41.92/45.76), demonstrating clear improvements in retrieval capability.
  • NIAH: On the simple retrieval task (S-NIAH-1), the fine-tuned GPA loses almost no performance and still maintains around 90% accuracy when extrapolating to 128K, surpassing the original Qwen. On the harder multi-hop retrieval tasks S-NIAH-2/3, although GPA still lags behind standard Attention, it clearly outperforms GSA and GDN. Improving the performance on S-NIAH-2/3 will also be one of the improvement goals of our future methods built upon GPA.
  • BABILong: The converted GPA again performs better than GSA and GDN. After targeted fine-tuning, GPA-Qwen-7B achieves performance comparable to the RMT method, recovering to a level close to or even surpassing the corresponding original model.
  • These results confirm that GPA is strongly competitive on retrieval and long-context tasks, outperforming baselines such as GSA and GDN, and that the gap with Softmax Attention can be substantially narrowed through appropriate fine-tuning. All results and discussions will be incorporated into the final manuscript's main text and appendix.

2. Analysis of the MMLU Performance Drop

To explain the approximately 20% drop in MMLU, we conducted extensive controlled experiments and identified three main reasons:

(1) Pretraining overfitting and fine-tuning data distribution shift
The base models were exposed to a large amount of high-quality downstream task data related to MMLU during pretraining, leading to severe overfitting on this benchmark. When we perform large-scale continued pretraining or fine-tuning on general corpora (e.g., FineWeb, SlimPajama), even the original Qwen or Mistral models suffer a sharp decline in MMLU (for example, Qwen2.5‑7B drops from 74.2 to 60.9 after training on 20B tokens from FineWeb). If only a small amount of high-quality SFT data is used, the drop is minor, indicating that large-scale general training rapidly "dilutes" the overfitting effect. Further fine-tuning on high-quality SFT datasets such as Tulu-3 can partially recover the MMLU performance.

(2) Linearization approximation error
There is an inherent error between linear models and Softmax Attention. Because GPA has a smaller approximation error, it recovers MMLU faster under the same training budget and achieves a higher upper bound (e.g., Qwen2.5-7B on FineWeb 20B: GPA 56.7 > GSA 49.2 > GDN 45.4).

(3) Positive effect of fine-tuning data scale
MMLU performance improves consistently as the amount of fine-tuning data increases: for GPA, MMLU is 52.9 at FineWeb 10B, 56.7 at 20B, and further rises to 58.5 at 30B. In contrast, GSA on Mistral only reaches 38.1 even after training on 100B tokens (32.4 at 20B).

In summary, the MMLU drop is not a deficiency unique to GPA but a common phenomenon during linearization. Thanks to its superior error control and data efficiency, GPA possesses a stronger ability to recover. The relevant analysis tables will be presented in detail in the paper.

3. Theoretical Unification: Compositional Compression and Approximation Guarantee of Propositions 1–5

Addressing Reviewer Cj3h's concern about theoretical fragmentation, we have distilled a Unified Final Proposition that integrates all five propositions into a formal framework with a clear cumulative error analysis. This proposition reorganizes Equations 11–16 into propositional form. Its core logic is as follows:

  • Deduplication and Counting (P1): Converts the sequence-length-dependent unbounded KV cache into a finite set of distinct KV types along with their counts, introducing deduplication error.
  • Content–Position Decoupling and Compression (P2–P3): The number of content types in the first layer is bounded by the vocabulary size, while positional information is compressed, incurring positional approximation error.
  • Cross-Layer State Bound Propagation (P4): Leverages inter-layer similarity to recursively propagate the first-layer type bound to subsequent layers, giving an upper bound on the required number of effective states per layer, Mℓ≤M‾ℓM_\ell \le \overline{M}_\ell, without introducing additional numerical error.
Authors · CommentOpenReview ↗

Continuation of Question 3

  • Fixed-Size Multilevel Residual Approximation (P5): Through multilevel vocabulary decomposition and residual updates, achieves a combinatorial capacity ∏mℓ,i≥M‾ℓ\prod m_{\ell,i} \ge \overline{M}_\ell under a fixed explicit storage budget ∑mℓ,i\sum m_{\ell,i}, and controls the residual error to decay multiplicatively (rather than accumulate additively).
  • Single-Layer Aggregate Error: After defining the total key error ηℓ,tK\eta_{\ell,t}^{K} and total value error ηℓ,tV\eta_{\ell,t}^{V}, the single-layer approximation error satisfies
∥oℓ,tSA−oℓ,tGPA∥2≤2Bℓ,V(Bℓ,Qdℓηℓ,tK+ϵℓ,tcnt+ϵℓ,tpos)+ηℓ,tV.\lVert \boldsymbol{o}_{\ell,t}^{\mathrm{SA}} - \boldsymbol{o}_{\ell,t}^{\mathrm{GPA}} \rVert_2 \le 2B_{\ell,V}\Bigl(\frac{B_{\ell,Q}}{\sqrt{d_\ell}}\eta_{\ell,t}^{K} + \epsilon_{\ell,t}^{\mathrm{cnt}} + \epsilon_{\ell,t}^{\mathrm{pos}}\Bigr) + \eta_{\ell,t}^{V}.
  • Cross-Layer Error Accumulation: The final hidden-state error is the weighted sum of each layer's local error amplified by the perturbation factors of subsequent residual blocks, i.e.,
EL,t≤∑ℓ=1Leℓ,t∏r=ℓ+1LΛr,E_{L,t} \le \sum_{\ell=1}^{L} e_{\ell,t} \prod_{r=\ell+1}^{L}\Lambda_r,

which clearly characterizes the propagation path from local compression errors to the global output error.

This proposition fully presents the progressive linearization path: "Unbounded KV Cache → Distinct KV Types and Counts → Vocabulary-Scale Content and Compressed Positions → Bounded Intermediate-Layer State Types → Fixed-Size Multilevel Residual States." When all approximation errors are zero, GPA exactly recovers standard Softmax Attention. The complete mathematical proof will be included in the appendix. This unified framework eliminates the fragmented nature of the theoretical narrative and clearly illustrates the principled pathway from standard Attention to a fixed-state linear model.

4. Strong Connection Between Theory and Practical Algorithm

We further clarify the one-to-one mapping from each proposition to specific GPA architectural components, with all engineering designs having explicit theoretical motivations:

  • Proposition 1 → Redundancy elimination and counting mechanism nt(i)n_t^{(i)} (Eqs. 11–12), transforming the unbounded KV cache into a finite set of state types.
  • Propositions 2–3 → Content–position decoupling and positional compression, embodied in Eq. 13 and ct(i)c_t^{(i)}, and compatible with RoPE and gating mechanisms. Key connection: After decoupling and compressing positional information, Propositions 2–3 require the deduplication operation described in Proposition 1 to achieve the vocabulary-size upper bound.
  • Proposition 4 → Provides the theoretical basis for determining the number of multilevel state layers and their capacities (hyperparameter selection principle). Key connection: Once the first-layer upper bound is controlled, inter-layer similarity propagates the bound to subsequent layers, achieving substantial KV cache compression at every layer.
  • Proposition 5 → Multilevel vocabulary decomposition and residual state updates (Eqs. 14–15), with the explicit introduction of inter-state relation matrices (routing matrices), a necessary component not considered in MVA. Key connection: Decomposition and compression to the vocabulary size is what makes Proposition 5 practically meaningful, enabling near-exponential equivalent capacity under a state budget comparable to current linear models.
  • The enhanced reading mechanism adopted from MVA and the sigmoid routing nonlinearity are merely practical optimizations that do not affect the core theoretical framework.
  • Furthermore, we have experimentally demonstrated the orthogonality of GPA with hybrid attention designs (SWA, STILL, cross-layer hybridization), proving that GPA, as a linear core, can be flexibly integrated into various hybrid architectures.

Overall Discussion Status

During the discussion phase, all three reviewers should have read our detailed responses. Reviewers XRoi and 5EQ1 explicitly stated that their concerns have been resolved and maintained/raised their positive scores; we have addressed every question from Reviewer Cj3h point by point (including the unified theorem, error accumulation, component mapping, etc.), although we have not yet received their final feedback as of the end of the discussion period. We will further revise the final manuscript based on all reviewers' comments, including: adding all the above experiments and analyses, rewriting the theory section to highlight the unified proposition, strengthening the theory–practice correspondence, correcting all typos and annotation issues, and so on.

Once again, we sincerely thank you and all the reviewers for your valuable time and constructive guidance, which have been crucial in improving the quality of our paper.

Sincerely, The Authors

Reviewer Cj3hOpenReview ↗
Rating
3/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper views the conversion from Softmax attention to linear attention as a progressive KV-cache approximation problem and proposes a five-step theoretical framework consisting of redundancy elimination, token quantization with positional decoupling, positional compression, inter-layer similarity, and multi-state decomposition. Based on these principles, the authors develop GPA, a weight-inheriting linear attention architecture that achieves improved performance over prior linear-attention approaches such as GSA and MVA. The paper aims to provide both a theoretical explanation of why linear attention can approximate Softmax attention and a practical roadmap for designing more effective linear attention models.

Strengths and weaknesses

Strengths:

  1. The paper introduces a novel theoretical framework that unifies Softmax and linear attention by formulating linearization as a KV cache approximation problem.

  2. The paper provides rigorous theoretical analysis by identifying five key components of linear attention and supporting each with theoretical justification and error bounds.

  3. The proposed framework offers valuable insights into existing linear attention mechanisms by explaining them from a unified theoretical perspective.

  4. The proposed GPA model effectively inherits pretrained weights while requiring relatively little fine-tuning, making it practical for real-world adoption.

Weaknesses:

  1. Propositions 2 and 3 appear to apply only to the first layer, where representations remain directly tied to tokenizer vocabulary embeddings. The paper states that the argument becomes ineffective in deeper layers due to token mixing and positional entanglement. Thus, the theoretical guarantees established by Propositions 2 and 3 do not appear to extend beyond the first layer, and the subsequent analysis relies on the separate assumptions introduced in Proposition 4.

  2. The connection between the five theoretical findings remains unclear. While each proposition addresses a different aspect of KV-cache compression or linear attention design, the paper does not provide a unifying theorem or formal framework showing how the individual results compose. In particular, it is unclear what overall guarantee follows when Propositions 1–5 are combined, how their approximation errors accumulate, and whether the final GPA model satisfies the assumptions required by all propositions simultaneously. As a result, the theoretical narrative appears fragmented, making it difficult to understand what the five propositions collectively establish.

  3. The connection between the theoretical framework and the final GPA architecture is unclear, as the model incorporates numerous heuristic and engineering-driven components, e.g., sigmoid routing, vocabulary decomposition, enhanced reading mechanisms, routing matrices, and multi-channel reading, making it difficult to identify which design choices are theoretically grounded and which are introduced primarily for practical performance.

  4. The experimental methodology lacks sufficient detail, with important implementation information, e.g., state sizes, inference configurations, memory budgets, exact architectural differences from GSA/MVA, and statistical variance across runs, either omitted or inadequately described.

  5. Although the paper provides valuable theoretical analyses, the novelty of the proposed method relative to existing work remains insufficiently clear, as many of its core components appear to be derived from or closely related to established techniques, including vector quantization, memory decomposition, GSA, MVA, delta-rule memories, and KV-cache compression, making it difficult to discern the specific algorithmic innovations and contributions beyond their integration within a unified framework.

  6. The paper suffers from writing and presentation issues, including numerous grammatical errors, awkward phrasing, inconsistent and overloaded notation, and theoretical statements and propositions that are often difficult to follow and appear more intuitive than rigorously formalized.

Questions
  1. Among the five theoretical principles, which one drives the largest performance improvement? The authors should provide a thorough ablation study on the full GPA architecture to clarify each component's contribution.

  2. How robust is GPA to changes in hyperparameters: vocabulary state size, number of decomposition levels, similarity thresholds, and routing strategy?

  3. The paper claims Softmax attention is a special case of a linear model, but in what sense exactly? Is this a statement about computational complexity, expressive power, or ease of implementation? A formal theorem would help substantiate this claim.

  4. Proposition 1 is central to the paper's argument, yet the derived bound appears to far exceed any realistic memory budget. What is the actual practical takeaway from this bound?

  5. Proposition 4 appears to hinge on the assumption that representations remain similar across layers. How does this inter-layer similarity actually behave across different model architectures, model scales, and downstream tasks?

  6. How does GPA stack up against recent efficient attention methods that preserve Softmax, e.g., as KV-cache compression, sparse attention, or hybrid attention variants, when compared under the same memory budget?

Limitations

Yes

Formatting concerns

No

11 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We sincerely thank the reviewer for the thorough reading and the highly constructive feedback. Since you’ve provided a large number of questions, and our response is nearly 30k characters long, we’ll first address the key points by the simplified version. (comments to answer the remaining Q. )

W1.

R: We acknowledge that the strict theoretical upper bound from Propositions 2 and 3 holds primarily at the first layer. However, the proposed information decoupling and compression methodology is universally applicable to any layer with positional information, yielding substantial compression gains. To propagate the first-layer vocabulary bound to deeper layers, we rely on Proposition 4. We emphasize that Proposition 4's assumptions are exceptionally mild—requiring only standard numerical precision (e.g., bfloat16/FP8) and the presence of residual connections. Extensive inter-layer similarity experiments across various models strongly support this (please also refer to Reviewer 5EQ1’s W1).

W2.

R: We appreciate this crucial observation. We would like to clarify that a unified theoretical formulation and incremental ablation studies (Tables 4–7) are already provided in Section 3.6 of the manuscript. Specifically, Eqs. (12)–(16) systematically map to Propositions 1–5, detailing how redundant KV consolidation, positional decoupling, inter-layer similarity constraints, and vocabulary decomposition compose to form the final GPA output.

To further address your concern and provide a rigorous compositional guarantee, we formulate a Unified Theorem with accumulated error analysis:

Unified Theorem: Compositional Guarantee of GPA Theorem 1 (Fixed-state approximation of Softmax attention by GPA). Consider an LL-layer causal Transformer with vocabulary size VV and bounded norms ∥qt(ℓ)∥2≤Bq(ℓ)\|\boldsymbol q_t^{(\ell)}\|_2\le B_q^{(\ell)}, ∥kt(ℓ)∥2≤Bk(ℓ)\|\boldsymbol k_t^{(\ell)}\|_2\le B_k^{(\ell)}, ∥vt(ℓ)∥2≤Bv(ℓ)\|\boldsymbol v_t^{(\ell)}\|_2\le B_v^{(\ell)}. Let ot,SA(ℓ)o_{t,\mathrm{SA}}^{(\ell)} and ot,GPA(ℓ)o_{t,\mathrm{GPA}}^{(\ell)} denote the exact Softmax and GPA outputs. Suppose:

  • Redundant KV consolidation (Prop 1) has distortions δdup,k(ℓ),δdup,v(ℓ)\delta_{\mathrm{dup},k}^{(\ell)}, \delta_{\mathrm{dup},v}^{(\ell)}.
  • Positional decoupling (Prop 2) is lossless, and compressed positional stats (Prop 3) introduce score error ηpos,t(ℓ)\eta_{\mathrm{pos},t}^{(\ell)}.
  • Inter-layer matching ratios (Prop 4) are p1,…,pℓ>0p_1,\ldots,p_\ell>0.
  • GPA uses HℓH_\ell residual memory levels (Prop 5) with quantization ratios ρℓ,ik,ρℓ,iv\rho_{\ell,i}^{k}, \rho_{\ell,i}^{v}.
  • Enhanced reading (Prop 6) introduces errors ηread−score,t(ℓ),ηread−out,t(ℓ)\eta_{\mathrm{read-score},t}^{(\ell)}, \eta_{\mathrm{read-out},t}^{(\ell)}.

Then: (a) Recursive effective-state bound: Mℓ≤min⁡ ⁣{T,V∏r=1ℓpr}M_\ell \le \min\!\left\{T, \frac{V}{\prod_{r=1}^{\ell}p_r}\right\}. Prop 2 initializes M0≤VM_0\le V, and Prop 4 propagates it.

(b) Linear complexity: The storage cost is O((dk+dv+dp)∑i=1Hℓsℓ,i)O\left((d_k+d_v+d_p)\sum_{i=1}^{H_\ell}s_{\ell,i}\right), independent of TT. Inference requires O(T)O(T) time and O(1)O(1) recurrent memory.

(c) Per-layer approximation error: Defining effective reconstruction errors Dk(ℓ)=δdup,k(ℓ)+Bk(ℓ)(∏i=1Hℓρℓ,ik)1/2D_k^{(\ell)} = \delta_{\mathrm{dup},k}^{(\ell)} + B_k^{(\ell)} (\prod_{i=1}^{H_\ell}\rho_{\ell,i}^{k})^{1/2} (and similarly for Dv(ℓ)D_v^{(\ell)}), the output error is bounded by:

E[∥ot,SA(ℓ)−ot,GPA(ℓ)∥2]≤2Bv(ℓ)[ηpos,t(ℓ)+ηread−score,t(ℓ)+Bq(ℓ)dDk(ℓ)]+Dv(ℓ)+ηread−out,t(ℓ).\mathbb E\left[\| o_{t,\mathrm{SA}}^{(\ell)} - o_{t,\mathrm{GPA}}^{(\ell)} \|_2\right] \le 2B_v^{(\ell)} \left[ \eta_{\mathrm{pos},t}^{(\ell)} + \eta_{\mathrm{read-score},t}^{(\ell)} + \frac{B_q^{(\ell)}}{\sqrt d}D_k^{(\ell)} \right] + D_v^{(\ell)} + \eta_{\mathrm{read-out},t}^{(\ell)}.

Crucially, the multi-level residual error decreases multiplicatively as E[∥rHℓ(ℓ)∥22]≤E[∥r0(ℓ)∥22]∏i=1Hℓρℓ,i\mathbb E[\|r_{H_\ell}^{(\ell)}\|_2^2] \le \mathbb E[\|r_0^{(\ell)}\|_2^2] \prod_{i=1}^{H_\ell}\rho_{\ell,i}, rather than accumulating additively.

(d) Cross-layer error accumulation: With Lipschitz bound Λℓ\Lambda_\ell for the ℓ\ell-th residual block, the final deviation satisfies E[∥hSA(L)−hGPA(L)∥2]≤∑ℓ=1L(∏r=ℓ+1LΛr)εℓ\mathbb E[\|h_{\mathrm{SA}}^{(L)}-h_{\mathrm{GPA}}^{(L)}\|_2] \le \sum_{\ell=1}^{L} (\prod_{r=\ell+1}^{L}\Lambda_r) \varepsilon_\ell. Under normalized residual blocks, the end-to-end error is approximately additive.

A full proof combining Props 1–5 with perturbation bounds will be added to the appendix.

W3.

R: To clarify the connection between the theoretical framework and the GPA architecture, the main thread is as follows:

  • Prop 1 (Eqs. 11-12): De-duplication and counting reduce the KV cache from unbounded to bounded.
  • Props 2 & 3 (Eq. 13, ct(i)c_t^{(i)} in Eq. 14): Information decoupling and compression compress the first-layer bound to the vocabulary size.
  • Prop 4: Inter-layer similarity uses first/last-layer bounds to constrain intermediate layers, guiding hyperparameter settings.
  • Prop 5 (Eqs. 14-15): Vocabulary decomposition exponentially decays the layer-wise upper bound, achieving high effective capacity with limited state sizes. at(i)a_t^{(i)} computes the equivalent attention score per level.
  • Eq. 16: Normalization and residual connections yield the final GPA output.
  • Prop 6: Justifies the enhanced reading and multi-channel mechanisms for marginal performance gains.

Sigmoid routing is a minor technique replacing Softmax nonlinearity for slight performance gains. Routing matrices record inter-level state connections, which are a mathematically necessary consequence of the decomposition process.

W4.

R: We sincerely thank the reviewer for pointing out these omissions.

  • State sizes: As indicated in Line 262, we use two-level states with a total of 128 states to ensure a fair comparison with GSA/MVA; thus each level has 64 states.
  • Inference configurations and memory budgets: refer to Reviewer 5EQ1 Q1. We also have tests for 16K and 128K, but due to space limitations, please refer to the comments below.

W5 (Similarity to existing techniques)

We acknowledge that some components may appear superficially related to prior work, but their motivation and essence are fundamentally different:

  • Proposition 1 (deduplication & counting): Our analysis is purely information‑theoretic—digital computers inherently quantise, enabling finite‑state representation via type counting. The delta‑rule is a linear deduplication; ours retrieves states through an extremal combination mechanism and explicitly preserves counting information (which delta‑rule discards).
  • KV‑state usage: Reducing error relative to standard attention via KV states is natural, so some resemblance to GSA is expected—but our multi‑level composition and inter‑state connections are not addressed in GSA.
  • Memory decomposition: Unlike MVA, we identify and model inter‑level connections (routing matrices) as crucial for performance.
  • KV‑cache compression: This is a broad concept; our compression methods are specifically designed to minimise a well‑defined error objective. We are not aware of any method with the same formulation. If the reviewer has specific references, we are happy to compare.

More importantly, the unified integration itself is a major contribution. Analogous to calculus—where individual arithmetic operations are known but only their combination yields the intended power—our work provides a systematic path for linearisation, combining necessary nodes to enable future research.

Q1

Tables 4–7 in the manuscript already provide ablation studies isolating the effect of each theoretical component. The "MVA" variant in Table 7 specifically applies our Components 1–4 while retaining only the original MVA decomposition, clearly highlighting the improvement brought by our decomposition strategy.

We emphasize that our theory provides a stepwise linearization path from standard attention to a fixed‑state architecture with moderate state size. The final performance is achieved only through the integrated combination of all components—attributing the gain to any single one is inherently difficult, much like calculus, whose power emerges from the proper combination of basic operations rather than from any isolated operator alone.

Q2.

Dynamic thresholds: In practice, we use Softmax normalization with KV parameters to learn thresholds adaptively; output activations typically concentrate near 0.9. Fixed thresholds in the theory are used solely for pedagogical clarity.

Routing strategy: If this refers to inter‑state connections, they are fully determined by the vocabulary size and number of decomposition levels, and are highly stable because the stored values depend only on inter‑state errors.

Model Tokens ARC-c ARC-e HellaSwag PIQA WinoGrande
Qwen2.5-3B (Original) – 45.0 77.4 73.5 78.6 68.5
Qwen2.5-3B-GPA (2×64) 3B 41.5 74.6 65.1 72.3 60.1
Qwen2.5-3B-GPA (4×64) 3B 42.6 74.0 65.7 74.2 62.5
Qwen2.5-3B-GPA (2×128) 3B 42.1 75.9 66.5 73.9 61.6

Q5.

R: We tested inter-layer similarity on various texts (sampled from FineWeb, MMLU, etc.) across different model architectures such as Llama, Qwen, and Mistral, averaging over multiple samples.

Layer Pair Llama-3-70B Sim (%) Qwen2.5-3B Sim (%) Llama-3.1-8B Sim (%)
L0-L1 73 44 59
L1-L2 89 90 76
L2-L3 91 96 81
L3-L4 90 95 84
L4-L5 93 95 84
L5-L6 93 95 83
L6-L7 94 94 85
L7-L8 92 93 85
... ... ... ...
L13-L14 91 93 90
L14-L15 92 93 90
L15-L16 92 94 90
L16-L17 91 95 90
L17-L18 89 96 90
L18-L19 89 95 90
... ... ... ...
L26-L27 93 94 96
L27-L28 92 92 95
L28-L29 92 94 94
L29-L30 92 94 93
L30-L31 93 93 94
L31-L32 92 92 –
L32-L33 94 94 –
L33-L34 93 93 –
... ... ... ...
L78-79 85 – –
Authors · CommentOpenReview ↗

Dear Reviewer, Due to character limitations, we previously uploaded only a condensed version of our rebuttal, and some of your questions were left unanswered. We are now providing a detailed response to your questions via this comment. Thank you very much.

We sincerely thank the reviewer for the detailed and constructive comments. Below, we respond to each weakness and question in turn.


Weakness 1

We agree that the vocabulary-size upper bounds established in Propositions 2 and 3 hold strictly only for the first layer. However, the underlying principles of information decoupling and positional compression can be applied to any layer that contains positional information or an equivalent positional mechanism, and they can still provide substantial compression.

Propagating the vocabulary-based upper bound from the first layer to subsequent layers indeed requires Proposition 4. Nevertheless, the assumptions of Proposition 4 are relatively basic: they require only finite numerical precision, such as bfloat16 or FP8, together with residual connections. We have also conducted extensive experiments on inter-layer similarity across different models, architectures, and scales. Please see our response to Reviewer 5EQ1, Weakness 1, for additional evidence.


Weakness 2

We sincerely thank the reviewer for raising this important issue. Section 3.6 already presents the final update equations that combine all five propositions, together with brief explanations of which proposition motivates each component. Nevertheless, we agree that an explicit unified theorem would substantially improve the clarity and completeness of the theoretical presentation.

More specifically:

  • Equation (12) directly implements the redundancy-removal and counting mechanism in Proposition 1 and its proof in Appendix A.3. The variable nt(i)n_t^{(i)} records the effective occurrence count.

  • Equation (13) corresponds to the positional decoupling and compression principles in Propositions 2 and 3. Together with nt(i)n_t^{(i)}, it realizes the following term in the positional approximation around Line 163: (t+fp(qn,p(n))⊤fp(ks,p(t)(s))−fp(qn,p(n))⊤ks).\left( t + f_p(\boldsymbol{q}_n, \boldsymbol{p}(n))^\top f_p(\boldsymbol{k}_s, \boldsymbol{p}^{(t)}(s)) - f_p(\boldsymbol{q}_n, \boldsymbol{p}(n))^\top \boldsymbol{k}_s \right). Because the implementation must support parallel computation, several terms are separated and subsequently recombined. These terms are ultimately absorbed into ct(i)c_t^{(i)}, as explained around Line 244.

  • Proposition 4 determines the required number of memory levels and their level-wise state sizes, thereby providing a theoretically motivated configuration for Proposition 5.

  • The residual decomposition in Proposition 5, around Line 214, corresponds to mt(i+1)m_t^{(i+1)} in Equation (14), including both the key and value states.

  • The inter-level relation Rt(i+1)R_t^{(i+1)} records the correspondence between adjacent memory levels, while at(i)a_t^{(i)} computes the effective attention score at each level.

  • Equation (16) normalizes and combines the level-wise outputs to produce the final GPA attention output.

In addition, Tables 4–7 and the final GPA implementation progressively incorporate the mechanisms motivated by the five propositions and report their corresponding performance changes.

We agree, however, that the manuscript would benefit from a more explicit compositional statement. Following the reviewer’s questions regarding error accumulation and whether the assumptions of all propositions can be satisfied simultaneously, we provide the following unified theorem.

Authors · CommentOpenReview ↗

Unified Final Proposition: Compositional Compression and Approximation Guarantee of GPA

Proposition. Let oℓ,tSA\boldsymbol{o}_{\ell,t}^{\mathrm{SA}} and oℓ,tGPA\boldsymbol{o}_{\ell,t}^{\mathrm{GPA}} denote the standard Softmax Attention and GPA outputs at time step tt in layer ℓ\ell, respectively. Equations (11)–(16) combine Propositions 1–5 as follows.

  1. Proposition 1: Deduplication and Counting. Equations (11)–(12) merge repeated or similar KV pairs and use nt(i)n_t^{(i)} to preserve their multiplicities, converting the sequence-length-dependent KV cache into a finite set of distinct KV types. Exact merging is lossless; soft matching introduces key, value, and counting errors denoted by ϵℓ,tdup,K\epsilon_{\ell,t}^{\mathrm{dup},K}, ϵℓ,tdup,V\epsilon_{\ell,t}^{\mathrm{dup},V}, and ϵℓ,tcnt\epsilon_{\ell,t}^{\mathrm{cnt}}.

  2. Propositions 2–3: Content–Position Decomposition. Proposition 2 bounds the number of position-independent content types in the first layer by the tokenizer vocabulary size ∣V∣|\mathcal V|. Proposition 3 compresses positional information, and Equation (13) incorporates both the count and positional correction into ct(i)c_t^{(i)}. Proposition 2 introduces no numerical approximation, while Proposition 3 contributes positional error ϵℓ,tpos\epsilon_{\ell,t}^{\mathrm{pos}}. The vocabulary bound is strict only for the first layer.

  3. Proposition 4: Propagation to Deeper Layers. If MℓM_\ell is the number of effective states required in layer ℓ\ell, Proposition 4 gives:

Mℓ≤M‾ℓM_\ell \le \overline{M}_\ell

where M‾ℓ\overline{M}_\ell is a layer-dependent constant multiple of ∣V∣|\mathcal V| determined by inter-layer matching ratios. Proposition 4 therefore specifies the capacity required by the multilevel representation without directly introducing numerical error.

  1. Proposition 5: Fixed-Size Multilevel Approximation. Suppose layer ℓ\ell contains HℓH_\ell levels with mℓ,im_{\ell,i} states at level ii. The explicit storage is ∑imℓ,i\sum_i m_{\ell,i}, while the nominal number of joint paths is ∏imℓ,i\prod_i m_{\ell,i}. If:
∏imℓ,i≥M‾ℓ\prod_i m_{\ell,i} \ge \overline{M}_\ell

there is no unavoidable bottleneck caused solely by insufficient joint paths; otherwise, capacity-collision errors ϵℓ,tcap,K\epsilon_{\ell,t}^{\mathrm{cap},K} and ϵℓ,tcap,V\epsilon_{\ell,t}^{\mathrm{cap},V} may occur.

Equation (14) performs recursive residual decomposition through mt(i+1)m_t^{(i+1)}, while Rt(i+1)R_t^{(i+1)} records inter-level relations. Equations (15)–(16) compute the attention scores and normalized value aggregation. The final residual errors satisfy:

ϵℓ,tres,K≤Bℓ,K∏i=1Hℓρℓ,iK,ϵℓ,tres,V≤Bℓ,V∏i=1Hℓρℓ,iV\epsilon_{\ell,t}^{\mathrm{res},K} \le B_{\ell,K}\prod_{i=1}^{H_\ell}\rho_{\ell,i}^{K}, \qquad \epsilon_{\ell,t}^{\mathrm{res},V} \le B_{\ell,V}\prod_{i=1}^{H_\ell}\rho_{\ell,i}^{V}

where the residual ratios are those established by Proposition 5. If they are uniformly below one, the residual error decreases exponentially with the number of levels.

Define the total key and value errors as:

ηℓ,tK=ϵℓ,tdup,K+ϵℓ,tcap,K+ϵℓ,tres,K\eta_{\ell,t}^{K} = \epsilon_{\ell,t}^{\mathrm{dup},K} + \epsilon_{\ell,t}^{\mathrm{cap},K} + \epsilon_{\ell,t}^{\mathrm{res},K}
ηℓ,tV=ϵℓ,tdup,V+ϵℓ,tcap,V+ϵℓ,tres,V\eta_{\ell,t}^{V} = \epsilon_{\ell,t}^{\mathrm{dup},V} + \epsilon_{\ell,t}^{\mathrm{cap},V} + \epsilon_{\ell,t}^{\mathrm{res},V}

For bounded queries and values,

∥qℓ,t∥2≤Bℓ,Q,max⁡s≤t∥vℓ,s∥2≤Bℓ,V\|\boldsymbol{q}_{\ell,t}\|_2 \le B_{\ell,Q}, \qquad \max_{s\le t}\|\boldsymbol{v}_{\ell,s}\|_2 \le B_{\ell,V}

the single-layer approximation error satisfies:

∥oℓ,tSA−oℓ,tGPA∥2≤2Bℓ,V(Bℓ,Qdℓηℓ,tK+ϵℓ,tcnt+ϵℓ,tpos)+ηℓ,tV\left\lVert \boldsymbol{o}_{\ell,t}^{\mathrm{SA}} - \boldsymbol{o}_{\ell,t}^{\mathrm{GPA}} \right\rVert_2 \le 2B_{\ell,V} \left( \frac{B_{\ell,Q}}{\sqrt{d_\ell}}\eta_{\ell,t}^{K} + \epsilon_{\ell,t}^{\mathrm{cnt}} + \epsilon_{\ell,t}^{\mathrm{pos}} \right) + \eta_{\ell,t}^{V}

Thus, Propositions 1–5 establish the following compositional process:

Unbounded KV cache→P1distinct KV types and counts→P2+P3vocabulary-scale content and compressed positions→P4bounded intermediate-layer state types→P5fixed-size multilevel residual states\text{Unbounded KV cache} \xrightarrow{\mathrm{P1}} \text{distinct KV types and counts} \xrightarrow{\mathrm{P2+P3}} \text{vocabulary-scale content and compressed positions} \xrightarrow{\mathrm{P4}} \text{bounded intermediate-layer state types} \xrightarrow{\mathrm{P5}} \text{fixed-size multilevel residual states}

With exact merging and counting, exact positional representation, sufficient joint-path capacity, and zero residual error, the bound becomes zero and Equations (11)–(16) recover standard Attention.

For an LL-layer GPA model, let eℓ,te_{\ell,t} denote the above local error and Λr\Lambda_r the local perturbation-amplification factor of subsequent block rr. The final hidden-state error satisfies:

EL,t≤∑ℓ=1Leℓ,t∏r=ℓ+1LΛrE_{L,t} \le \sum_{\ell=1}^{L} e_{\ell,t} \prod_{r=\ell+1}^{L}\Lambda_r

Therefore, the complete approximation error consists of the local compression error introduced in each GPA layer and its propagation through subsequent Transformer blocks.

Note to Reviewers: We have completed the full step-by-step mathematical proof for this proposition. Due to space limits in the response, it is omitted here but we would be happy to provide the complete derivation upon request.

Reviewer 5EQ1OpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies how to linearized pretrained Softmax Attention models. The authors interpret the linearization process as a KV cache approximation and propose a principled framework centered on redundancy elimination, positional compression, inter-layer similarity, and multi-state decomposition. Based on these principles, they introduce the GPA model and demonstrate certain improvements over baselines such as GSA, MVA, and GLA on language understanding, long-context, and passkey retrieval tasks.

Strengths and weaknesses

Strength

  1. I believe that the linearization of Softmax Attention in pretrained LLMs is a core problem in efficient long-context modeling. Instead of simply proposing a new linear attention block, this paper attempts to provide a unified explanation of the transformation from Softmax attention to linear attention from the perspective of KV cache approximation, which is an insightful viewpoint.

  2. The paper is well-organized and clearly written.

  3. Large-scale experiments. The authors conduct experiments on multiple models and compare with several methods, showing improvements on certain tasks.

Weakness

  1. line 201. The paper claims that the five principles form a principled pathway from Softmax Attention to Linear Attention. However, several propositions rely on strong assumptions, and the final implementation introduces additional engineering components such as scaling factors, multi-level memory, and enhanced reading mechanisms. Specifically, the inter-layer similarity analysis provides a recursive upper bound in theory, but the author later admits that similarities may approach zero and resorts to fixed scaling for practical control, creating a clear gap between theoretical guarantees and the final algorithm.

  2. The paper positions itself as a general framework for linearizing pretrained attention models, but the discussion mainly focuses on KV cache compression and existing linear attention methods. It provides insufficient discussion of approaches that selectively preserve Softmax attention, intra-layer hybrid attention, or token-level hybrid linearization. I suggest that the authors discuss the relationship with STILL[1] and Liger[2], and clarify how GPA differs from methods that preserve high-fidelity attention for selected key tokens in terms of problem formulation, theoretical assumptions, and performance-efficiency trade-offs.

  3. It would also be valuable to discuss the compatibility and feasibility of GPA with cross-layer hybrid designs. The current method still shows a noticeable gap on long-sequence tasks, and in my own experience, keeping standard attention in a small number of layers can significantly improve performance. Related works such as Jet-Nemotron[3] and KL-Selector[4] may provide useful references for this improvement.

[1] Meng, et al. STILL: Selecting Tokens for Intra-Layer Hybrid Attention to Linearize LLMs. arXiv 2026.

[2] Lan, Disen, et al. Liger: Linearizing large language models to gated recurrent structures. ICML 2025.

[3] Gu, Yuxian, et al. Jet-nemotron: Efficient language model with post neural architecture search. NeurIPS 2026.

[4] Li, Yanhong, et al. "Distilling to hybrid attention models via kl-guided layer. ICLR 2026.

Questions

Beyond the concerns raised in the weaknesses, I have a few additional questions:

  1. The efficiency argument is not sufficiently convincing. The current results only report overall curves and lack component-level latency or FLOPs analysis. The authors need to provide more fine-grained comparisons. In addition, the proposed design may pose challenges for hardware parallelization; it would be helpful if the authors could discuss this aspect in more detail (though I hope this concern is unfounded).

  2. Currently dominated by commonsense benchmarks, the evaluation lacks systematic long-context stress tests (e.g., NIAH, BABILong, RULER). Given GPA's core motivation of improving long-context efficiency, stronger evidence on challenging long-sequence retrieval and multi-hop reasoning tasks is essential to substantiate its claims.

This is an interesting work, and I will raise my score if the authors address all my concerns.

Limitations

Yes

Final justification

The authors have provided thorough responses to my questions. In particular, GPA shows consistent improvements across methods based on different linearization strategies, and the tests on long-sequence tasks as well as the latency experiments have largely addressed my core concerns about this paper. I believe that linearizing pretrained models is a promising direction, and its key challenge lies in resolving bottlenecks such as long-range dependency. Although the method and experimental results in this paper are good, the writing, such as background has some shortcomings, which the authors have committed to addressing during the rebuttal. Overall, I believe the rebuttal has resolved all my concerns, and I consider the paper acceptable for publication.

Formatting concerns

NA

6 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We sincerely thank you for your professional and valuable comments, which have greatly improved our paper and methodology.

Weakness 1

Response: We appreciate the insightful comment. We agree that Proposition 4 only gives a conditional upper bound given plp_l; as pl→0p_l\to0 it degenerates, and the practical constant cc is an external capacity constraint, not derived from the proposition—introducing error as noted.

We will therefore explicitly label cc as a user-set capacity hyper-parameter and provide the error analysis relating it to plp_l: the relative error is approximately max⁡(0,plc−1pl)\max(0, \frac{p_l c - 1}{p_l}). Since this introduces error, fine-tuning is required, but Table 6 shows that even small cc recovers performance well, consistent with the insensitivity of KV caches to numerical precision (e.g., KV Quant at 2–4 bits) and with sparse attention properties.

We emphasize that the assumptions are mild—only numerical precision and residual connections. We added inter-layer similarity experiments (see Reviewer Cj3h W5) and cite supporting works such as Deja Vu (ICML), MiniCache (NeurIPS), KVSharer (ACL), and MQA-CLA2 (ACL). The results show high inter-layer similarity across scales (Qwen2.5-14B, Llama-3.2, Mistral, etc.), and linear KV projection does not alter the number of distinct types.

Weakness 2

Response: Our method is orthogonal to selective Softmax preservation, intra-layer hybrid attention, and token-level hybrid linearization, and can be readily combined with them. We demonstrate this with GPA-SWA (Table 8) and newly added GPA-STILL experiments, and we now discuss and cite both STILL and Liger. As shown below, STILL brings notable gains on MMLU and retrieval.

Model Training Tokens (B) PIQA acc ↑ ARC-e acc ↑ ARC-c acc ↑ HellaSwag acc ↑ Wino. acc ↑ MMLU (5-shot) ↑ Avg. (w. MMLU) Avg. (wo. MMLU)
Transformer – – – – – – – – –
Llama 3 8B 15000+ 79.5 80.0 53.3 79.1 73.1 65.3 71.8 73.0
Linearized from Llama 3 8B
LoLCATs 0.04 80.0 78.8 52.5 75.6 73.3 43.9 67.3 72.0
Liger-GLA 0.02 80.3 81.1 52.5 76.3 72.0 43.4 67.6 72.4
STILL 0.04 81.3 81.7 54.8 78.1 73.2 59.7 71.5 73.8
Llama 3 8B GPA-SWA (Ours) 0.04 81.2 82.8 54.5 79.4 74.1 53.8 71.0 74.4
Llama 3 8B GPA-STILL (Ours) 0.04 81.3 82.7 55.2 78.9 73.8 60.4 72.0 74.3

We avoid intra-layer hybrid high-fidelity attention because such mechanisms (e.g., SWA) tend to overfit to the local window, causing retrieval failures beyond it. STILL appears to address this effectively.

Another major reason is that purely linear models have the potential to surpass current Transformers and we believe your expertise will allow you to easily see the potential. This is because Transformers discard information along the time dimension during learning; although this information is compressed into the FFN layers and alleviates the problem to some extent, the lack of explicit time-dimension storage creates a fundamental deficiency. Drawing an analogy to human development, the current standard attention and autoregressive learning paradigm is akin to compressing information into something like genes, while completely discarding explicit memory in the brain, resulting in a trained LLM that is an “amnesiac genius and expert.” To develop the model’s abilities, one must add fabricated contextual memories to improve performance (i.e., in-context learning). Moreover, current LLMs cannot maintain long-term memory during inference, making it difficult to achieve human-like intelligence or emotional robotics.

Our GPA theory offers a possibility: we bound the infinitely KV cache of LLMs through Proposition 1, and then approximate it to a practically feasible state size through proposition1-5. The extremely high equivalent-capacity memory state maintained by GPA can realize explicit time-dimension memory during both pretraining and inference, much like humans possessing growth experiences and memories over time, rather than merely innate talent stored in DNA. Through such learning, ideally, we can achieve the in-context learning performance that standard Attention achieves by injecting relevant text.

Weakness 3

Response: Our method is also orthogonal to cross-layer hybrid designs. We fully agree with your opinion; we have previously conducted extensive work on inter-layer hybridization, and retaining a few standard Attention layers significantly improves performance on long-sequence tasks, especially retrieval, while also saving substantial fine-tuning resources. As stated at line 198 of our paper, using less than 40% of the layers can already recover 100% performance on simple retrieval tasks.

To demonstrate compatibility with cross-layer hybrid designs, we performed fine-tuning following the KL-Selector [4] approach you suggested, building an inter-layer hybrid model. We found that using inter-layer hybridization and preserving certain Softmax attention layers yields huge improvements on retrieval tasks:

Model S-NIAH-2 (2K) S-NIAH-2 (8K) S-NIAH-2 (32K) S-NIAH-3 (2K) S-NIAH-3 (8K) S-NIAH-3 (32K) MMLU
Qwen2.5-7B 100 99.4 99.2 97.8 99.2 100 74.2
GPA-Qwen-7B (Ours) 68.0 32.6 10.4 25.4 10.8 5.4 56.7
GPA-Qwen-7B-12.5% (Ours) 100 100 99.8 99.0 96.8 89.6 63.6

Question 1

Response: We have developed fully parallel Triton kernels based on the FLA library, so you need not worry about parallelization. Our results are as follows, with the configuration: batch-size 2, num-heads 16, num-kv-heads 16, head-dim 128, num-layers 32, state [64, 64], decode-steps 128:

Overall Efficiency

Method Context GPU ms/tok tok/s State/cache MiB Workspace MiB Prefill GPU ms Prefill Workspace MiB
Qwen2-Dense 32K 3.3735 592.11 514 516.13 58.7058 1280
Qwen2-GPA 32K 2.3237 856.57 5 5.6 50.1626 4096
Qwen2-Dense 64K 6.6219 301.84 1026 1028.13 188.3315 2560
Qwen2-GPA 64K 2.3095 861.74 5 5.6 99.6871 8192

GPA Latency Breakdown

Stage Generate 32K Time (ms) Percentage Generate 64K Time (ms) Percentage Prefill 32K Time (ms) Percentage Prefill 64K Time (ms) Percentage
Q/K/V projection 0.1089 4.69% 0.1099 4.76% 6.8295 13.61% 12.9315 12.97%
L0 codebook affinity 0.1655 7.12% 0.1633 7.07% 2.4099 4.80% 4.9484 4.96%
L0 chunk query (S^K) 0.2548 10.96% 0.2508 10.86% 7.2576 14.47% 14.0173 14.06%
L0 attention-score projection 0.081 3.49% 0.0808 3.50% 0.3865 0.77% 0.6825 0.68%
L0 chunk query (S^V) 0.2433 10.47% 0.2409 10.43% 6.2333 12.43% 12.6779 12.72%
Residual K/V projection 0.1285 5.53% 0.1301 5.63% 1.4033 2.80% 2.8033 2.81%
L1 codebook affinity 0.1767 7.61% 0.1754 7.59% 2.4045 4.79% 4.9730 4.99%
L1 chunk query (S^K) 0.2554 10.99% 0.2569 11.12% 6.7719 13.50% 13.7106 13.75%
L1 attention-score projection 0.0808 3.48% 0.081 3.51% 0.3441 0.69% 0.6785 0.68%
State0–1 relation 0.2402 10.34% 0.2358 10.21% 6.7733 13.50% 13.6295 13.67%
L1 relation merge 0.0092 0.39% 0.0096 0.41% 0.0035 0.01% 0.0035 0.00%
L1 chunk query (S^V) 0.2289 9.85% 0.2254 9.76% 6.1786 12.32% 12.38 12.42%
Level output sum 0.0264 1.14% 0.026 1.13% 0.4563 0.91% 0.9047 0.91%
Output projection 0.0909 3.91% 0.0904 3.91% 2.6487 5.28% 5.2842 5.30%
Unaccounted/Python overhead 0.2332 10.03% 0.2333 10.10% 0.0617 0.12% 0.0622 0.06%
GPA core enclosing event 2.0595 — 2.0441 — 40.6696 — 81.4563 —
End-to-end latency 2.3237 100% 2.3095 100% 50.1626 100% 99.6871 100%

Question 2

Response: Following your suggestion, we evaluated GPA on NIAH 1–3 and BABILong 1–5. On S-NIAH-1, GPA maintains strong performance, but on the harder S-NIAH-2/3, all linear models lag behind standard Attention—a known challenge for the field. GPA nonetheless leads GSA and GDN by a clear margin.

With proper fine-tuning (following BABILong/RMT protocols), GPA recovers strongly on BABILong, matching or exceeding the original models:

Model(FT 20B tokens) S-NIAH-1 (2K) S-NIAH-1 (8K) S-NIAH-1 (32K) S-NIAH-1 (128K) S-NIAH-1 (256K) S-NIAH-2 (2K) S-NIAH-2 (8K) S-NIAH-2 (32K) S-NIAH-3 (2K) S-NIAH-3 (8K) S-NIAH-3 (32K)
Qwen2.5-7B 100 100 100 46.5 0.0 100 100 100 97.8 99.2 100
GSA-Qwen-7B 98.8 35.6 8.2 1.6 0.6 24.4 16.2 1.8 0.4 0.0 0.0
GDN-Qwen-7B 97.2 31.8 4.4 0.8 1.4 37.2 11.8 0.4 1.2 0.0 0.0
GPA-Qwen-7B (Ours) 100 98.8 91.2 90.0 88.6 68.0 32.6 10.4 25.4 10.8 5.4
Model BABILong-Q1 (16K) BABILong-Q2 (16K) Q3 (16K) Q4 (16K) Q5 (16K)
Qwen2.5-7B 70 43 73 74 73
GSA-Qwen-7B 21 15 18 17 32
GDN-Qwen-7B 19 11 22 14 28
GPA-Qwen-7B (Ours) 35 27 31 32 54
Qwen2.5-7B-finetune 100 72 86 96 94
GPA-Qwen-7B-finetune (Ours) 100 100 98 100 98
Mistral-7B-finetune 100 49 36 56 74
GPA-Mistral-7B-finetune (Ours) 100 100 96 100 97

In summary, on complex reasoning tasks, purely linear models still lag behind standard Attention with full memory. These results confirm that the gap on complex reasoning can be substantially narrowed with effective state expansion and targeted fine-tuning, while GPA’s extrapolation advantage already surpasses the original on simpler retrieval.

Reviewer 5EQ1 · CommentOpenReview ↗

Post-rebuttal Discussion

Thank you for the additional experiments provided in your rebuttal. I find the experiments addressing Weakness 2 and 3 very convincing and believe they fully demonstrate the strong adaptability of GPA. Furthermore, for long-sequence tasks such as NIAH and BABILong, GPA also shows a substantial recovery of model performance, which I consider especially challenging in the field of linearization LLMs. Overall, I think the current submission has largely resolved my concerns, and all the supplementary experiments should be incorporated into the manuscript.

Nevertheless, there remain some minor writing issues that I hope you can address:

  1. Since linearized large models represent an emerging research direction that many readers may not be familiar with, I still recommend adding a related work section (perhaps in the appendix) and reorganizing Section 2 to supplement the missing background on this topic.

  2. The citation of linear attention [16,17,19,20] in Line 28 seems inappropriate. The current mainstream linear attention work is primarily built around the architecture proposed in [16] and DeltaNet, while [17] is not representative, and [19,20] focus on quantization, which does not fit well here. I suggest use some recent representative works that focus specifically on linear attention, such as PolaFormer, Flatten Transformer, Norm aware Linear Attention, Agent Attention, and Mamba-Like Linear Attention.

Authors · CommentOpenReview ↗

Thank you very much for the reviewer’s positive assessment of our additional experiments. We are pleased that these results have addressed most of your concerns. In the revised manuscript, we will incorporate all new experiments from the rebuttal. Representative results and main conclusions will be added to the main experimental section, while detailed settings, complete results, and additional analyses will be included in the appendix to facilitate future examination and reproduction.

Following your suggestions, we will also add a dedicated Related Work section in the appendix, reorganize Section 2, and revise the citations around Line 28. We sincerely appreciate your careful and constructive review.

1. Adding Related Work and Reorganizing Section 2

We thank the reviewer for pointing out that the current background and related-work discussion is insufficient. We agree that linearizing pretrained large language models remains an emerging direction, and many readers may not be familiar with the distinctions among conventional linear attention, linear recurrent models, hybrid attention, and pretrained-model linearization.

The current Section 2 mainly presents the mathematical formulations of Softmax Attention, KV cache compression, and recurrent linear states, but does not sufficiently clarify how these research directions are related. We will therefore revise and reorganize Section 2 as follows:

  1. We will more clearly distinguish linear attention based on separable kernel functions, linear recurrent models based on gating or the Delta Rule, and methods that linearize or hybridize pretrained Softmax Transformers.
  2. We will add a dedicated subsection entitled “Linearizing Pretrained LLMs”, which will systematically discuss SUPRA, LoLCATs, Liger, STILL, Jet-Nemotron, and hybrid-attention distillation based on KL-guided layer selection.
  3. We will provide a concise overview of the development of this research direction in the main text and add a more comprehensive Related Work section in the appendix. This will help readers who are unfamiliar with this area understand the problem addressed by GPA and how GPA differs from existing methods.
  4. We will explicitly clarify how the studies discussed in the Related Work section relate to GPA and to the theoretical components underlying GPA.

We provide an initial version of the Related Work section below and will further revise it after carefully examining these works and their most relevant references.

2. Revising Line 28 and Repositioning Less Relevant References

We also agree that the citation around Line 28 is not sufficiently precise. The original manuscript collectively cited References [16, 17, 18, 19, 20] as representative linear-attention studies. However, References [19, 20] primarily investigate vector-quantized attention or state compression and are more appropriately discussed under KV cache quantization or state quantization. Reference [17] alone also does not adequately represent the recent development of language-model linear attention based on gated updates and the Delta Rule.

We will therefore rewrite this paragraph using foundational linear attention, GLA, DeltaNet/Gated DeltaNet, GSA, and related recurrent models as the main development trajectory. We will also add the reviewer-suggested works, including FLatten Transformer, Agent Attention, PolaFormer, NaLaFormer, and Mamba-inspired linear attention. These methods improve linear attention through attention concentration, polarity modeling, norm preservation, Softmax–linear integration, and gated state updates.

Our preliminary revision is:

Unlike methods that directly compress an existing KV cache, linear attention and linear recurrent models \citep{katharopoulos2020transformers,yang2024gla,yang2024gateddelta,zhang2024gsa,wang2025mva} aggregate historical context into fixed-size states through separable feature mappings or recurrent state updates based on gating, forgetting, and the Delta Rule. They thereby achieve linear computational complexity with respect to sequence length and constant-size decoding states. Recent studies have further improved the expressiveness of linear attention by enhancing attention concentration, modeling positive and negative correlations, preserving query and key norms, integrating Softmax and linear attention, and introducing Mamba-style gated updates \citep{han2023flattentransformervisiontransformer,han2024agentattentionintegrationsoftmax,meng2025polaformerpolarityawarelinearattention,meng2025nalaformer,han2024demystify_NEURIPS2024_e618724a}.

We again thank the reviewer for these helpful suggestions. These revisions will improve the completeness of the background, the accuracy of the citations, and the positioning of GPA relative to existing approaches.

Reviewer XRoiOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
4/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper reframes softmax to linear attention conversion as a KV Cache approximation problem and provides 5 principled step with error analysis and theoretical justification. These steps are: 1) redundancy elimination (deduplicating redundant key-value pairs) 2) decoupling positional embedding from tokens, 3) positional compression, 4) inter-layer similarity, and 5)multi-state decomposition. It uses this framework to propose a linearised attention model GPA. It uses the positional decoupling, multi-level state and enhanced reading mechanism. GPA is produced by inheriting softmax-llm weight (Mistral 7B, Qwen 2.5, and LLaMA-3) and finetuning with LoRA on 10B parameters.

Strengths and weaknesses

Strengths

S1. The paper's framing is a timely and real contribution. Reframing the softmax to linear attention as a KV cache compression is a useful way to organise the field of linear attention and state space models.

S2. The paper is very well written and organised. Most of the preliminaries and related works are properly discussed as the foundation of the methods proposed in the paper. Most of the arguments are sound and rigorous. Each of the components are properly tied to the known methods instead of presenting them in isolation.

S3. The paper provides strong long context retrieval results compared to other baselines. This is really interesting because retrieval is one of the major limitations of linear attention. Table 3 shows that passkey retrieval numbers are significant up to 32k. LongBench numbers are also good compared to baseline

Weakness

W1. The paper should have reported the retrieval accuracy on some more benchmarks like SWDE [1], SQuAD[2] and other standard benchmarks as well. Along with that the paper should also compare this with some more linear baseline like GDN, Mamba-2 and Mamba-3 (only if it is feasible, I understand that Mamba-3 was released just few weeks before the paper deadline.)

W2. The performance drop on MMLU is significant (up to around -20% compared to the base models). The paper should explain the reason or intuition behind it properly.

W3. Authors should consider releasing the code.

Minor/Typos

W4. Line 256: "We have GPAced the experiments ..." W5. Figure 2 caption: "RSA memory hierarchy ..." What is RSA? W6. Table 10 uses 2j/d but the equation in section 3 around line 167 uses 4j/d W7. Some of the equations in section 3 are not numbered

  1. Arora, Simran, et al. "Simple linear attention language models balance the recall-throughput tradeoff." arXiv preprint arXiv:2402.18668 (2024).
  2. Rajpurkar, Pranav, Robin Jia, and Percy Liang. "Know what you don’t know: Unanswerable questions for SQuAD." Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers). 2018.
Questions

Q1. T1 is labelled "lossless" in Table 10, but the deployed method uses a similarity threshold below 1.0, and Table 4 shows significant degradation at lower thresholds. What threshold is used in the final model?

Q2. How does retrieval accuracy compare with the other models on the retrieval benchmarks like SWDE and FDA?

Q3. Why does performance degrade so much on MMLU?

Limitations

yes

Final justification

Authors have addressed my concerns. I will keep my positive score.

Formatting concerns

N/A

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the constructive feedback and detailed suggestions. Please find our responses below.


Weakness W1

Comment: The paper should have reported the retrieval accuracy on some more benchmarks like SWDE [1], SQuAD[2] and other standard benchmarks as well. Along with that the paper should also compare this with some more linear baseline like GDN, Mamba-2 and Mamba-3 (only if it is feasible, I understand that Mamba-3 was released just few weeks before the paper deadline.)

Response: Due to time and resource constraints, we are indeed unable to reproduce Mamba-3 results at this moment. However, we have experimental results for Qwen and Mistral converted to GDN and Mamba-2. We evaluate their performance on SWDE [1], SQuAD [2], and FDA as you suggested.

Model SWDE SQuAD FDA
Qwen2.5-7B 92.8 69.09 81.2
GSA-Qwen-7B 45.76 41.92 19.26
GDN-Qwen-7B 41.22 45.76 27.39
GPA-Qwen-7B (Ours) 56.18 53.85 45.97

Weakness W2

Comment: The performance drop on MMLU is significant (up to around -20% compared to the base models). The paper should explain the reason or intuition behind it properly.

Response: Thank you very much for this question. We have investigated this issue thoroughly for a long time.

We found multiple reasons for the MMLU drop. First, the fine-tuning data plays a role. For instance, if we fine-tune Mistral and Qwen using the same data used for GPA conversion and with the same learning rate, they also exhibit a significant drop. A major cause is that these pretrained models overfit to MMLU during pretraining by training on a large amount of complex downstream task data, leading to artificially high MMLU performance. Once fine-tuned or trained on large-scale data, performance on such benchmarks drops rapidly. Subsequently fine-tuning on high-quality datasets (e.g., Tulu-3, Nemotron-Pretraining-SFT-v1, WebInstructSub) can further recover performance, but it is still not fully restored. In contrast, fine-tuning on small-scale high-quality data does not cause such issues.

Model Datasets Tokens MMLU acc ↑
Qwen2.5-7B* – 18.0T 74.2
Qwen2.5-7B-SFT – +1B 72.6
Qwen2.5-7B-CPT FineWeb 10B 63.5
Qwen2.5-7B-CPT FineWeb 20B 60.9
Qwen2.5-7B-CPT+SFT tulu-3 + NP-SFT-v1 +2B 64.6
Qwen2.5-7B-CPT Slimpajama 10B 52.9
Mistral-7B* – ? 62.4
Mistral-7B Slimpajama 10B 44.5

Another reason is the inherent error and gap between linear models and Softmax attention. Our model has a smaller approximation error to Softmax, so it can approach Softmax attention performance more quickly with less training data, and its upper bound is also higher than other methods, as shown below:

Model Datasets Tokens MMLU acc ↑
Qwen2.5-7B-CPT FineWeb 20B 61.5
GPA-Qwen-7B-CPT FineWeb 20B 56.7
GSA-Qwen-7B-CPT FineWeb 20B 49.2
GDN-Qwen-7B-CPT FineWeb 20B 45.4
Mistral-7B* – ? 62.4
Mistral-7B Slimpajama 10B 44.5
GPA-Mistral-7B-CPT Slimpajama 10B 42.6
GSA-Mistral-7B-CPT Slimpajama 100B 37.8

Weakness W3

Comment: Authors should consider releasing the code.

Response: If the paper is accepted, we will release all code before the camera-ready deadline, including our subsequent progress and deeper-level research built on top of GPA.


Minor/Typos

W4. Line 256: "We have GPAced the experiments ..."

Thank you for pointing this out. We have corrected "GPAced" to "GPA." We sincerely appreciate your careful reading.

W5. Figure 2 caption: "RSA memory hierarchy ..." What is RSA?

We sincerely apologize for this labeling mistake. We have changed "RSA" to "GPA." RSA represents our latest ongoing work built upon GPA, which has not yet been published.

W6. Table 10 uses 2j/d but the equation in section 3 around line 167 uses 4j/d.

Thank you very much for the correction. We have corrected it to 4j/d in the table.

W7. Some of the equations in section 3 are not numbered.

We have reformatted multiple equations using \begin{equation} to add equation numbers.

Additionally, we have cited the suggested papers:

  1. Arora, Simran, et al. "Simple linear attention language models balance the recall-throughput tradeoff." arXiv preprint arXiv:2402.18668 (2024).
  2. Rajpurkar, Pranav, Robin Jia, and Percy Liang. "Know what you don’t know: Unanswerable questions for SQuAD." Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers). 2018.

Question Q1

Comment: T1 is labelled "lossless" in Table 10, but the deployed method uses a similarity threshold below 1.0, and Table 4 shows significant degradation at lower thresholds. What threshold is used in the final model?

Response: In the final model we use dynamic thresholds, i.e., we employ Softmax normalization together with the KV parameters themselves to learn the thresholds. The output activations are mostly distributed around 0.9.

Question Q2

Comment: How does retrieval accuracy compare with the other models on the retrieval benchmarks like SWDE and FDA?

Response: Please refer to our response to W1.

Question Q3

Comment: Why does performance degrade so much on MMLU?

Response: Please refer to our response to W2.


We sincerely appreciate all of your detailed comments and suggestions. Should any concerns remain, please do not hesitate to let us know.

Reviewer XRoi · CommentOpenReview ↗

Thanks for the detailed rebuttal. It cleared up most of my questions. I will keep my positive score. Please consider releasing the code. It will be really valuable for the community.

Authors · CommentOpenReview ↗

Thank you very much for your positive feedback and for keeping a positive score. We are delighted that our rebuttal addressed your concerns. We truly appreciate the time and expertise you dedicated to reviewing our work—your insightful questions helped us significantly improve the clarity and rigor of the paper. We will incorporate all the discussed revisions into the final manuscript. Thank you again for your constructive guidance.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…