Logarithmic Depth for Exact In-Context Gradient Descent with Linear Attention
Yingze Li, Dong Wang, Xianglong Liu, Zou Qingyun, Chunnan Wang, Zhiyu Liang, Hongzhi Wang
NeurIPS 2026
TL;DR. Attention-only linear Transformers can compute the exact result of \(k\) gradient-descent steps in \(\Theta(\log k)\) layers, using algebraic composition rather than one update per layer.
Abstract. How much Transformer depth is needed to compute the result of k gradient-descent updates? Constructions assigning one update to each layer give a linear upper bound. We establish a tight Θ(log k) characterization for exact endpoint computation by attention-only, unnormalized linear self-attention with a fixed coordinate workspace. Each layer raises polynomial degree by at most a factor of three, giving a depth lower bound independent of width, heads and context length. A matching construction stores matrix columns in tokens and uses attention sums to implement doubling and increment operations on matrix powers and geometric sums. The construction covers arbitrary positive-definite quadratic objectives and extends to prediction from regression demonstrations at an unseen query. We also prove a barrier to uniform approximation before convergence and a lower bound for prediction risk in a scalar model with a supplied spectrum. Controlled experiments study polynomial approximation and spectral conditioning, while broader regression experiments examine endpoint accuracy across architectures and task families.
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 paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Summary
This paper studies linear attention-only transformer’s ability to implement k-step GD on any given diagonal-quadratic instances. Exploiting the fact that each linear attention layer has a degree-3 polynomial of the input, the authors show lower and upper bounds on the number of attention layers to implement -step GD, which are both of order . The paper also presents experiments beyond the theoretical setup, trying to establish connections to more practical ICL scenarios.
Strengths
- The paper is well-written and clearly organized, with intuitive proof sketches and effective figures.
- The degree-growth perspective is original and gives a clean explanation of depth as algebraic capacity, beyond simply counting GD steps.
- The main lower bounds are strong and architecture-independent. Especially, the non-diagonal lower bound removes restrictive assumptions and seems novel.
- The theory is supported by useful extensions (mainly in the appendices), and convincing synthetic experiments.
Weakness
- A few reviewers questioned the ICL framing, since the main theory does not directly cover demonstration-based prediction. I concur with Reviewer YVik’s opinion that this paper rather shows Transformers can implement a certain “polynomial” that has degree exponential in and corresponds to some GD iterate. Reviewer hVQn also points out that low ICL prediction loss may not require implementing GD.
- Reviewers raised a concern that the matching upper bound is established only for diagonal or simultaneously diagonalizable settings, while the lower bound is more general. This makes one doubt the validity of the “suffices” claim in the title.
- All reviewers went extra miles to examine the proofs, and there are possible issues in the proof of the exact upper-bound construction, including cross terms, token isolation, and unspecified projection matrices.
- The scope and assumptions of each result are not always clear, especially for linear attention versus softmax Transformers and the regime conditions of the approximation lower bound.
- The experimental evidence has some interpretation issues, including results below the theoretical floor and weak justification of class count as a proxy for GD steps.
- A detailed comparison to Sanford et al., 2024 would be helpful.
Some minor questions from AC:
- Is there any concrete example of an ICL setup (e.g., in-context regression under some strong assumptions) that boils down to solving the objective in Eq (1) with GD?
- Line 273 lists 11 different values of and 20 values of . How do they make up 620 trained models?
Decision-Relevant Issues for the Author Response
Authors are encouraged to address all substantive concerns and questions raised by the reviewers and the AC. To help focus the response, I would especially like to see clarifications on the main concerns summarized above. These are not meant to be an exhaustive list of issues to address, but a clear response to these points would be especially helpful for the post-rebuttal discussion.
Final justification
Final Verdict after the Discussion Period
The authors provided a thorough and thoughtful response to the concerns raised by the reviewers and the AC, and the reviewers were generally satisfied with the clarifications and additional results. The rebuttal addressed the main technical and framing issues that initially raised concerns about the paper. Some limitations remain, particularly regarding the generality and scope of the theoretical results, but considering the paper’s main contributions, I do not view them as major obstacles for acceptance. Overall, I believe the substantive concerns raised during review have been adequately addressed, and I recommend acceptance.
Read meta-review
Meta-review
Summary
This paper studies linear attention-only transformer’s ability to implement k-step GD on any given diagonal-quadratic instances. Exploiting the fact that each linear attention layer has a degree-3 polynomial of the input, the authors show lower and upper bounds on the number of attention layers to implement -step GD, which are both of order . The paper also presents experiments beyond the theoretical setup, trying to establish connections to more practical ICL scenarios.
Strengths
- The paper is well-written and clearly organized, with intuitive proof sketches and effective figures.
- The degree-growth perspective is original and gives a clean explanation of depth as algebraic capacity, beyond simply counting GD steps.
- The main lower bounds are strong and architecture-independent. Especially, the non-diagonal lower bound removes restrictive assumptions and seems novel.
- The theory is supported by useful extensions (mainly in the appendices), and convincing synthetic experiments.
Weakness
- A few reviewers questioned the ICL framing, since the main theory does not directly cover demonstration-based prediction. I concur with Reviewer YVik’s opinion that this paper rather shows Transformers can implement a certain “polynomial” that has degree exponential in and corresponds to some GD iterate. Reviewer hVQn also points out that low ICL prediction loss may not require implementing GD.
- Reviewers raised a concern that the matching upper bound is established only for diagonal or simultaneously diagonalizable settings, while the lower bound is more general. This makes one doubt the validity of the “suffices” claim in the title.
- All reviewers went extra miles to examine the proofs, and there are possible issues in the proof of the exact upper-bound construction, including cross terms, token isolation, and unspecified projection matrices.
- The scope and assumptions of each result are not always clear, especially for linear attention versus softmax Transformers and the regime conditions of the approximation lower bound.
- The experimental evidence has some interpretation issues, including results below the theoretical floor and weak justification of class count as a proxy for GD steps.
- A detailed comparison to Sanford et al., 2024 would be helpful.
Some minor questions from AC:
- Is there any concrete example of an ICL setup (e.g., in-context regression under some strong assumptions) that boils down to solving the objective in Eq (1) with GD?
- Line 273 lists 11 different values of and 20 values of . How do they make up 620 trained models?
Decision-Relevant Issues for the Author Response
Authors are encouraged to address all substantive concerns and questions raised by the reviewers and the AC. To help focus the response, I would especially like to see clarifications on the main concerns summarized above. These are not meant to be an exhaustive list of issues to address, but a clear response to these points would be especially helpful for the post-rebuttal discussion.
Final justification
Final Verdict after the Discussion Period
The authors provided a thorough and thoughtful response to the concerns raised by the reviewers and the AC, and the reviewers were generally satisfied with the clarifications and additional results. The rebuttal addressed the main technical and framing issues that initially raised concerns about the paper. Some limitations remain, particularly regarding the generality and scope of the theoretical results, but considering the paper’s main contributions, I do not view them as major obstacles for acceptance. Overall, I believe the substantive concerns raised during review have been adequately addressed, and I recommend acceptance.
1 comment
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper revisits the standard "ICL-as-optimization" account of in-context learning, in which an L-layer Transformer is interpreted as running L steps of gradient descent (GD) on the least-squares objective defined by the prompt — one optimizer step per layer. The authors ask whether this linear depth accounting is intrinsic, and show that it is not.
For attention-only linear self-attention Transformers on diagonal quadratic tasks, they prove a degree-growth mechanism: because each attention score is bilinear (key × query) and is then multiplied by the value, one layer at most triples the polynomial degree (in the per-coordinate difficulty σ) that the network can represent, so L layers reach degree 3^L rather than L (Lemma 2). Since the exact k-step GD iterate corresponds to the degree-k convergence polynomial p_k(σ) = 1 − (1−ησ)^k, exact computation requires 3^L ≥ k, i.e. L ≥ ⌈log_3 k⌉ (Thm 3). An approximation lower bound via a Chebyshev-coefficient argument shows the barrier survives approximate computation (L ≥ ½ log_3 k − O(1) in a pre-convergence regime, Thm 4/10). A matching constructive upper bound assembles the final iterate by repeated squaring along an addition chain in L ≤ 2⌈log_2 k⌉ + 1 layers with 2 heads, d_model = O(log k), and bounded weights (Thm 5). Together these give a tight Θ(log k) depth complexity (Cor 6).
Extensions cover a softmax upper bound (Thm 17), a depth × loop-count lower bound for looped/weight-tied Transformers (Cor 16), preconditioned GD (Thm 23), an MLP degree corollary (Cor 15), and a non-diagonal / simultaneously-diagonalizable treatment (Thms 13, 25). Experiments on the synthetic diagonal-quadratic testbed show the predicted logarithmic depth transition (620 trained models), a kernel ablation tying the law to per-layer bilinearity, and an oracle-floor comparison; further experiments report the same qualitative signal on broader regression families and on early-exit probes of pretrained Qwen2.5.
Strengths and weaknesses
Strengths
-
Original reframing of a foundational result. The "one-layer-per-GD-step" reading (von Oswald et al. 2023 and follow-ups) is so entrenched that the natural assumption is that depth is a step counter; the paper shows instead that depth is an algebraic-capacity multiplier. Connecting the bilinear structure of attention to polynomial-degree growth, and then to addition-chain / repeated-squaring computation, is a clean and to my knowledge novel angle, with the degree-counting technique sensibly imported from arithmetic circuit complexity.
-
The central proofs are correct and carefully written. I checked them: the Degree Growth Lemma recurrence (d_c^(ℓ+1) ≤ 3·d_c^(ℓ), d_q^(ℓ+1) ≤ 2·d_c^(ℓ) + d_q^(ℓ)) is derived cleanly, head count / width / context length correctly drop out, and the induction to 3^L is right (and matches the "~60,000 at L=10" claim, since 3^10 = 59049). The exact lower bound (Thm 3) is a standard, correct infinite-set ⇒ identical-polynomial argument and is genuinely architecture-independent.
-
The bounds are tight and the lower bounds are non-trivial. The approximation lower bound (Thm 4/10) — affine reduction to a monomial, closed-form Chebyshev expansion of (1+x)^k, the single-coefficient bound E_D(g) ≥ ½|c_{D+1}(g)|, and the Stirling/Wallis estimate — is all correct, with honestly bounded slack. The constructive upper bound (Thm 5) is explicit, with a sound doubling semigroup a_a ⊕ a_b = (P_a P_b, S_a + P_a S_b), bounded weights, and O(log k) width.
-
Good breadth of extensions: softmax upper bound, looped/weight-tied lower bound, preconditioned GD, an MLP degree corollary, and a non-diagonal treatment.
-
The synthetic experiments are convincing: a sharp phase boundary (620 trained models), a kernel ablation consistent with the degree story, and trained NMSE tracking the oracle floor below the critical depth.
-
The writing is well organized; the demand-side (degree-k target) vs supply-side (degree-3^L capacity) framing is effective and the figures communicate the mechanism.
Weaknesses
-
The upper-bound construction is the one place I would ask for more rigor. The per-eigenvalue token routing ("each eigenvalue has a dedicated token", cross-eigenvalue interactions made to vanish "by orthogonal ID embeddings") is handled informally. In linear attention the scores are unbounded bilinear forms with no softmax to enforce selection, so the masking deserves an explicit construction and a check that the stated weight ∞-norm ≤ max(1,η) and d_model = O(log k) survive once routing is counted.
-
Scope vs framing. The tight two-sided Θ(log k) result is for attention-only linear self-attention on diagonal quadratics. For softmax / standard Transformers there is only an upper bound (Thm 17); I did not find a softmax lower bound, so "Transformer depth … Θ(log k)" is not established for standard architectures, and the title/abstract should be calibrated to this.
-
What "computing GD" demands. The lower bound is about representing/approximating the exact convergence polynomial p_k uniformly on the whole interval [λ_min, λ_max]. But low in-context prediction risk only requires accuracy under the actual eigenvalue distribution, and a low-loss network need not output a GD-shaped predictor at all. The "compute k-step GD ⇔ match p_k" equivalence is by definition; whether the lower bound persists for the practically relevant objective (ε-optimal prediction risk under the eigenvalue measure) is not addressed, and is the most important open question for the paper's significance.
-
The real-LLM experiment (Section 5.3, Qwen2.5) is overstated. The conceptual mapping "number of classes k" ↔ "number of GD steps k" is a large leap with no mechanistic justification — these are different quantities, and the theory's k is the optimizer-step count. The fit L_crit = 20.6 + 3.42·log_2 k (R² = 0.91) rests on only ~5 distinct k values over 6 tasks, with a large task-agnostic intercept (~21 of 36 layers) doing most of the work. Crucially, Appendix F shows Pythia-2.8B (R² = 0.20) and Pythia-6.9B (slope −0.52) contradict the prediction, and these are explained away post-hoc ("weaker baseline ICL", "tokenizer mismatch") and "reported for transparency rather than as evidence against the prediction." Selecting which models/tasks count as confirming evidence after seeing the fit is circular. As stated, this is at best a loose correlation, not a test of the mechanism, and the claim that the probe "recovers logarithmic growth … on real NLP ICL tasks" should be substantially softened or supported by a control.
-
Clarity nits. The regime restrictions of the approximation lower bound (κ ≥ 2, k ≤ κ, ε ≤ c0/(e√k)) live in the appendix and should appear next to Thm 4 in the main text. Which results are linear-attention-only vs which transfer to softmax/MLP is spread across many corollaries and is hard to assemble.
Questions
Please refer to the weakness section above.
Limitations
yes
Final justification
The rebuttal resolved my main concerns about the routing construction and clarified the scope of the theoretical claims.
The authors also appropriately softened the interpretation of the real-LLM experiments and added a relevant excess-risk result.
Some limitations remain regarding the generality of the new result, but they do not outweigh the paper’s technical strength and originality.
Overall, I recommend Accept.
Formatting concerns
paper looks good to me.
3 comments
Rebuttal
Response to Reviewer hVQn
W1. "... In linear attention the scores are unbounded bilinear forms with no softmax to enforce selection, so the masking deserves an explicit construction (W1.1) and a check that the stated weight -norm (W1.2) and (W1.3) survive once routing is counted."
Response. We give the explicit construction and show that, once routing is counted, the norm bound survives and the width is , independent of . For W1.1, the construction enforces no selection at all. For fixed , standard-basis column slots replace the ID-and-dominance device, so the unbounded all-token sum is itself the matrix product, and the cross-token terms are the terms of that product rather than contamination to be suppressed. It is exact for every SPD , implements every by exact doubling and increment, and explicitly reads out . For W1.2, the norm bound survives unchanged: both the entrywise and the induced -norm of every learned are at most . For W1.3, exact routing is what costs width: one slot per coordinate gives , a width that no longer grows with ; the depth lower bound is width-independent. Counting routing therefore leaves the depth , the head count , and the norm bound as claimed, at tokens, where and counts the 1-bits of .
Let denote the quadratic's linear term, , and . Using blocks , slot stores , and the query stores in its -block. Thus the all-token sum performs literal matrix multiplication:
For block injections , write and . Every primitive score factors through , so ; the sole signed score factors explicitly as
The two doubling heads
give, after the residual, and . The two increment heads
give and . Finally with writes . No selector, mask, limiting coefficient, or reorganization map is assumed. Each displayed has at most one nonzero entry per row, of magnitude at most , proving both the entrywise and induced -norm bounds.
W2. "... For softmax / standard Transformers there is only an upper bound (Thm 17) ... the title/abstract should be calibrated to this." W6. "Which results are linear-attention-only vs which transfer to softmax/MLP is spread across many corollaries and is hard to assemble."
Response. Yes. We recalibrate the title and the abstract, and we add one scope map. For W2, the title becomes Logarithmic Depth Characterizes Exact -Step Gradient Descent in Augmented-Prompt Attention-Only Linear Self-Attention, and the abstract says that the two-sided result concerns exact computation of the prescribed empirical-GD prediction, not -optimal prediction risk, in attention-only unnormalized linear self-attention. For W6, one scope map assembles the results in one place: it lists the exact upper and lower results for that model and the degree- MLP ceiling , and it marks softmax separately, since the submission's softmax discussion is one-sided, this response relies on no softmax theorem, and every two-sided entry on the map is a linear-attention entry.
The calibrated wording refers to exactness on both sides: for fixed and degree-one prompt encoding, exact equality on a prompt-variable set with nonempty interior forces , so attaches to this exact augmented-prompt linear-attention problem rather than to prediction risk.
W3. "... low in-context prediction risk only requires accuracy under the actual eigenvalue distribution, and a low-loss network need not output a GD-shaped predictor at all (W3.1). ... whether the lower bound persists for the practically relevant objective (-optimal prediction risk under the eigenvalue measure) (W3.2) ..."
Response. Yes: without assuming a GD-shaped predictor, we prove that -optimal prediction risk under the eigenvalue measure requires , hence , in the spectrum-given scalar model (W3.1--W3.2). This theorem addresses the risk objective in that model; the exact demonstration-based theorem above separately addresses raw-prompt computation.
Let on , let be independent of , set , and draw independently of , with every initial token coordinate of total degree at most one in . Write for the excess risk of . Then , and the Hermite expansion of in isolates a coefficient of degree at most , while orthogonality makes every other component nonnegative in risk. Hence satisfies , , and
Assume , , and with independent of . Exterior Chebyshev extremality (Erdős, Some Remarks on Polynomials, Bull. AMS 53, 1947, Thm. 7) and the Legendre bound (DLMF 18.3.1, 18.14.1) give
Hence for , risk at most forces .
W4. "The conceptual mapping 'number of classes ' <-> 'number of GD steps ' ... these are different quantities, and the theory's is the optimizer-step count. ... the claim that the probe 'recovers logarithmic growth ... on real NLP ICL tasks' should be substantially softened (W4.1) or supported by a control (W4.2)."
Response. We adopt W4.1 and revise the probe's role. The theory uses for the GD-update count; the revised probe uses for class count. We remove the theoretical-logarithmic-growth claim from the abstract and introduction. The main text will report all four model outcomes together: the Qwen2.5-3B fit uses six tasks but five distinct values and has intercept 20.59 of 36 layers; Pythia-2.8B has , while Pythia-6.9B has slope . We describe these as mixed exploratory task-level correlations, with direct links to the complete protocol and tables in the appendix, and remove the model-specific explanations of the Pythia outcomes.
For ,
has degree because counts GD updates, while enters neither this identity nor the lower bound . The revision therefore assigns the theorem and the probe distinct variables and evidentiary roles.
W5. "The regime restrictions of the approximation lower bound (, , ) live in the appendix and should appear next to Thm 4 in the main text."
Response. Yes. We will state next to Theorem 4 that its consequence is for attention-only unnormalized linear attention with degree-one tracked inputs and uniform error, under , , , and , where .
Under exactly these hypotheses, , the least degree attaining the uniform error, obeys , while the architectural ceiling requires , giving the stated depth consequence.
To Reviewer hVQn
Dear Reviewer hVQn,
Thank you again for your thorough review and for the care you took in checking the arguments in detail. We posted our response on July 28 and wanted to check in, as the discussion period closes on August 3 AoE.
We took up each of your points, including the question you identified as most important for the paper's significance, as well as your suggestions on scope and calibration. We would welcome your view on whether our responses are satisfactory, and we would be glad to clarify anything further while the discussion window remains open.
Thank you for your time and engagement.
Best regards, The Authors
Thank you for the detailed response. The rebuttal addresses my main concerns, particularly regarding the routing construction, the scope of the theoretical claims, and the interpretation of the real-LLM experiments. The new excess-risk result also strengthens the paper, although its scope remains somewhat limited. Overall, I am satisfied with the response and will raise my rating from 4 to 5.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Working within the "in-context learning as optimization" framework, where prior work shows an -layer Transformer can simulate gradient-descent steps, this paper argues that the one-step-per-layer account is a loose upper bound rather than a true barrier, and that depth buys exponentially more optimization than that account suggests. For the family of diagonal quadratics , the authors reduce reproducing the -step GD iterate to representing the scalar convergence polynomial of degree exactly , prove a Degree Growth Lemma showing an -layer attention-only linear self-attention network outputs a polynomial of degree , and obtain the width/head/context-independent lower bound (Thm 3); a matching doubling-semigroup/addition-chain construction (Thm 5) computes the exact iterate at depth with heads and , giving a characterization for diagonal covariance. The result extends to simultaneously-diagonalizable and general SPD covariance (the latter on the lower-bound side only, Thm 25), an approximation floor in a pre-convergence regime (Thm 10), and experiments on trained linear-attention models plus early-exit probes on Qwen2.5. The contribution is a genuine and largely correct sharpening of the depth/optimization correspondence for ICL, but the headline "suffices" is established in full generality only on the lower-bound side, while the matching upper bound is rigorous only in the (simultaneously-)diagonalizable case.
Strengths and weaknesses
Strengths
- The central algebraic mechanism is correct, clean, and genuinely width/head/context-independent. The Degree Growth Lemma (Lemma 2, App. A.1) is proven case-by-case via , with telescoping , making the exact lower bound (Thm 3) a robust impossibility result rather than an artifact of a parameterization.
- The non-diagonal lower bound (Lemma 24 / Thm 25) is the strongest, most novel contribution and is essentially correct: a total-degree counting argument shows carries a degree-exactly- component in the entries of (leading term ), and the "vanishes on an open set identically zero" step is valid, yielding . This removes the diagonalization crutch and is fully general in , heads, model dimension, and context.
- The diagonal characterization is honestly matching and resource-frugal — the upper bound is with heads, , and bounded weights, all explicitly tracked. The approximation floor (App. A.4) is a sound technical upgrade: the Chebyshev expansion (Eq. 22), the single-coefficient bound (Eq. 24), and the Stirling/Wallis estimate (Eq. 26) combine to give .
Weaknesses
- The title's "suffices" — the upper bound — is not established in the generality the lower bound enjoys. The clean upper bound is proven only for diagonal (Thm 5 / Cor 6) and simultaneously-diagonalizable (Thm 13, baking a fixed shared eigenbasis into the weights) covariance, while for general the matching upper bound (App. D.4 / D.5) is only a non-constructive sketch — "matrix outer-product accumulation" at with no explicit realizing matrix-times-matrix products and no readout control. So a fully general lower bound (Thm 25) is paired with only a restricted upper bound, and the "suffices" claim must be scoped to the (simultaneously-)diagonalizable case in the title and abstract.
- Even in the diagonal case, the exact construction (Thm 5 / App. D) asserts rather than constructs two load-bearing steps — a real rigor gap for a theorem claiming exact computation. Self-attention isolation relies on "a large positive coefficient on the product" so the self-pairing "dominates" (p. 23), but "dominated" is not "exact" in an unnormalized sum over all tokens, and the proof retreats to assuming cross-eigenvalue interactions vanish; the reorganization map , (Eqs. 31–33) is realized "with appropriately chosen projection matrices" never exhibited. The paper's own hint (a single-token context per eigenvalue, p. 23) should be promoted to the actual construction.
- The empirical centerpiece sits below the stated floor at several without acknowledgement, and the Qwen probe conflates two quantities. Tables 1/5 and Fig. 7(b) report trained (even the no-LayerNorm column gives at ), reconcilable only because the NMSE threshold is approximate so Thm 3's exact-reproduction premise is not met — a caveat never stated. Separately, the fit () rests on points with the intercept ( layers) dominating and equates "number of classes" with "number of GD steps," while Pythia corroborates weakly ( at 2.8B; slope , reversed, at 6.9B).
Questions
- Can you give an explicit attention-only (or softmax) construction realizing repeated matrix squaring — actual implementing the products and the readout — to back the claim for non-diagonalizable ? If not, please restrict the "suffices" claim in the title and abstract to the (simultaneously-)diagonalizable case.
- In un-normalized linear attention, how does a token attend only to its own eigenvalue token exactly rather than "dominantly"? Please replace the "large coefficient on " device with the explicit single-token-per-eigenvalue construction hinted at on p. 23, and give the explicit projection matrices for the reorganization map (Eqs. 31–33), since Thm 5 claims exact computation.
- Can you state explicitly that the trained values fall below primarily because the NMSE threshold is approximate (LayerNorm only secondary, since the no-LN column also dips below)? Please also add a controlled exact experiment (attention-only, no LayerNorm, float64 precision) in which the floor is respected.
- What is the theoretical justification for using number-of-classes as a proxy for (number of GD steps) in the Qwen2.5 probe, given that nothing in the theory predicts class count should enter the degree of ? Absent such a mechanism, why is the fit evidence for this theory rather than a generic "harder tasks need more layers" effect, and can you re-run it against a within-theory complexity axis?
- Can you state prominently that the approximation barrier (Thm 10) requires and , and clarify whether any super-constant depth lower bound survives in the fixed- regime or once (where has essentially converged and low degree suffices)?
Limitations
The authors justify the existence of the limitations discussion in the checklist, but I did not find where it is clearly.
Final justification
I carefully checked the response, most of my problems are solved.
Formatting concerns
N/A
3 comments
Rebuttal
Response to Reviewer nEpB
Q1. "Can you give an explicit attention-only (or softmax) construction realizing repeated matrix squaring ... actual ... implementing the ... products and the readout ... to back the ... claim for non-diagonalizable ... (Q1.1)? If not,...."
Response. Yes. We can give the explicit construction(Q1.1): it is exact for every SPD , and neither diagonalizes nor bakes a shared eigenbasis into the weights. Standard-basis column slots implement matrix multiplication exactly, two-head doubling and increment layers realize every , and an explicit readout produces . With for the 1-bit count, the encoded- resources are , , , . The scoping we adopt is architectural rather than spectral, for this attention-only, unnormalized, augmented-prompt model. Width is where the broader covariance class appears: a general SPD has free parameters, so any prompt supplying it occupies numbers, and with meets that floor up to a constant. Along the axis the theorem concerns, width does not grow with at all, and since Lemma 2 and Theorem 3 are width-, head-, and context-independent, no width substitutes for depth.
Let , . In blocks , slot stores and the query , so the all-token sum computes matrix products by
For block injections , write and . Each primitive score uses ; the only signed score factors as
The two doubling heads
give , . The two increment heads
give and ; the remaining bits of use layers, and with writes .
Q2. "In un-normalized linear attention, how does a token attend only to its own eigenvalue token exactly rather than 'dominantly' (Q2.1)? Please replace the 'large coefficient on ...' device with the explicit single-token-per-eigenvalue construction hinted at on p. 23 (Q2.2), and give the explicit projection matrices for the reorganization map (Eqs. 31-33), since Thm 5 claims exact computation (Q2.3)."
Response. Yes. For Q2.1, the replacement is exact and uses no “dominant” attention: the one-slot-per-coordinate construction computes the required matrix product through the full unnormalized attention sum. For Q2.2, this construction replaces the “large coefficient on ...” device. For Q2.3, we remove the reorganization map in Eqs. (31)–(33) and give the complete matrices for the replacement’s doubling, increment, and readout layers.
Specifically, storing coordinate in the -slot gives
Hence the full attention sum equals the desired matrix product exactly, while the signed score cancels the previous state through the residual. The explicit projections are displayed above for every doubling, increment, and readout layer.
Q3. "Can you state explicitly that the trained ... values fall below ... primarily because the ... NMSE threshold is approximate (LayerNorm only secondary, since the no-LN column also dips below) (Q3.1)? Please also add a controlled exact experiment (attention-only, no LayerNorm, float64 precision) in which the ... floor is respected (Q3.2)."
Response. Yes. We state it explicitly, and the attention-only, no-LayerNorm, float64 control has been run. For Q3.1, the exact theorem assumes pointwise equality whereas uses a positive held-out NMSE, so its premise is not in force at the crossings, LayerNorm is secondary, and we remove the exact-floor overlay. For Q3.2, over a frozen grid it establishes the population statement rather than mathematical equality: finite held-out NMSE and the population oracle differ, and without concentration a measured has no deterministic floor.
In this control the amplitude is , independent of , and the target is , at . For population output with , conditional projection onto , with
cannot increase MSE, gives , and cancels from population NMSE. For , define
So population NMSE at most implies , which is not a statement about a finite held-out ratio. The control ran all-token unnormalized linear attention, no softmax, MLP, or LayerNorm, on , , , ten fixed seeds, , continuously sampled query , and a fixed 65,536-sample held-out set per . Its weighted- oracle degrees agree at 4,096 and 8,192 quadrature points in all 48 cells, and at are , for : on this grid the threshold measures the degree, not the exact degree .
Q4. "What is the theoretical justification for using number-of-classes as a proxy for ... (number of GD steps) in the Qwen2.5 probe, given that nothing in the theory predicts class count should enter the degree of ... (Q4.1)? Absent such a mechanism, why is the fit evidence for this theory rather than a generic 'harder tasks need more layers' effect (Q4.2), and can you re-run it against a within-theory complexity axis (Q4.3)?"
Response. We separate the two quantities and adopt the requested theory-internal comparison. The GD-update count governs and the degree theorem, while denotes class count in the pretrained-model probe. We will remove the identification and every claim that the Qwen fit validates the degree-growth mechanism; the Qwen/Pythia associations will be reported as exploratory task-level observations (Q4.1--Q4.2).
For Q4.3, we add a replacement control rather than relabeling the Qwen plot: controlled demonstration regression varies the population condition number , a spectral axis inside the theory. The control uses , , , diagonal and fixed-rotation covariance families, , and ten fixed seeds in the same attention-only, no-LayerNorm, float64 architecture. At the fixed depth its four median held-out NMSE values, one per dimension and covariance family, move from to at , and reach approximately at . This supplies the requested comparison along a theory-internal spectral axis.
Q5. "Can you state prominently that the approximation barrier ... (Thm 10) requires ... and ... (Q5.1), and clarify whether any super-constant depth lower bound survives in the fixed-... regime or once ... (where ... has essentially converged and low degree suffices) (Q5.2)?"
Response. Yes. We state the conditions with the theorem. For Q5.1, the hypotheses are attention-only unnormalized linear attention, degree-one input coordinates, scalar , absolute uniform error, , , , and with , and for the least polynomial degree attaining that uniform error they yield and . For Q5.2, at fixed and fixed no superconstant-in- approximate lower bound survives once , so your reading holds from that horizon on, while between and that horizon a growing bound can still survive.
Post-convergence, this follows from
so the degree-zero polynomial already achieves error beyond that horizon. If instead shrinks with , a growing approximation lower bound can survive even when : for and , the best degree- uniform error is , so .
Limitations. "The authors justify the existence of the limitations discussion in the checklist, but I did not find where it is clearly."
Response. We will add a "Limitations and Scope" subsection immediately before the conclusion, findable in one place. It lists the four scope items above: the architecture, attention-only and unnormalized; the prompt format, the column-slot workspace; the regime conditions on the approximation consequence; and the complexity axis .
To Reviewer nEpB
Dear Reviewer nEpB,
Thank you again for the exceptionally detailed and technically engaged review — your comments were among the most useful we received. We posted our response on July 28 and wanted to follow up, since the discussion period closes on August 3 AoE.
We responded to each of your questions, including the requests for an explicit construction and for the additional controlled experiment you suggested. We would be grateful to know whether these address your concerns, and we are happy to expand on any point that remains unclear within the remaining time.
Thank you for your time and effort.
Best regards, The Authors
Thank you for your response, I believe my concerns are mainly addressed. I will therefore raise my score to 4.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies the Transformer’s ability to emulate gradient descent in the in-context learning setup. Prior works [Von Oswald et al., 2023; Ahn et al., 2023] showed that Transformers can implement gradient descent, but their constructions interpret one layer as one optimizer update. In this paper, the authors argue that an -layer linear self-attention Transformers can implement steps of GD using only layers. The key mechanism behind this is that linear self-attention has a structure where the attention score is obtained by multiplying key and query, and then the score is multiplied by the value. This amplifies the expressible polynomial degree by a factor of 3. The paper provides the upper bound via exact construction and the lower bound via Chebyshev-coefficient proof.
Strengths and weaknesses
Strength
- This paper is well-written, clearly organized, and the main idea is easy to follow.
- The proof sketches of each result in the main text are clear enough to understand the high-level approach without looking at the full proof in the appendix.
Weakness
- W1. I think the proof of Theorem 5 is mostly correct, but it may contain some mistakes. Please correct me if I am mistaken.
- In Appendix A.5, in “Part 2: The doubling gadget”, the proof chooses which gives . This is correct, but I am concerned that the cross terms are not considered. I don’t think these terms are necessarily zero, and they could affect the output of this attention head.
- If my reasoning is correct, this could be easily fixed by using orthogonal vectors when building the embeddings in Part 1. This would make the cross terms zero and fix the proof, but I think may need to be changed to like or . I do not think this is a serious problem though.
- W2. I am wondering whether it is appropriate to frame this paper as an in-context learning paper.
- In prior papers studying in-context learning of Transformers on linear regression tasks such as Ahn et al., 2023 [1], the input is typically designed by providing demonstrations of regression tasks, and the model is asked to generate the prediction for an unseen test point. However, current paper does not have this structure in the main theoretical contributions. In my view, it seems more accurate to say that this paper shows Transformers can implement a certain “polynomial” whose degree is exponential in .
- I do agree that this polynomial is exactly the gradient descent update rule. However, my concern is that, to call this in-context learning, the setup should have a structure that, given demonstration examples, the model somehow deduces the internal rule and applies it to unseen samples. This does not seem to be established by the main theory of the paper, except empirically in Section 5.3.
- This is the major concern I have for this paper. I would be happy if the theory could be extended to the demonstration-based setting. If it is possible, please describe the proof sketch.
- W3. I think the paper should make a clearer comparison with Sanford et al., 2024 [2].
- This paper essentially claims that -layers of Transformers can perform a task that requires number of sequential computations. However, I found that Sanford et al., 2024 [2] have a similar high-level claim: “we show that logarithmic depth is sufficient for transformers to solve basic computational tasks”. The paper should discuss how the mechanism in this paper, especially the theory that the value * key-query structure induces exponential growth, is fundamentally different from the mechanism in Sanford et al., 2024 [2].
- W4. Section 5.3 should be written more clearly.
- Some crucial experimental details that are necessary to understand the tasks are deferred to the Appendix without latex hyperlinks. It also does not clearly state the experimental results. The main text should contain at least the information that are necessary to understand, but the current Section 5.3 is not enough.
[1] Ahn, Kwangjun, et al. "Transformers learn to implement preconditioned gradient descent for in-context learning." NeurIPS 2023
[2] Sanford, Clayton, Daniel Hsu, and Matus Telgarsky. "Transformers, parallel computation, and logarithmic depth." ICML 2024
Questions
Q1. What does “pre-convergence regime” mean on pg 6 line 212? Does it mean ?
Q2. In section 5.1, how are the training and test values chosen?
Q3. I don’t understand how the -crit table by in the Appendix I supports the claim of the paper. My understanding is that is used as a proxy for the number of GD steps needed to solve the problem. Is this the correct interpretation? Could you elaborate more on this experiment?
- I also have an additional question about this broader ICL regression experiment. Is there any evidence that Transformers solve this task by running multi steps of GD? I guess Transformers may learn to implement another method such as Newton’s method. Without clear evidence that learned Transformers are implementing GD (or a similar method), this experiment may not provide much support for the claim of the paper.
Limitations
I think the paper did not adequately address its limitations. One limitation, as mentioned in W2, is that the theory setting does not involve demonstration-based examples.
Final justification
See my comment on the authors' response.
Formatting concerns
None that I noticed.
3 comments
Rebuttal
Response to Reviewer YVik
W1. "... I am concerned that the cross terms ... are not considered (W1.1). ... this could be easily fixed by using orthogonal vectors when building the embeddings in Part 1 (W1.2). This would make the cross terms zero and fix the proof, but I think ... may need to be changed (W1.3)."
Response. Your orthogonal-vector suggestion points to the right organizing principle, and we make it exact by replacing the doubling gadget and recounting the width. For W1.1, the cross terms are not zero. For W1.2, an orthogonal ID appended additively to the score leaves the payload cross terms in place, so the exact fix stores matrix columns instead: one standard-basis slot per coordinate makes the all-token sum itself the matrix product , with no ID, mask, or dominance argument. For W1.3, the width does need to be changed, as you anticipated: . The head count stays and the depth , for with the 1-bit count, so doubling and increment layers cover every .
In the submitted gadget, with and , the two heads return and where doubling needs and . For fixed , with the supplied covariance, the supplied linear term, and , blocks of slot store , and injects block . The signed score factors as
with entries in . A doubling layer scores and , both with value , and the residual gives , . An increment layer adds in one head while a -scored head moves from the -block to the -block, giving and . The remaining bits, read from most to least significant, cost one doubling each and one increment per 1-bit; a final layer reads out .
W2. "... to call this in-context learning, the setup should have a structure that, given demonstration examples, the model somehow deduces the internal rule and applies it to unseen samples (W2.1). ... I would be happy if the theory could be extended to the demonstration-based setting. If it is possible, please describe the proof sketch (W2.2)."
Response. Yes, it is possible, and the proof sketch follows. For W2.1, the theorem has the structure you name: for fixed and the prompt carries demonstrations, fixed data-independent coordinate-workspace tokens, and a final unseen query, and the network deduces the rule from the demonstrations alone, forming their empirical objective, computing its -step GD endpoint, and applying that endpoint to the query, whose value never enters the moments. Resources are , , ; with prompt variables embedded linearly, exact computation here also requires .
The tokens are ordered , with in a separate block and a constant in a block . Let have rows , , , and , and write for a score map and for a value copy. One setup layer of three heads,
puts in the and blocks of every slot , in its block, and in the query's block; the query's separate block keeps it out of those moments. The chain forms . Every chain layer applies to every receiver the all-token recurrence of Appendix A.1, the operative update here, which replaces the query-only display in submitted Eq. (3) since workspace states must evolve; each layer sums over all keys, and block zeros, not a mask, make the query inert. A vector readout writes to the query's block, and with forms the query self-pair . For the lower bound, fix and require exact equality on a set with nonempty interior: the output has degree at most , the target exactly , and under , the coefficient of is . The theorem's scope is this fixed workspace.
W3. "... The paper should discuss how the mechanism in this paper, especially the theory that the value * key-query structure induces exponential growth, is fundamentally different from the mechanism in Sanford et al., 2024 [2]."
Response. We agree that the headline logarithmic-depth message and
parallel-composition principle are shared; the difference is the computational
primitive being parallelized. Sanford et al.'s causal-softmax construction
composes a discrete find pointer with itself, doubling the represented hop
count while accumulating the binary expansion of . Our unmasked
linear-attention construction composes continuous matrix-polynomial states:
coordinate slots make the value-weighted bilinear-score sum compute
, and binary doubling/increment produces the
exact -step GD map and its augmented-prompt extension in W2.
The lower bounds are not directly ordered. Sanford et al.'s Cor. 4.3 is conditional on the one-versus-two-cycles MPC conjecture (Conj. 2.4), with width-head-product and finite-precision restrictions. Ours requires no complexity conjecture within attention-only unnormalized linear self-attention: independently, its trilinear update imposes , yielding an exact-computation logarithmic lower bound independent of heads, width, and context length.
W4 / Q3. "Section 5.3 should be written more clearly. ... The main text should contain at least the information that are necessary to understand" (W4). "I don't understand how the -by- table ... supports the claim" (Q3a). "Is there any evidence that Transformers solve this task by running multi steps of GD? ... [They] may learn ... Newton's method" (Q3b).
Response. We will make Section 5.3 self-contained in the main text. For each experiment, we will state the task, demonstration/query prompt, essential train/test protocol, metric, definition of , and principal findings, with direct links to the complete protocols and tables (W4). We will distinguish , the smallest tested model depth whose median endpoint NMSE crosses its threshold, from , the earliest pretrained-model layer reaching 95% of final-layer accuracy.
For Q3a, is the condition number. Under the reference-GD choice , it determines spectral conditioning and the reference-GD convergence horizon. The table characterizes how endpoint performance varies along this theory-relevant spectral axis; we will remove the update-count interpretation. For Q3b, endpoint loss characterizes the final predictor and does not identify its optimization trajectory. We will state that directly; the exact construction in W2 provides the requested architecture-level result for the prescribed -step GD map.
Q1. "What does 'pre-convergence regime' mean on pg 6 line 212? Does it mean ...?"
Response. Yes: pre-convergence means here. The uniform-approximation theorem also assumes , , and with .
The name follows from the slowest-direction residual: for , , so the target has not flattened over the spectral interval.
Q2. "In section 5.1, how are the training and test ... values chosen?"
Response. In Section 5.1 the three context values are the Chebyshev nodes constructed explicitly on , the amplitude is , and the query is drawn at random from the same interval: the context grid is fixed by construction, and the query is the sampled variable.
The held-out draw uses an RNG independent of training, shared across the depths and seeds compared within each cell.
Limitations. "One limitation, as mentioned in W2, is that the theory setting does not involve demonstration-based examples."
Response. We cover that case with the exact demonstration-to-query theorem of W2, inside the paper's full/unmasked all-token linear-attention model, and that augmented prompt with its fixed workspace is the theorem's scope.
To Reviewer YVik
Dear Reviewer YVik,
Thank you again for your careful reading and for the constructive suggestions in your review. We posted our response on July 28 and wanted to check in, as the discussion period closes on August 3 AoE.
In particular, we followed up on the two points you raised as most important to you: the concern about the construction in W1, and your question in W2 about whether the theory can be extended to the demonstration-based setting. We would very much value your view on whether these responses are convincing, and we are glad to provide any further clarification or detail while the discussion window is open.
Thank you for your time and engagement.
Best regards, The Authors
Thank you for the detailed rebuttal. My concerns have been largely resolved. I appreciate the extension of the framework to the demonstration-based setting. I encourage the authors to incorporate these into their next version of the paper (especially the demonstration-based setup and the comparison with Sanford et al).
Overall, I raise my score from 3 to 4.
Comments on the paper
3 comments
Dear Reviewers,
The authors have finished uploading their responses to reviewers, and the discussion phase is now underway. If you haven't already, please carefully review the authors' responses to understand their perspectives. Please engage in thoughtful and constructive discussions with the authors, and update your review or rating if necessary.
The discussion period lasts until August 3rd AoE, which means you have less than four days left to interact with the authors. Please start engaging well before the period ends, so that the authors will have sufficient time to respond to any follow-up questions/comments.
Your active participation and contribution to the ongoing discussion are highly encouraged. Thank you very much for your contribution to NeurIPS.
Best regards,
AC
Dear Reviewers,
Thank you again for your time and thoughtful feedback. As the discussion period is approaching its end, we would greatly appreciate it if you could review our responses and let us know if you have any remaining questions or concerns.
We would be happy to provide any further clarification. Thank you very much for your consideration.
Best regards, The Authors
Summary from the authors (near end of discussion period)
Dear Area Chair and Reviewers,
As the discussion period closes, we briefly summarize where things stand and what we have committed to for the next version.
1. Points of agreement and remaining issues. The paper's lower-bound backbone — the Degree Growth Lemma (Lemma 2), the exact bound (Thm 3), the approximation bound (Thm 4/10), and the general-SPD bound (Thm 25) — emerged as a clear strength. Reviewer hVQn checked the central proofs and found them "correct and carefully written," while Reviewer nEpB described the central mechanism as "correct, clean, and genuinely width/head/context-independent" and called Thm 25 "the strongest, most novel contribution." The remaining decision-relevant concerns center on the upper-bound construction, the ICL and risk framing, claim scope, and experimental interpretation; our responses address each directly.
2. Concern → response and committed revision.
| Meta-review item | Response and committed revision |
|---|---|
| M1 — ICL framing (M1.1); low loss need not imply GD (M1.2) | (M1.1) We supplied an exact demonstration-to-query theorem with matching bounds in the stated augmented-prompt linear-attention model, including the setup requested in AC.Q1 (response to YVik W2). Reviewer YVik later stated that their concerns were largely resolved and welcomed this extension. (M1.2) In the stated spectrum-given scalar model and under the response's distributional assumptions, we supplied a theorem showing that -optimal prediction risk forces without assuming a GD-shaped predictor (response to hVQn W3). |
| M2 — upper bound only for diagonal settings | We supplied an explicit column-slot construction for arbitrary SPD in the stated attention-only unnormalized architecture, matching the general lower bound at (response to nEpB Q1). |
| M3 — cross terms / token isolation / unspecified projections | The replacement construction makes the all-token attention sum exactly the required matrix product; every is displayed; and no mask, dominance device, or unspecified reorganization map is used (responses to YVik W1, nEpB Q2, hVQn W1). |
| M4 — scope and assumptions | We proposed a recalibrated title and abstract, and will add one scope table and state the regime conditions next to Thm 4 (responses to hVQn W2/W5/W6, nEpB Q5). |
| M5 — sub-floor results; class-count proxy; run accounting | We distinguished exact equality, uniform approximation, population risk, and finite held-out NMSE; will remove the floor overlays and the class-count identification; reported a float64 attention-only control and a within-theory -control; and supplied the exact 620-run accounting requested in AC.Q2 (responses to nEpB Q3/Q4, hVQn W4, and AC.Q2). |
| M6 — comparison to Sanford et al. (2024) | We supplied, and will add, a three-point comparison: unconditional vs. conjecture-dependent lower bounds; architectural algebraic invariant vs. MPC reduction; and matrix-power doubling vs. pointer doubling (response to AC.M6, YVik W3). |
3. Same central mechanism, sharpened scope. The central depth mechanism is unchanged: the lower bounds use the Degree Growth Lemma, while the exact upper bounds use doubling and increment. The demonstration-to-query and arbitrary-SPD constructions instantiate these ideas in broader, explicitly scoped settings. The submitted ID-and-dominance routing device is replaced by exact column-slot storage, following Reviewer YVik's orthogonality suggestion.
4. Commitments for the next version. (i) The demonstration-to-query theorem and main-text proof sketch; (ii) the column-slot construction and general-SPD upper bound; (iii) the scoped risk-objective lower bound; (iv) recalibrated title/abstract, one scope table, and Thm 4 regime conditions; (v) a self-contained Section 5.3 with the new controls, corrected run accounting, no floor overlays, and all Qwen/Pythia outcomes reported together as exploratory; (vi) the Sanford et al. comparison; and (vii) a "Limitations and Scope" subsection before the conclusion.
5. Status. Reviewer YVik has reviewed our response, confirmed that their concerns were largely resolved, and raised their score (3 → 4). We remain available for any further questions from the reviewers or the AC until the discussion window closes.
Best regards, The Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Area Chair m3H6
Response to Area Chair m3H6
AC.M1. "... the main theory does not directly cover demonstration-based prediction (AC.M1.1). ... low ICL prediction loss may not require implementing GD (AC.M1.2)." AC.Q1. "Is there any concrete example of an ICL setup ... that boils down to solving the objective in Eq (1) with GD?"
Response. Following the reviewers' suggestion, we go beyond an illustrative example: the revision establishes matching logarithmic-depth upper and lower bounds for exact demonstration-based ICL prediction in the stated augmented-prompt linear-attention model. The upper theorem is also the concrete setup requested in AC.Q1: from N labeled demonstrations, d fixed data-independent coordinate slots, and an unseen query, the Transformer forms the empirical least-squares objective, computes its prescribed k-step GD iterate, and predicts the query. This resolves AC.M1.1 at the theorem level: the input-output task is demonstration-to-query prediction, while polynomial degree is the proof tool used to characterize its required depth. For AC.M1.2, the two-sided result identifies exact computation of this prescribed GD-based ICL map at the theorem level.
Specifically, Σ=X⊤X/N, g=X⊤y/N, and
One setup layer forms (Σ,g) from the demonstrations, the separate query block excludes xq from these moments, a binary chain computes wk, and two readout layers output y. The resources are L=ℓbin(k)+3≤2⌈log2k⌉+3, H=3, dmodel=8d+3, and n=N+d+1. Conversely, with fixed η=0, degree-one prompt encoding, and exact agreement on a prompt set with nonempty interior, the exact target has degree 2k+1, so 3L≥2k+1. The explicit setup, chain, and readout projections are given in our response to Reviewer YVik, W2, and this proof sketch will be added to the main text.
AC.M2. "... the matching ... upper bound is established only for diagonal or simultaneously diagonalizable settings, while the lower bound is more general. This makes one doubt the validity of the “suffices” claim in the title."
Response. We close this upper--lower scope gap: the revised exact upper bound now applies to arbitrary SPD Σ, without diagonalization or a shared eigenbasis, and matches the general-SPD lower bound at Θ(logk). Thus, the “suffices” claim no longer requires a diagonal spectral restriction; we scope it instead to the proved attention-only unnormalized linear-attention architecture.
For the upper bound, d coordinate slots store the columns of Am=(I−ηΣ)m and Sm=∑t<m(I−ηΣ)t, and
This makes the all-token sum exact matrix multiplication. Two-head doubling and increment layers compute (A2m,S2m) and (Am+1,Sm+1), followed by the readout wk=ηSkg. Conversely, restricting g(Σ)=Σv yields a nonzero degree-k component and hence 3L≥k. The explicit heads, projections, and readout are given in our response to Reviewer nEpB, Q1, and a checkable proof sketch will be added to the main text.
AC.M3. "... the proof of the exact upper-bound construction, including cross terms (AC.M3.1), token isolation (AC.M3.2), and unspecified projection matrices (AC.M3.3)."
Response. We will add a directly checkable proof sketch to the main text and replace the device that produced all three.
For AC.M3.1, the printed heads return Pi∑jPj and Si∑jPj where doubling requires Pi2 and PiSi, and a large orthogonal-ID score leaves those payload terms in unnormalized attention, so we replace the gadget rather than patch it. For AC.M3.2, the replacement needs no isolation: it stores columns of Am=(I−ηΣ)m and Sm=∑t<m(I−ηΣ)t in one-hot coordinate slots, so the sum over all tokens is exactly the matrix product. For AC.M3.3, the projections are now exhibited, as explicit two-head doubling and increment layers with the readout wk=ηSkg, and we delete the unspecified reorganization map. The matrix-given resources are L=ℓbin(k)+1≤2⌈log2k⌉+1, H=2, dmodel=6d=Θ(d), and n=d+1; every learned WQ,WK,WV has entrywise and induced ℓ∞ norm at most max(1,η). The revised width does not grow with k, and Lemma 2 and Theorem 3 remain width-, head-, and context-independent.
At exponent m, slot j stores (ej,Amej,A1ej,Smej); the doubling layer takes Am to Am+Am(Am−I)=A2m and Sm to Sm+AmSm=S2m, and the increment layer gives Am+1=A1Am and Sm+1=Sm+Am. The displayed WQ,WK,WV for every such layer are in our response to Reviewer nEpB, who asks for the projections realizing Eqs. (31) to (33); no mask, limiting coefficient, or free residual projection appears in them.
AC.M4. "The scope and assumptions of each result are not always clear, especially for linear attention versus softmax Transformers (AC.M4.1) and the regime conditions of the approximation lower bound (AC.M4.2)."
Response. We will make the scope and assumptions explicit in the title, abstract, theorem statements, and a single scope table. For AC.M4.1, all exact two-sided claims are restricted to full/unmasked, attention-only unnormalized linear self-attention; softmax is separated from this characterization and supports no two-sided headline claim. For AC.M4.2, for degree-one inputs on a diagonal family with one eigenvalue varying over Λ=[λmin,λmax] and all others fixed, we distinguish the general implication 3L≥dε(k,κ) from the quantitative consequence L≥21log3k−O(1), which additionally requires η=1/λmax, κ≥2, k≤κ, and 0<ε≤c0/(ek), where c0=(2e3/2π)−1.
The architecture scope is detailed in our response to Reviewer hVQn, W2/W6, and the approximation regimes are detailed in our response to Reviewer nEpB, Q5.
AC.M5. "... results below the theoretical floor (AC.M5.1) and weak justification of class count as a proxy for GD steps (AC.M5.2)."
Response. We will make three evidentiary roles explicit. First, the exact demonstration-to-query theorem establishes that the stated augmented-prompt architecture computes the prescribed k-step GD prediction map. Second, the broader-regression experiments report depth-dependent endpoint performance; the revised main text will state their task, prompt, metric, and principal results. Third, the pretrained-model probes report all Qwen/Pythia outcomes together as mixed exploratory task-level correlations, using C for class count. This separates theoretical capability, endpoint performance, and the pretrained-model observation.
For AC.M5.1, exact pointwise equality, uniform approximation, population L2 NMSE, and finite held-out NMSE are distinct quantities. Without a concentration step, the theoretical results do not impose a deterministic floor on finite held-out NMSE; we therefore remove the floor overlays and state the applicable metric beside each result. For AC.M5.2, k denotes GD updates and C denotes class count. Since C enters neither pk nor the degree theorem, we remove the proxy interpretation. A replacement κ-control provides a comparison along a theory-internal spectral axis.
AC.M6. "A detailed comparison to Sanford et al., 2024 would be helpful."
Response. We will add a comparison centered on three theoretical distinctions. First, Sanford et al.'s lower bound (Cor. 4.3) is conditional on their one-versus-two-cycles MPC conjecture (Conj. 2.4) and requires width and finite-precision restrictions; ours is unconditional within attention-only unnormalized linear self-attention and is independent of heads, width, and context length. Second, their lower bound comes from a complexity-theoretic reduction, whereas ours follows from an architectural algebraic invariant: multiplying a value by a key-query score allows each layer to increase polynomial degree by only a constant factor. Third, their upper construction composes discrete pointers to double the reachable hop distance, whereas ours uses exact matrix multiplication to double the matrix powers and geometric sums defining the GD iterate.
AC.Q2. "Line 273 lists 11 different values of ... and 20 values of ... . How do they make up 620 trained models?"
Response. We replace line 273 with the exact enumeration. The 620 runs decompose as follows. The main grid used 11 k-values, 11 depths L∈1,2,3,4,5,6,8,10,12,16,20, and five seeds, giving 11×11×5=605 seed-runs; a targeted supplement added L=7 for k∈64,96,128, giving 3×1×5=15. Hence 605+15=620.