ELVIA.Evidence Atlas
ICML 2025ELVIA assessment Major

How Transformers Learn Regular Language Recognition: A Theoretical Study on Training Dynamics and Implicit Bias

Ruiquan Huang, Yingbin LIANG, Jing Yang

ELVIA analysis

Independent review pending

The Phase 2 proof neglects the scaling dependence of its max-margin norm. Under the stated Phase 1 updates that norm grows at least linearly with the attention scale, invalidating the chosen proof horizon and placing a later norm threshold beyond the interval where the needed lemma is established. This core derivation failure supports Major. A separate two-step counterexample to query-position symmetry supports Minor. Neither finding asserts empirical failure.

P1 — Phase2 horizon incompatible with margin dependence — Counterevidence: No proof of false theorem/failed learning/false experiments; phase1 separability granted; finite diagnostic not a computed SVM

Problem 1. Phase2 horizon incompatible with margin dependence

Major
Evidence and reasoning

Problem statement

Theorems 4.4–4.5 (p. 6) give alignment and loss bounds up to a horizon of order λ2/3/(ηLmax⁡).\lambda^{2/3}/(\eta L_{\max}). Appendix B’s parameter setup (p. 23) explicitly writes T=min⁡{λ3∥u∗∥ ηLmax⁡,λ2/322/3ηLmax⁡}=λ2/322/3ηLmax⁡. T=\min\left\{ \frac{\lambda}{\sqrt{3\|u^\ast\|}\,\eta L_{\max}}, \frac{\lambda^{2/3}}{2^{2/3}\eta L_{\max}} \right\} =\frac{\lambda^{2/3}}{2^{2/3}\eta L_{\max}}. Lemma B.5 is valid only for t0<t≤T.t_0<t\le T. The proof of Lemma B.6 (p. 26) then introduces t1=t0+1+14∥u∗∥2ηexp⁡(53Δ∥u∗∥),Δ>0, t_1=t_0+1+\frac{14\|u^\ast\|^{2}}{\eta} \exp\left(\frac{5}{3\Delta\|u^\ast\|}\right),\qquad \Delta>0, and invokes Lemma B.5 for t≥t1.t\ge t_1. This is used in Theorem B.7 (p. 28), restating the loss result. Appendix C (pp. 28, 33) explicitly reuses the Phase 22 argument for parity training.

All binary strings lengths1..Lmax⁡,L_{\max}, orthonormal embeddings, logistic loss with per-length averages, zero init, W phase1 update eta λ,\lambda, t0<=c/(eta Lmax⁡L_{\max}), stated small eta regime; grant phase1 separability.

Proof

The horizon used to prove the central Phase 22 claims is inconsistent with the margin dependence generated by the stated Phase 11 dynamics.

The logistic derivative has absolute value at most one, ∥vs(W)∥≤1,\|v_s(W)\|\le1, and the softmax Jacobian has operator norm at most one. Since the loss has one average term per length, ∥∇uLt∥≤Lmax⁡,∥∇WLt∥≤Lmax⁡∥ut∥/λ.\|\nabla_u\mathcal L_t\|\le L_{\max},\qquad \|\nabla_W\mathcal L_t\|\le L_{\max}\|u_t\|/\lambda. Thus ∥ut∥≤ηLmax⁡t,\|u_t\|\le\eta L_{\max}t, and the actual Phase 11 update gives ∥Wt0∥≤ηLmax⁡∑s=0t0−1∥us∥≤η2Lmax⁡2t0(t0−1)2=:B. \|W_{t_0}\|\le \eta L_{\max}\sum_{s=0}^{t_0-1}\|u_s\| \le \frac{\eta^2L_{\max}^2t_0(t_0-1)}2=:B. Write t0≤c/(ηLmax⁡)t_0\le c/(\eta L_{\max}) with the fixed constant allowed by the stated asymptotic regime. Then B≤c2/2,B\le c^{2}/2, independently of λ.\lambda.

Now retain only the four length-two strings aa,bb,ab,ba,aa,bb,ab,ba, with labels +,+,−,−.+,+,-,-. At uniform attention, vaa(0)+vbb(0)−vab(0)−vba(0)=0.v_{aa}(0)+v_{bb}(0)-v_{ab}(0)-v_{ba}(0)=0. Orthonormal columns and the softmax Lipschitz bound imply ∥vs(W)−vs(0)∥≤∥W∥/λ.\|v_s(W)-v_s(0)\|\le\|W\|/\lambda. For any feasible unit-margin separator, summing its four margin inequalities yields 4≤⟨u,∑sysvs(W)⟩=⟨u,∑sys(vs(W)−vs(0))⟩≤4∥u∥∥W∥/λ.4\le\left\langle u,\sum_s y_s v_s(W)\right\rangle =\left\langle u,\sum_s y_s(v_s(W)-v_s(0))\right\rangle \le4\|u\|\|W\|/\lambda. Consequently, whenever the promised separator exists, ∥u∗∥≥λ/∥Wt0∥≥λ/B≥2λ/c2. \|u^\ast\|\ge\lambda/\|W_{t_0}\| \ge\lambda/B\ge2\lambda/c^2. If Wt0=0,W_{t_0}=0, these four features are not separable; this cannot rescue the asserted Phase 22 argument.

For the second entry to be the minimum in the displayed formula, one needs ∥u∗∥≤24/33λ2/3.\|u^\ast\|\le \frac{2^{4/3}}{3}\lambda^{2/3}. This contradicts the displayed formula as λ\lambda grows with fixed cc and Lmax⁡≥2.L_{\max}\ge2. The condition λ=Ω(Lmax⁡2)\lambda=\Omega(L_{\max}^{2}) does not provide the missing upper bound on the margin norm. An admissible scaling family is Lmax⁡=2,L_{\max}=2, λ=n,\lambda=n, η=1/n,\eta=1/n, and t0=⌊cn/2⌋,t_0=\lfloor cn/2\rfloor, with fixed sufficiently small c>0;c>0; it satisfies the stated step-size and Phase 11 orders.

Furthermore, the displayed formula implies t1>14∥u∗∥2η≥56λ2c4η,t1T>56 22/3Lmax⁡c4λ4/3.t_1>\frac{14\|u^\ast\|^{2}}{\eta} \ge\frac{56\lambda^{2}}{c^{4}\eta}, \qquad \frac{t_1}{T}> \frac{56\,2^{2/3}L_{\max}}{c^{4}}\lambda^{4/3}. The proof’s chosen sufficient threshold therefore exceeds the proved horizon in that regime. Restoring the literal minimum in the displayed formula only makes the horizon smaller. The proof has not established a nonempty time interval where all its premises apply.

For η=10−3,\eta=10^{-3}, λ=100,\lambda=100, Lmax⁡=2,L_{\max}=2, and t0=50,t_0=50, the independent calculation gives B=0.0049,B=0.0049, ∥u∗∥≥20408.1633,\|u^\ast\|\ge20408.1633, second horizon 6786.0440,6786.0440, first horizon at most 202.0726,202.0726, and t1>5.8309×1012.t_1>5.8309\times10^{12}. These are evaluations of analytic bounds, not a claimed numerical solution of the max-margin problem. The asymptotic argument is the decisive contradiction and does not depend on choosing unspecified constants for this illustration.

The displayed loss bound is Lt=O(Lmax⁡∥u∗∥2/(ηt)).\mathcal L_t=O(L_{\max}\|u^\ast\|^{2}/(\eta\sqrt t)). Substitution of T=Cλ2/3/(ηLmax⁡)T=C\lambda^{2/3}/(\eta L_{\max}) gives the expression O ⁣(Lmax⁡3/2∥u∗∥2Cηλ1/3),O\!\left( \frac{L_{\max}^{3/2}\|u^\ast\|^{2}} {\sqrt{C\eta}\lambda^{1/3}} \right), not the displayed positive half-power of η\eta on pp. 6 and 28. The margin norm also cannot be held fixed while varying λ.\lambda. An increasing upper-bound expression is not a lower bound on the actual loss; it shows that this argument does not justify arbitrary accuracy.

This is Major: a demonstrated invalid derivation directly supports the central alignment, loss-convergence, and reused parity guarantees. Phase 11 separability was granted, and the experiments and qualitative two-phase behavior are not refuted. Hidden constants that depend arbitrarily on λ\lambda cannot justify a conclusion obtained by sending λ\lambda upward. A replacement result needs a proved compatible time regime and complete margin dependence. No such complete repair is certified.

□\square

Possible revision

No complete replacement theorem verified.

Problem 2. LemmaB.1 includes invalid query-position equality

Minor
Evidence and reasoning

Problem statement

Lemma B.1 asserts ⟨Eℓw,WtELw⟩=⟨Eℓ−w,WtELw⟩\langle E_\ell^w,W_tE_L^w\rangle=\langle E_\ell^{-w},W_tE_L^w\rangle for every ℓ≥2.\ell\ge2.

Lmax2; all six strings; zero init; two phase1 updates; any positive admissible eta,lambda.

Proof

Lemma B.1 (p. 13) asserts ⟨Eℓw,WtELw⟩=⟨Eℓ−w,WtELw⟩for all ℓ≥2.\langle E_\ell^w,W_tE_L^w\rangle =\langle E_\ell^{-w},W_tE_L^w\rangle \quad\text{for all }\ell\ge2. Its sample-pairing argument incorrectly treats flipping the last token as label-preserving.

Set Lmax⁡=2,L_{\max}=2, use the full six-string training set with the stated length weights and orthonormal embeddings, and start from zero. Choose positive η,λ\eta,\lambda in the stated regime with two Phase 11 updates. Direct differentiation gives u1=η4(E1a+E1b),W1=0.u_1=\frac{\eta}{4}(E_1^a+E_1^b),\qquad W_1=0. At the next update, ⟨E2a,W2E2a⟩=η264tanh⁡(η/16)>0,⟨E2b,W2E2a⟩=0.\langle E_2^a,W_2E_2^a\rangle =\frac{\eta^{2}}{64}\tanh(\eta/16)>0,\qquad \langle E_2^b,W_2E_2^a\rangle=0. Indeed, the latter coordinate never appears with query E2a:E_2^a: a length-two sequence with last token aa has no position-two token b.b. The two same-query sequences produce the stated nonzero diagonal after their logistic contributions are combined.

The independently written enumeration at η=0.001,λ=100\eta=0.001,\lambda=100 returns 9.76562498728945×10−139.76562498728945\times10^{-13} versus zero; the analytic diagonal is 9.765624987284342×10−13.9.765624987284342\times10^{-13}. The tiny rounding difference between the two nonzero evaluations does not affect the strict inequality.

This is Minor. The false equality concerns a query-position coordinate that is inactive for that query. Interior-position and global token-flip symmetries may still support the intended sample reduction; no additional core failure is established from this defect. Correcting the position domain is necessary, but a boundary edit has not been certified to repair every downstream proof. This judgment is based on functional dependence, not appendix location.

□\square

Possible revision

Need correct position domain; downstream repair not certified.

Supporting record & provenance

Work status

Current version

Version 1

Minhao Liu · Initial report · Version 1

Independent review pending

Original claim and review scope

Phase 2: Margin Maximization and Implicit Bias In this phase, the transformer shifts focus from rapid feature alignment to margin maximization, driven by the implicit bias of gradient descent.

Published ICML 2025 proceedings PDF (PMLR 267); PDF p. 6

Actual review scope

The recorded inspection concerns these source locations: PDF p. 6 Theorems4.4-4.5; p. 23 parameter setup and B.5; p. 26 B.6; p. 28 B.7 and AppendixC reuse; PDF p. 13 LemmaB.1.

Submit an author revisionContribute a review