potentialpaper

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

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. 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 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
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:49 UTC.

Program Chairs · DecisionOpenReview ↗
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 LL to implement kk-step GD, which are both of order Θ(log⁡k)\Theta (\log k). The paper also presents experiments beyond the theoretical setup, trying to establish connections to more practical ICL scenarios.

Strengths

  1. The paper is well-written and clearly organized, with intuitive proof sketches and effective figures.
  2. The degree-growth perspective is original and gives a clean explanation of depth as algebraic capacity, beyond simply counting GD steps.
  3. The main lower bounds are strong and architecture-independent. Especially, the non-diagonal lower bound removes restrictive assumptions and seems novel.
  4. The theory is supported by useful extensions (mainly in the appendices), and convincing synthetic experiments.

Weakness

  1. 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 LL and corresponds to some GD iterate. Reviewer hVQn also points out that low ICL prediction loss may not require implementing GD.
  2. Reviewers raised a concern that the matching O(log⁡k)O(\log k) 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.
  3. 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.
  4. 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.
  5. 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.
  6. A detailed comparison to Sanford et al., 2024 would be helpful.

Some minor questions from AC:

  1. 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?
  2. Line 273 lists 11 different values of kk and 20 values of LL. 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.

Area Chair m3H6 · Meta-reviewOpenReview ↗
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 LL to implement kk-step GD, which are both of order Θ(log⁡k)\Theta (\log k). The paper also presents experiments beyond the theoretical setup, trying to establish connections to more practical ICL scenarios.

Strengths

  1. The paper is well-written and clearly organized, with intuitive proof sketches and effective figures.
  2. The degree-growth perspective is original and gives a clean explanation of depth as algebraic capacity, beyond simply counting GD steps.
  3. The main lower bounds are strong and architecture-independent. Especially, the non-diagonal lower bound removes restrictive assumptions and seems novel.
  4. The theory is supported by useful extensions (mainly in the appendices), and convincing synthetic experiments.

Weakness

  1. 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 LL and corresponds to some GD iterate. Reviewer hVQn also points out that low ICL prediction loss may not require implementing GD.
  2. Reviewers raised a concern that the matching O(log⁡k)O(\log k) 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.
  3. 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.
  4. 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.
  5. 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.
  6. A detailed comparison to Sanford et al., 2024 would be helpful.

Some minor questions from AC:

  1. 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?
  2. Line 273 lists 11 different values of kk and 20 values of LL. 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
Authors · CommentOpenReview ↗

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 NN labeled demonstrations, dd fixed data-independent coordinate slots, and an unseen query, the Transformer forms the empirical least-squares objective, computes its prescribed kk-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\widehat\Sigma=X^\top X/N, g^=X⊤y/N\widehat g=X^\top y/N, and

wk=η∑t=0k−1(I−ηΣ^)tg^,y^=xq⊤wk.w_k=\eta\sum_{t=0}^{k-1}(I-\eta\widehat\Sigma)^t\widehat g,\qquad \widehat y=x_q^\top w_k.

One setup layer forms (Σ^,g^)(\widehat\Sigma,\widehat g) from the demonstrations, the separate query block excludes xqx_q from these moments, a binary chain computes wkw_k, and two readout layers output y^\widehat y. The resources are L=ℓbin(k)+3≤2⌈log⁡2k⌉+3L=\ell_{\rm bin}(k)+3\le2\lceil\log_2k\rceil+3, H=3H=3, dmodel=8d+3d_{\rm model}=8d+3, and n=N+d+1n=N+d+1. Conversely, with fixed η≠0\eta\ne0, degree-one prompt encoding, and exact agreement on a prompt set with nonempty interior, the exact target has degree 2k+12k+1, so 3L≥2k+13^L\ge2k+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 Σ\Sigma, without diagonalization or a shared eigenbasis, and matches the general-SPD lower bound at Θ(log⁡k)\Theta(\log k). 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, dd coordinate slots store the columns of Am=(I−ηΣ)mA_m=(I-\eta\Sigma)^m and Sm=∑t<m(I−ηΣ)tS_m=\sum_{t<m}(I-\eta\Sigma)^t, and

XY=∑j=1d(Xej)(ej⊤Y).XY=\sum_{j=1}^d(Xe_j)(e_j^\top Y).

This makes the all-token sum exact matrix multiplication. Two-head doubling and increment layers compute (A2m,S2m)(A_{2m},S_{2m}) and (Am+1,Sm+1)(A_{m+1},S_{m+1}), followed by the readout wk=ηSkgw_k=\eta S_kg. Conversely, restricting g(Σ)=Σvg(\Sigma)=\Sigma v yields a nonzero degree-kk component and hence 3L≥k3^L\ge 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∑jPjP_i\sum_jP_j and Si∑jPjS_i\sum_jP_j where doubling requires Pi2P_i^2 and PiSiP_iS_i, 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−ηΣ)mA_m=(I-\eta\Sigma)^m and Sm=∑t<m(I−ηΣ)tS_m=\sum_{t<m}(I-\eta\Sigma)^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=ηSkgw_k=\eta S_kg, and we delete the unspecified reorganization map. The matrix-given resources are L=ℓbin(k)+1≤2⌈log⁡2k⌉+1L=\ell_{\rm bin}(k)+1\le2\lceil\log_2k\rceil+1, H=2H=2, dmodel=6d=Θ(d)d_{\rm model}=6d=\Theta(d), and n=d+1n=d+1; every learned WQ,WK,WVW_Q,W_K,W_V has entrywise and induced ℓ∞\ell_\infty norm at most max⁡(1,η)\max(1,\eta). The revised width does not grow with kk, and Lemma 2 and Theorem 3 remain width-, head-, and context-independent.

At exponent mm, slot jj stores (ej,Amej,A1ej,Smej)(e_j,A_me_j,A_1e_j,S_me_j); the doubling layer takes AmA_m to Am+Am(Am−I)=A2mA_m+A_m(A_m-I)=A_{2m} and SmS_m to Sm+AmSm=S2mS_m+A_mS_m=S_{2m}, and the increment layer gives Am+1=A1AmA_{m+1}=A_1A_m and Sm+1=Sm+AmS_{m+1}=S_m+A_m. The displayed WQ,WK,WVW_Q,W_K,W_V 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⁡]\Lambda=[\lambda_{\min},\lambda_{\max}] and all others fixed, we distinguish the general implication 3L≥dε(k,κ)3^L\ge d_\varepsilon(k,\kappa) from the quantitative consequence L≥12log⁡3k−O(1)L\ge\frac12\log_3k-O(1), which additionally requires η=1/λmax⁡\eta=1/\lambda_{\max}, κ≥2\kappa\ge2, k≤κk\le\kappa, and 0<ε≤c0/(ek)0<\varepsilon\le c_0/(e\sqrt{k}), where c0=(2e3/2π)−1c_0=(2e^{3/2}\sqrt\pi)^{-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 kk-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 CC for class count. This separates theoretical capability, endpoint performance, and the pretrained-model observation.

For AC.M5.1, exact pointwise equality, uniform approximation, population L2L^2 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, kk denotes GD updates and CC denotes class count. Since CC enters neither pkp_k nor the degree theorem, we remove the proxy interpretation. A replacement κ\kappa-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 kk-values, 11 depths L∈1,2,3,4,5,6,8,10,12,16,20L\in\\{1,2,3,4,5,6,8,10,12,16,20\\}, and five seeds, giving 11×11×5=60511\times11\times5=605 seed-runs; a targeted supplement added L=7L=7 for k∈64,96,128k\in\\{64,96,128\\}, giving 3×1×5=153\times1\times5=15. Hence 605+15=620605+15=620.

Reviewer hVQnOpenReview ↗
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

  1. 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.

  2. 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.

  3. 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.

  4. Good breadth of extensions: softmax upper bound, looped/weight-tied lower bound, preconditioned GD, an MLP degree corollary, and a non-diagonal treatment.

  5. 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.

  6. 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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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
Authors · RebuttalOpenReview ↗
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 ∞\infty-norm ≤max⁡(1,η)\le\max(1,\eta) (W1.2) and dmodel=O(log⁡k)d_{\rm model}=O(\log k) (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 6d6d, independent of kk. For W1.1, the construction enforces no selection at all. For fixed η>0\eta>0, 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 Σ\Sigma, implements every kk by exact doubling and increment, and explicitly reads out wkw_k. For W1.2, the norm bound survives unchanged: both the entrywise and the induced ∞\infty-norm of every learned WQ,WK,WVW_Q,W_K,W_V are at most max⁡(1,η)\max(1,\eta). For W1.3, exact routing is what costs width: one slot per coordinate gives dmodel=6d=Θ(d)d_{\rm model}=6d=\Theta(d), a width that no longer grows with kk; the depth lower bound is width-independent. Counting routing therefore leaves the depth L=ℓbin(k)+1≤2⌈log⁡2k⌉+1L=\ell_{\rm bin}(k)+1\le2\lceil\log_2k\rceil+1, the head count H=2H=2, and the norm bound as claimed, at n=d+1n=d+1 tokens, where ℓbin(k)=⌊log⁡2k⌋+ν(k)−1\ell_{\rm bin}(k)=\lfloor\log_2k\rfloor+\nu(k)-1 and ν(k)\nu(k) counts the 1-bits of kk.

Let gg denote the quadratic's linear term, Am=(I−ηΣ)mA_m=(I-\eta\Sigma)^m, and Sm=∑t<m(I−ηΣ)tS_m=\sum_{t<m}(I-\eta\Sigma)^t. Using blocks (u,a,a1,s,g,out)(u,a,a^1,s,g,\mathrm{out}), slot jj stores (ej,Amej,A1ej,Smej,0,0)(e_j,A_me_j,A_1e_j,S_me_j,0,0), and the query stores gg in its gg-block. Thus the all-token sum performs literal matrix multiplication:

XY=∑j=1d(Xej)(ej⊤Y).XY=\sum_{j=1}^d(Xe_j)(e_j^\top Y).

For block injections ErE_r, write M[r,c]=ErEc⊤M[r,c]=E_rE_c^\top and V[r,c]=ErEc⊤V[r,c]=E_rE_c^\top. Every primitive score factors through WK=ErEr⊤, WQ=ErEc⊤W_K=E_rE_r^\top,\ W_Q=E_rE_c^\top, so WK⊤WQ=M[r,c]W_K^\top W_Q=M[r,c]; the sole signed score factors explicitly as

WK=(Eu+Ea)Eu⊤,WQ=EaEa⊤−EuEu⊤,WK⊤WQ=M[u,a]−M[u,u].W_K=(E_u+E_a)E_u^\top,\qquad W_Q=E_aE_a^\top-E_uE_u^\top,\qquad W_K^\top W_Q=M[u,a]-M[u,u].

The two doubling heads

(M[u,a]−M[u,u],V[a,a]),(M[u,s],V[s,a])(M[u,a]-M[u,u],V[a,a]),\qquad(M[u,s],V[s,a])

give, after the residual, Am+Am(Am−I)=Am2A_m+A_m(A_m-I)=A_m^2 and Sm+AmSm=S2mS_m+A_mS_m=S_{2m}. The two increment heads

(M[u,a],V[a,a1]),(M[u,u],−V[a,a]+V[s,a])(M[u,a],V[a,a^1]),\qquad(M[u,u],-V[a,a]+V[s,a])

give Am+1=A1AmA_{m+1}=A_1A_m and Sm+1=Sm+AmS_{m+1}=S_m+A_m. Finally M[u,g]M[u,g] with ηV[out,s]\eta V[\mathrm{out},s] writes ηSkg=wk\eta S_kg=w_k. No selector, mask, limiting coefficient, or reorganization map is assumed. Each displayed WQ,WK,WVW_Q,W_K,W_V has at most one nonzero entry per row, of magnitude at most max⁡(1,η)\max(1,\eta), proving both the entrywise and induced ∞\infty-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 kk-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 ε\varepsilon-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-pp MLP ceiling (3p)L(3p)^L, 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 η≠0\eta\ne0 and degree-one prompt encoding, exact equality on a prompt-variable set with nonempty interior forces 3L≥2k+13^L\ge2k+1, so Θ(log⁡k)\Theta(\log k) 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 (ε\varepsilon-optimal prediction risk under the eigenvalue measure) (W3.2) ..."

Response. Yes: without assuming a GD-shaped predictor, we prove that ε\varepsilon-optimal prediction risk under the eigenvalue measure requires 3L≥18κlog⁡(1/ε)3^L\ge\frac18\sqrt\kappa\log(1/\varepsilon), hence L=Ω(log⁡κ+log⁡log⁡(1/ε))L=\Omega(\log\kappa+\log\log(1/\varepsilon)), 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 σ∼μ\sigma\sim\mu on [1/κ,1][1/\kappa,1], let γ∼N(0,1)\gamma\sim\mathcal N(0,1) be independent of σ\sigma, set w⋆=γ/σw^\star=\gamma/\sigma, and draw xq∣σ∼N(0,σ)x_q\mid\sigma\sim\mathcal N(0,\sigma) independently of γ\gamma, with every initial token coordinate of total degree at most one in (σ,γ)(\sigma,\gamma). Write R=E[(xqw^−xqw⋆)2]\mathcal R=\mathbb E[(x_q\widehat w-x_qw^\star)^2] for the excess risk of w^=ΦL(σ,γ)\widehat w=\Phi_L(\sigma,\gamma). Then deg⁡ΦL≤D=3L\deg\Phi_L\le D=3^L, and the Hermite expansion of ΦL\Phi_L in γ\gamma isolates a coefficient a1(σ)a_1(\sigma) of degree at most D−1D-1, while orthogonality makes every other component nonnegative in risk. Hence q(σ)=1−σa1(σ)q(\sigma)=1-\sigma a_1(\sigma) satisfies deg⁡q≤D\deg q\le D, q(0)=1q(0)=1, and

R(ΦL)≥Eσ∼μ![q(σ)2/σ].\mathcal R(\Phi_L)\ge \mathbb E_{\sigma\sim\mu}\\!\left[q(\sigma)^2/\sigma\right].

Assume λmax⁡=1\lambda_{\max}=1, κ≥4\kappa\ge4, and dμ/dσ≥cμ>0d\mu/d\sigma\ge c_\mu>0 with cμc_\mu independent of κ\kappa. Exterior Chebyshev extremality (Erdős, Some Remarks on Polynomials, Bull. AMS 53, 1947, Thm. 7) and the Legendre bound ∣q~∣∞≤D+12∣q~∣2\\|\tilde q\\|_\infty\le\frac{D+1}{\sqrt2}\\|\tilde q\\|_2 (DLMF 18.3.1, 18.14.1) give

∣q∣L2(μ)≥cμ(1−1/κ)(D+1),TD((κ+1)/(κ−1)).\\|q\\|_{L^2(\mu)}\ge \frac{\sqrt{c_\mu(1-1/\kappa)}}{(D+1)\\,T_D\big((\kappa+1)/(\kappa-1)\big)}.

Hence for E=log⁡(1/ε)≥C(cμ)(log⁡κ+log⁡E)E=\log(1/\varepsilon)\ge C(c_\mu)(\log\kappa+\log E), risk at most ε\varepsilon forces 3L≥18κlog⁡(1/ε)3^L\ge\frac18\sqrt\kappa\log(1/\varepsilon).


W4. "The conceptual mapping 'number of classes kk' <-> 'number of GD steps kk' ... these are different quantities, and the theory's kk 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 kk for the GD-update count; the revised probe uses CC 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 CC values and has intercept 20.59 of 36 layers; Pythia-2.8B has R2=0.20R^2=0.20, while Pythia-6.9B has slope −0.52-0.52. 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 η≠0\eta\ne0,

pk(σ)=1−(1−ησ)kp_k(\sigma)=1-(1-\eta\sigma)^k

has degree kk because kk counts GD updates, while CC enters neither this identity nor the lower bound 3L≥k3^L\ge k. The revision therefore assigns the theorem and the probe distinct variables and evidentiary roles.


W5. "The regime restrictions of the approximation lower bound (κ≥2\kappa\ge2, k≤κk\le\kappa, ε≤c0/(ek)\varepsilon\le c_0/(e\sqrt k)) 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 L≥12log⁡3k−O(1)L\ge\frac12\log_3k-O(1) consequence is for attention-only unnormalized linear attention with degree-one tracked inputs and uniform error, under η=1/λmax⁡\eta=1/\lambda_{\max}, κ≥2\kappa\ge2, k≤κk\le\kappa, and 0<ε≤c0/(ek)0<\varepsilon\le c_0/(e\sqrt{k}), where c0=(2e3/2π)−1c_0=(2e^{3/2}\sqrt\pi)^{-1}.

Under exactly these hypotheses, dε(k,κ)d_\varepsilon(k,\kappa), the least degree attaining the uniform error, obeys dε(k,κ)≥k/2d_\varepsilon(k,\kappa)\ge\sqrt{k}/2, while the architectural ceiling requires 3L≥dε(k,κ)3^L\ge d_\varepsilon(k,\kappa), giving the stated depth consequence.

Authors · CommentOpenReview ↗

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

Reviewer hVQn · CommentOpenReview ↗

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.

Reviewer nEpBOpenReview ↗
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 LL-layer Transformer can simulate LL 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 f(w)=12w⊤Σw−g⊤wf(w) = \tfrac{1}{2} w^{\top}\Sigma w - g^{\top} w, the authors reduce reproducing the kk-step GD iterate to representing the scalar convergence polynomial pk(σ)=1−(1−ησ)kp_k(\sigma) = 1 - (1 - \eta\sigma)^k of degree exactly kk, prove a Degree Growth Lemma showing an LL-layer attention-only linear self-attention network outputs a polynomial of degree ≤3L\le 3^{L}, and obtain the width/head/context-independent lower bound L≥⌈log⁡3k⌉L \ge \lceil \log_3 k \rceil (Thm 3); a matching doubling-semigroup/addition-chain construction (Thm 5) computes the exact iterate at depth ≤2⌈log⁡2k⌉+1\le 2\lceil \log_2 k \rceil + 1 with 22 heads and dmodel=O(log⁡k)d_{\mathrm{model}} = O(\log k), giving a Θ(log⁡k)\Theta(\log k) 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 dε≥k/2d_{\varepsilon} \ge \sqrt{k}/2 in a pre-convergence regime (Thm 10), and experiments on 620620 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 dc(ℓ+1)≤3dc(ℓ)d_c^{(\ell+1)} \le 3 d_c^{(\ell)}, dq(ℓ+1)≤2dc(ℓ)+dq(ℓ)d_q^{(\ell+1)} \le 2 d_c^{(\ell)} + d_q^{(\ell)} with telescoping ∑ℓ<L2⋅3ℓ=3L−1\sum_{\ell<L} 2\cdot 3^{\ell} = 3^{L}-1, making the exact lower bound L≥⌈log⁡3k⌉L \ge \lceil \log_3 k \rceil (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 wk(Σ)w_k(\Sigma) carries a degree-exactly-kk component in the entries of Σ\Sigma (leading term −(−η)kΣkw∗≠0-(-\eta)^{k}\Sigma^{k} w^{*} \neq 0), and the "vanishes on an open set ⇒\Rightarrow identically zero" step is valid, yielding 3L≥k3^{L} \ge k. This removes the diagonalization crutch and is fully general in dd, heads, model dimension, and context.
  • The diagonal Θ(log⁡k)\Theta(\log k) characterization is honestly matching and resource-frugal — the upper bound is ≤2⌈log⁡2k⌉+1\le 2\lceil \log_2 k \rceil + 1 with 22 heads, dmodel=O(log⁡k)d_{\mathrm{model}} = O(\log k), 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 dε≥k/2d_{\varepsilon} \ge \sqrt{k}/2.

Weaknesses

  • The title's "suffices" — the upper bound — is not established in the generality the lower bound enjoys. The clean Θ(log⁡k)\Theta(\log k) upper bound is proven only for diagonal (Thm 5 / Cor 6) and simultaneously-diagonalizable (Thm 13, baking a fixed shared eigenbasis UU into the weights) covariance, while for general Σ\Sigma the matching upper bound (App. D.4 / D.5) is only a non-constructive sketch — "matrix outer-product accumulation" at dmodel=O(d2)d_{\mathrm{model}} = O(d^2) with no explicit WQ,WK,WVW_Q, W_K, W_V 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 idj⋅idj\mathrm{id}j \cdot \mathrm{id}j 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 P2m←Pm2P{2m} \leftarrow P_m^2, S2m←Sm(1+Pm)S{2m} \leftarrow S_m(1+P_m) (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 kk without acknowledgement, and the Qwen probe conflates two quantities. Tables 1/5 and Fig. 7(b) report trained Lcrit<⌈log⁡3k⌉L_{\mathrm{crit}} < \lceil \log_3 k \rceil (even the no-LayerNorm column gives 2<32 < 3 at k=16k=16), reconcilable only because the 10−510^{-5} NMSE threshold is approximate so Thm 3's exact-reproduction premise is not met — a caveat never stated. Separately, the fit Lcrit=20.6+3.42log⁡2kL_{\mathrm{crit}} = 20.6 + 3.42\log_2 k (R2=0.91R^2 = 0.91) rests on 66 points with the intercept (∼21\sim 21 layers) dominating and equates "number of classes" with "number of GD steps," while Pythia corroborates weakly (R2=0.20R^2 = 0.20 at 2.8B; slope −0.52-0.52, reversed, at 6.9B).
Questions
  • Can you give an explicit attention-only (or softmax) construction realizing repeated matrix squaring (I−ηΣ)2m=((I−ηΣ)m)2(I - \eta\Sigma)^{2m} = ((I - \eta\Sigma)^{m})^2 — actual WQ,WK,WVW_Q, W_K, W_V implementing the d×dd\times d products and the readout — to back the Θ(log⁡k)\Theta(\log k) claim for non-diagonalizable Σ\Sigma? 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 idj⋅idj\mathrm{id}_j \cdot \mathrm{id}_j" 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 LcritL_{\mathrm{crit}} values fall below ⌈log⁡3k⌉\lceil \log_3 k \rceil primarily because the 10−510^{-5} 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 ⌈log⁡3k⌉\lceil \log_3 k \rceil floor is respected.
  • What is the theoretical justification for using number-of-classes as a proxy for kk (number of GD steps) in the Qwen2.5 probe, given that nothing in the theory predicts class count should enter the degree of pkp_k? 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 dε≥k/2d_{\varepsilon} \ge \sqrt{k}/2 (Thm 10) requires ε≤c0/(ek)\varepsilon \le c_0/(e\sqrt{k}) and k≤κk \le \kappa, and clarify whether any super-constant depth lower bound survives in the fixed-ε\varepsilon regime or once k≳κk \gtrsim \kappa (where pkp_k 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
Authors · RebuttalOpenReview ↗
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 Σ\Sigma, and neither diagonalizes Σ\Sigma nor bakes a shared eigenbasis into the weights. Standard-basis column slots implement matrix multiplication exactly, two-head doubling and increment layers realize every kk, and an explicit readout produces wkw_k. With ℓbin(k)=⌊log⁡2k⌋+ν(k)−1\ell_{\rm bin}(k)=\lfloor\log_2k\rfloor+\nu(k)-1 for ν(k)\nu(k) the 1-bit count, the encoded-(Σ,g)(\Sigma,g) resources are L=ℓbin(k)+1≤2⌈log⁡2k⌉+1L=\ell_{\rm bin}(k)+1\le2\lceil\log_2k\rceil+1, H=2H=2, dmodel=6dd_{\rm model}=6d, n=d+1n=d+1. 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 Σ\Sigma has d(d+1)/2d(d+1)/2 free parameters, so any prompt supplying it occupies Θ(d2)\Theta(d^2) numbers, and n=d+1n=d+1 with dmodel=6dd_{\rm model}=6d meets that floor up to a constant. Along the axis the theorem concerns, width does not grow with kk at all, and since Lemma 2 and Theorem 3 are width-, head-, and context-independent, no width substitutes for depth.

Let Am=(I−ηΣ)mA_m=(I-\eta\Sigma)^m, Sm=∑t<m(I−ηΣ)tS_m=\sum_{t<m}(I-\eta\Sigma)^t. In blocks (u,a,a1,s,g,out)(u,a,a^1,s,g,\mathrm{out}), slot jj stores (ej,Amej,A1ej,Smej,0,0)(e_j,A_me_j,A_1e_j,S_me_j,0,0) and the query (0,0,0,0,g,0)(0,0,0,0,g,0), so the all-token sum computes matrix products by

XY=∑j=1d(Xej)(ej⊤Y).XY=\sum_{j=1}^d(Xe_j)(e_j^\top Y).

For block injections ErE_r, write M[r,r′]=ErEr′⊤M[r,r']=E_rE_{r'}^\top and V[r,r′]=ErEr′⊤V[r,r']=E_rE_{r'}^\top. Each primitive score uses WK=ErEr⊤, WQ=ErEc⊤W_K=E_rE_r^\top,\ W_Q=E_rE_c^\top; the only signed score factors as

WK=(Eu+Ea)Eu⊤,WQ=EaEa⊤−EuEu⊤,WK⊤WQ=M[u,a]−M[u,u].W_K=(E_u+E_a)E_u^\top,\qquad W_Q=E_aE_a^\top-E_uE_u^\top,\qquad W_K^\top W_Q=M[u,a]-M[u,u].

The two doubling heads

(M[u,a]−M[u,u],V[a,a]),(M[u,s],V[s,a])(M[u,a]-M[u,u],V[a,a]),\qquad(M[u,s],V[s,a])

give A2m=Am2A_{2m}=A_m^2, S2m=(I+Am)SmS_{2m}=(I+A_m)S_m. The two increment heads

(M[u,a],V[a,a1]),(M[u,u],−V[a,a]+V[s,a])(M[u,a],V[a,a^1]),\qquad(M[u,u],-V[a,a]+V[s,a])

give Am+1=A1AmA_{m+1}=A_1A_m and Sm+1=Sm+AmS_{m+1}=S_m+A_m; the remaining bits of kk use ℓbin(k)\ell_{\rm bin}(k) layers, and M[u,g]M[u,g] with WV=ηV[out,s]W_V=\eta V[\mathrm{out},s] writes ηSkg=wk\eta S_kg=w_k.


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 WQ,WK,WVW_Q,W_K,W_V matrices for the replacement’s doubling, increment, and readout layers.

Specifically, storing coordinate jj in the eje_j-slot gives

∑j(Xej)(ej⊤Y)=XY.\sum_j (Xe_j)(e_j^\top Y)=XY.

Hence the full attention sum equals the desired matrix product exactly, while the signed score M[u,a]−M[u,u]M[u,a]-M[u,u] 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 LcritL_{\rm crit} 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 L2L^2 oracle differ, and without concentration a measured LcritL_{\rm crit} has no deterministic floor.

In this control the amplitude is a∼Unif[−1,1]a\sim{\rm Unif}[-1,1], independent of σ∼Unif[1/κ,1]\sigma\sim{\rm Unif}[1/\kappa,1], and the target is apk(σ)a p_k(\sigma), pk(σ)=1−(1−ησ)kp_k(\sigma)=1-(1-\eta\sigma)^k at η=0.5\eta=0.5. For population output F(a,σ)F(a,\sigma) with deg⁡F≤3L\deg F\le3^L, conditional projection onto aq(σ)a q(\sigma), with

q(σ)=Ea[aF(a,σ)]E[a2],q(\sigma)=\frac{\mathbb E_a[aF(a,\sigma)]}{\mathbb E[a^2]},

cannot increase MSE, gives deg⁡q≤3L\deg q\le3^L, and cancels E[a2]\mathbb E[a^2] from population NMSE. For ΠD=q:deg⁡q≤D\Pi_D=\\{q:\deg q\le D\\}, define

d_\varepsilon^{L^2}:=\min\\!\left\\{D:\min_{q\in\Pi_D} \frac{\mathbb E_\sigma[(p_k-q)^2]}{\mathbb E_\sigma[p_k^2]} \le\varepsilon\right\\}.

So population NMSE at most ε\varepsilon implies 3L≥dεL23^L\ge d_\varepsilon^{L^2}, 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 k∈4,8,16,32,64,128k\in\\{4,8,16,32,64,128\\}, κ∈100,1000\kappa\in\\{100,1000\\}, L=1,…,10L=1,\ldots,10, ten fixed seeds, ε∈10−3,10−5,10−8,10−12\varepsilon\in\\{10^{-3},10^{-5},10^{-8},10^{-12}\\}, continuously sampled query σ\sigma, and a fixed 65,536-sample held-out set per (k,κ)(k,\kappa). Its weighted-L2L^2 oracle degrees agree at 4,096 and 8,192 quadrature points in all 48 cells, and at ε=10−12\varepsilon=10^{-12} are 4,7,10,14,194,7,10,14,19, 26/2726/27 for k=4,8,16,32,64,128k=4,8,16,32,64,128: on this grid the 10−1210^{-12} threshold measures the L2L^2 degree, not the exact degree kk.


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 kk governs pkp_k and the degree theorem, while CC denotes class count in the pretrained-model probe. We will remove the C↔kC\leftrightarrow k 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 κ\kappa, a spectral axis inside the theory. The control uses κ∈10,30,100,300,1000,3000\kappa\in\\{10,30,100,300,1000,3000\\}, d∈4,16d\in\\{4,16\\}, N=2dN=2d, diagonal and fixed-rotation covariance families, L=1,…,12L=1,\ldots,12, and ten fixed seeds in the same attention-only, no-LayerNorm, float64 architecture. At the fixed depth L=6L=6 its four median held-out NMSE values, one per dimension and covariance family, move from 1.883×10−41.883\times10^{-4} to 3.031×10−43.031\times10^{-4} at κ=10\kappa=10, and reach approximately 11 at κ=3000\kappa=3000. 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 σ∈[λmin⁡,λmax⁡]\sigma\in[\lambda_{\min},\lambda_{\max}], absolute uniform error, η=1/λmax⁡\eta=1/\lambda_{\max}, κ≥2\kappa\ge2, k≤κk\le\kappa, and 0<ε≤c0/(ek)0<\varepsilon\le c_0/(e\sqrt{k}) with c0=(2e3/2π)−1c_0=(2e^{3/2}\sqrt\pi)^{-1}, and for dεd_\varepsilon the least polynomial degree attaining that uniform error they yield dε≥k/2d_\varepsilon\ge\sqrt{k}/2 and L≥12log⁡3k−O(1)L\ge\frac12\log_3k-O(1). For Q5.2, at fixed ε∈(0,1)\varepsilon\in(0,1) and fixed κ\kappa no superconstant-in-kk approximate lower bound survives once k≥κlog⁡(1/ε)k\ge\kappa\log(1/\varepsilon), so your reading holds from that horizon on, while between k=κk=\kappa and that horizon a growing bound can still survive.

Post-convergence, this follows from

∣pk−1∣∞≤(1−1/κ)k≤e−k/κ,\\|p_k-1\\|_\infty\le(1-1/\kappa)^k\le e^{-k/\kappa},

so the degree-zero polynomial 11 already achieves error ε\varepsilon beyond that horizon. If ε\varepsilon instead shrinks with kk, a growing approximation lower bound can survive even when k/κ→∞k/\kappa\to\infty: for κ=2\kappa=2 and ε=8−k\varepsilon=8^{-k}, the best degree-(k−1)(k-1) uniform error is 2⋅8−k>ε2\cdot8^{-k}>\varepsilon, so dε≥kd_\varepsilon\ge k.


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 kk.

Authors · CommentOpenReview ↗

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

Reviewer nEpB · CommentOpenReview ↗

Thank you for your response, I believe my concerns are mainly addressed. I will therefore raise my score to 4.

Reviewer YVikOpenReview ↗
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 LL-layer linear self-attention Transformers can implement kk steps of GD using only O(log⁡k)O(\log k) 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 M(1)=e2e2⊤M^{(1)}=e_2e_2^\top which gives αj,j(1)=Pm2\alpha_{j,j}^{(1)}=P_m^2. This is correct, but I am concerned that the cross terms αj,1(1),...,αj,d(1)\alpha_{j,1}^{(1)},...,\alpha_{j,d}^{(1)} 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 dmodel=O(log⁡k)d_{model}=O(\log k) may need to be changed to like O(dlog⁡k)O(d \log k) or O(log⁡k+d)O(\log k + d). 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 LL.
    • 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 LL-layers of Transformers can perform a task that requires exp⁡(L)\exp(L) 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 K≤κK \le \kappa?

Q2. In section 5.1, how are the training and test σ\sigma values chosen?

Q3. I don’t understand how the LL-crit table by κ\kappa in the Appendix I supports the claim of the paper. My understanding is that κ\kappa 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
Authors · RebuttalOpenReview ↗
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 ∑j(Xej)(ej⊤Y)=XY\sum_j(Xe_j)(e_j^\top Y)=XY, with no ID, mask, or dominance argument. For W1.3, the width does need to be changed, as you anticipated: dmodel=6d=Θ(d)d_{\rm model}=6d=\Theta(d). The head count stays H=2H=2 and the depth L=ℓbin(k)+1≤2⌈log⁡2k⌉+1L=\ell_{\mathrm{bin}}(k)+1\le2\lceil\log_2k\rceil+1, for ℓbin(k)=⌊log⁡2k⌋+ν(k)−1\ell_{\mathrm{bin}}(k)=\lfloor\log_2k\rfloor+\nu(k)-1 with ν(k)\nu(k) the 1-bit count, so doubling and increment layers cover every kk.

In the submitted gadget, with Pi=(1−ησi)mP_i=(1-\eta\sigma_i)^m and Si=∑t<m(1−ησi)tS_i=\sum_{t<m}(1-\eta\sigma_i)^t, the two heads return Pi∑jPjP_i\sum_jP_j and Si∑jPjS_i\sum_jP_j where doubling needs Pi2P_i^2 and PiSiP_iS_i. For fixed η>0\eta>0, with Σ\Sigma the supplied covariance, gg the supplied linear term, Am=(I−ηΣ)mA_m=(I-\eta\Sigma)^m and Sm=∑t<m(I−ηΣ)tS_m=\sum_{t<m}(I-\eta\Sigma)^t, blocks u,a,a1,su,a,a^1,s of slot jj store ej,Amej,A1ej,Smeje_j,A_me_j,A_1e_j,S_me_j, and ErE_r injects block rr. The signed score factors as

WK=(Eu+Ea)Eu⊤,WQ=EaEa⊤−EuEu⊤,WK⊤WQ=Eu(Ea−Eu)⊤,W_K=(E_u+E_a)E_u^\top,\quad W_Q=E_aE_a^\top-E_uE_u^\top,\quad W_K^\top W_Q=E_u(E_a-E_u)^\top ,

with entries in 0,±1\\{0,\pm1\\}. A doubling layer scores (Am−I)ji(A_m-I)_{ji} and (Sm)ji(S_m)_{ji}, both with value AmejA_me_j, and the residual gives A2m=Am2A_{2m}=A_m^2, S2m=(I+Am)SmS_{2m}=(I+A_m)S_m. An increment layer adds A1AmA_1A_m in one head while a δji\delta_{ji}-scored head moves AmA_m from the AA-block to the SS-block, giving Am+1=A1AmA_{m+1}=A_1A_m and Sm+1=Sm+AmS_{m+1}=S_m+A_m. The remaining bits, read from most to least significant, cost one doubling each and one increment per 1-bit; a final layer reads out wk=ηSkgw_k=\eta S_kg.


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 N,d,kN,d,k and η>0\eta>0 the prompt carries NN demonstrations, dd 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 kk-step GD endpoint, and applying that endpoint to the query, whose value never enters the moments. Resources are L=ℓbin(k)+3≤2⌈log⁡2k⌉+3L=\ell_{\mathrm{bin}}(k)+3\le2\lceil\log_2k\rceil+3, H=3H=3, dmodel=8d+3d_{\mathrm{model}}=8d+3; with prompt variables embedded linearly, exact computation here also requires L≥⌈log⁡3(2k+1)⌉L\ge\lceil\log_3(2k+1)\rceil.

The tokens are ordered (x1,y1),…,(xN,yN),e1,…,ed,xq(x_1,y_1),\ldots,(x_N,y_N),e_1,\ldots,e_d,x_q, with xqx_q in a separate block and a constant 11 in a block cc. Let X∈RN×dX\in\mathbb R^{N\times d} have rows xi⊤x_i^\top, y=(y1,…,yN)⊤y=(y_1,\ldots,y_N)^\top, Σ^=X⊤X/N\widehat\Sigma=X^\top X/N, and g^=X⊤y/N\widehat g=X^\top y/N, and write M[r,r′]=ErEr′⊤M[r,r']=E_rE_{r'}^\top for a score map and V[r,r′]=ErEr′⊤V[r,r']=E_rE_{r'}^\top for a value copy. One setup layer of three heads,

(M[x,u],,−ηN(V[a,x]+V[a1,x])),(M[u,u],,V[a,u]+V[s,u]+V[a1,u]),(M[y,c],,1NV[g,x]),\big(M[x,u],\\,-\tfrac{\eta}{N}(V[a,x]+V[a^1,x])\big),\quad \big(M[u,u],\\,V[a,u]+V[s,u]+V[a^1,u]\big),\quad \big(M[y,c],\\,\tfrac1N V[g,x]\big),

puts A1ej=(I−ηΣ^)ejA_1e_j=(I-\eta\widehat\Sigma)e_j in the aa and a1a^1 blocks of every slot jj, S1ej=ejS_1e_j=e_j in its ss block, and g^\widehat g in the query's gg block; the query's separate xqx_q block keeps it out of those moments. The chain forms wk=η∑t<k(I−ηΣ^)tg^w_k=\eta\sum_{t<k}(I-\eta\widehat\Sigma)^t\widehat g. 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 N+d+1N+d+1 keys, and block zeros, not a mask, make the query inert. A vector readout writes wkw_k to the query's out\mathrm{out} block, and M[out,xq]M[\mathrm{out},x_q] with V[pred,c]V[\mathrm{pred},c] forms the query self-pair xq⊤wkx_q^\top w_k. For the lower bound, fix η≠0\eta\ne0 and require exact equality on a set with nonempty interior: the output has degree at most 3L3^L, the target exactly 2k+12k+1, and under xi=tie1, xq=se1x_i=t_ie_1,\ x_q=se_1, the coefficient of s,t12k−1y1s\\,t_1^{2k-1}y_1 is η(−η)k−1N−k≠0\eta(-\eta)^{k-1}N^{-k}\ne0. 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 kk. Our unmasked linear-attention construction composes continuous matrix-polynomial states: coordinate slots make the value-weighted bilinear-score sum compute XY=∑j(Xej)(ej⊤Y)XY=\sum_j(Xe_j)(e_j^\top Y), and binary doubling/increment produces the exact kk-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 deg⁡ℓ+1≤3deg⁡ℓ\deg_{\ell+1}\le3\deg_\ell, 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 LcritL_{\rm crit}-by-κ\kappa 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 LcritL_{\rm crit}, and principal findings, with direct links to the complete protocols and tables (W4). We will distinguish LcritregL_{\rm crit}^{\rm reg}, the smallest tested model depth whose median endpoint NMSE crosses its threshold, from LcritprobeL_{\rm crit}^{\rm probe}, the earliest pretrained-model layer reaching 95% of final-layer accuracy.

For Q3a, κ\kappa is the condition number. Under the reference-GD choice η=1/λmax⁡\eta=1/\lambda_{\max}, 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 kk-step GD map.


Q1. "What does 'pre-convergence regime' mean on pg 6 line 212? Does it mean ...?"

Response. Yes: pre-convergence means k≤κk\le\kappa here. The uniform-approximation theorem also assumes η=1/λmax⁡\eta=1/\lambda_{\max}, κ≥2\kappa\ge2, and ε≤c0/(ek)\varepsilon\le c_0/(e\sqrt{k}) with c0=(2e3/2π)−1c_0=(2e^{3/2}\sqrt\pi)^{-1}.

The name follows from the slowest-direction residual: for k≤κk\le\kappa, (1−1/κ)k≥(1−1/κ)κ≥1/4(1-1/\kappa)^k\ge(1-1/\kappa)^\kappa\ge1/4, 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 [1/κ,1][1/\kappa,1], the amplitude is a∼N(0,1)a\sim N(0,1), and the query σ\sigma 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 (k,κ)(k,\kappa) 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.

Authors · CommentOpenReview ↗

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

Reviewer YVik · CommentOpenReview ↗

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
Area Chair m3H6 · CommentOpenReview ↗

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

Authors · CommentOpenReview ↗

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

Authors · CommentOpenReview ↗

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 L≥⌈log⁡3k⌉L \geq \lceil \log_3 k \rceil (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 Θ(log⁡k)\Theta(\log k) 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 ε\varepsilon-optimal prediction risk forces L=Ω(log⁡k)L = \Omega(\log k) 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 Σ\Sigma in the stated attention-only unnormalized architecture, matching the general lower bound at Θ(log⁡k)\Theta(\log k) (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 WQ,WK,WVW_Q, W_K, W_V 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 k↔k \leftrightarrow class-count identification; reported a float64 attention-only control and a within-theory κ\kappa-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.

Missing a submission?

Loading the discussion…