ELVIA.Evidence Atlas
ICML 2025ELVIA assessment Major

Learning to (Learn at Test Time): RNNs with Expressive Hidden States

Yu Sun, Xinhao Li, Karan Dalal, Jiarui Xu, Arjun Vikram, Genghan Zhang, Yann Dubois, Xinlei Chen, Xiaolong Wang, Sanmi Koyejo, Tatsunori Hashimoto, Carlos Guestrin

ELVIA analysis

Independent review pending

The inspected fixed-minibatch-gradient construction and nonlinear primal/dual equivalence are valid. A Major issue is demonstrated in the released optimized decoding route: CUDA graph replay freezes the within-minibatch position used by the update coefficient and rotary encoding. A reachable layer-state example changes the output even after normalization. This compromises the semantic correctness of the released decoding-latency reproduction route, without establishing an error in JAX perplexities, prefill latency or historical timing values. Local indexing and nonparametric-formulation issues are Minor; historical run correspondence remains Needs Evidence.

Problem 1. Captured decoding freezes within-minibatch phase

Major
Evidence and reasoning

Problem statement

Released kernel benchmark implements TTT decoding and reproduces its throughput behavior.

Graph replay with Python integer offset. Minibatch16, prompt16/generate16 capturesphase15 versus actualphase0. Valid64dim biasz, q=k0, value r,r, rate1/128.

Proof

The inference-kernel release explicitly presents its script as reproducing the paper’s prefill/decode throughput, associated with Section 3.3 and Figure 8, p. 8. Its shipped benchmark enables CUDA graphs. The captured decoding route does not implement the position-dependent TTT state transition at each replay.

All code anchors in this problem are inside . The dependency is explicit:

- `benchmark_prefill_decode.py:115--124` calls generation with `cg=True`.

- `ttt/generation.py:281--282` sets the Python integer `seqlen_offset` to `max_seqlen-decoding_seqlen` during capture.

- `ttt/modeling_ttt.py:389--393` uses that integer modulo 1616 to select ; lines 13961396–14011401 create position IDs from the same integer, overriding any supplied IDs. Lines 401401–403403 use the resulting phase in rotary encoding.

- Graph dispatch keys include batch size, decoding length, prefill status and final-token status, but no within-batch position (`generation.py:245--263`). Replay copies only input IDs (`315--318`); the allocated position tensor is unused.

CUDA graph replay does not rerun the Python argument/index selection performed at capture [cuda]. Therefore incrementing the outer Python offset does not update those captured operations. The current last-token Boolean selects the correct commit/reset branch, but cannot repair the coefficient or rotary phase inside that graph.

For the shipped prompt length 11 and generation length 512,512, capture occurs at offset 513−1=512,513-1=512, phase 0.0. The initialized coefficient is therefore always 1,1, instead of the intended sequence 1,1/2,…,1/16.1,1/2,\ldots,1/16. The error directly reaches Wnew=Wbase−αtGW,bnew=bbase−αtGbW_{\rm new}=W_{\rm base}-\alpha_tG_W,\qquad b_{\rm new}=b_{\rm base}-\alpha_tG_b in the decoding kernel; it is not an unused index.

A reachable normalized-output witness. A second supported setting, prompt length 1616 and generation length 16,16, captures at offset 31,31, phase 15.15. The first subsequent decode evaluation has actual offset 16,16, phase 0.0. Let head dimension be 64,64, normalization epsilon e=10−6,e=10^{-6}, normalization scale/bias (1,0),(1,0), and effective gated learning rate L=1/128.L=1/128. Set z=(1,−1,0,0)×16,r=(0,0,1,−1)×16.z=(1,-1,0,0)^{\times16},\qquad r=(0,0,1,-1)^{\times16}. At the start of a minibatch take cached bias b=z,b=z, zero gradient buffers, current query/key zero and value r.r. This bias is reachable from zero bias: a preceding 16-token prefill with zero queries/keys, first value 2.048z2.048z and remaining values zero produces it under the same frozen-gradient update and final coefficient 1/16.1/16.

Since zz and rr are centered and orthogonal, the normalization-loss gradient is exactly g=e(1/2+e)2z−11/2+er.g=\frac{e}{(1/2+e)^{2}}z-\frac{1}{\sqrt{1/2+e}}r. The correct and captured biases are z−Lgz-Lg and z−Lg/16.z-Lg/16. Applying the actual output normalization gives the first four coordinates correct:(1.414125840,−1.414125840,0.015624016,−0.015624016),captured:(1.414211811,−1.414211811,0.000976560,−0.000976560).\begin{aligned} {\rm correct}:&\quad (1.414125840,-1.414125840,0.015624016,-0.015624016),\\ {\rm captured}:&\quad (1.414211811,-1.414211811,0.000976560,-0.000976560).\end{aligned} The maximum difference is 0.0146474553.0.0146474553. This independent real-arithmetic calculation uses the inspected layer formulas, not author-code execution. Queries/keys are zero, so rotary effects cannot explain away or cancel the coefficient witness. It does not claim a measured fp16/GPU error or a particular language-model score.

Impact, counterevidence and repair scope. The released decoding benchmark times a different state transition from the specified model, a direct failure of its core inference-reproduction role. That supports Major without requiring measured speed loss. It does not establish that the published historical timing used this commit. Ordinary `cg=False` evaluation recomputes the phase. Normal prefill bypasses replay, so the prefill-only timing route is not invalidated. JAX training/perplexity results are separate.

The README openly limits the release to random-token fp16 A100 benchmarking and excludes real serving. Those disclosures limit deployment claims but do not establish correctness of the captured recurrence. The asserted numerical agreement in the README was not independently reproduced and is not bound to a capture-aware validation trace. A repair must supply dynamic phase-dependent inputs or correctly distinguish all phase-dependent graphs, then verify state/output agreement. No such implementation repair or GPU rerun was performed.

□\square

Possible revision

Supply dynamic phase or phase-specific graphs, verify outputs and retime.

Problem 2. One-based minibatch anchor off by one

Minor
Evidence and reasoning

Problem statement

t'=t-mod(t,b) is the previous minibatch endpoint for tokens1,...,T.

b=2b=2,W0zero,squared(W-1)loss,η=0.1.\eta=0.1.

Proof

Section 2.4, p. 4, defines t′=t−mod⁡(t,b)t'=t-\operatorname{mod}(t,b) as the previous minibatch endpoint. For one-based tokens, at t=bt=b this gives t′=t,t'=t, rather than zero. The intended anchor is b⌊(t−1)/b⌋.b\lfloor(t-1)/b\rfloor.

With b=2,b=2, W0=0,W_0=0, ℓ(W)=(W−1)2\ell(W)=(W-1)^{2} and η=0.1,\eta=0.1, the intended frozen-anchor updates give W1=0.2,W_1=0.2, W2=0.4.W_2=0.4. The literal formula combined with equation (5) gives W2=0.2−0.2(W2−1)=1/3.W_2=0.2-0.2(W_2-1)=1/3. The prose, illustration, appendix and inspected source all support the intended previous-minibatch anchor. This is a localized specification error, not evidence that the implemented dual update is wrong. The corrected indexing is algebraically verified.

□\square

Possible revision

t'=b ⌊(t−1)/b⌋.\lfloor(t-1)/b\rfloor.

Problem 3. Nonparametric arguments and density conditions

Minor
Evidence and reasoning

Problem statement

Printed fixedQ/K kernel yields preceding attention output and supports AppendixB density construction.

Explicit two-dimensional Q/K/V and basis inputs. Density example Q=K=center1 on R.

Proof

Theorem 2, p. 6, uses κ(x,x′)∝exp⁡((Kx)⊤Qx′)\kappa(x,x')\propto\exp((Kx)^\top Qx') with the current query as its first argument, reversing the fixed Q/KQ/K roles used earlier. Appendix B’s density-estimation interpretation also requires a normalizable kernel and specified domain/base measure.

For a fixed-parameter witness let x1=e2,x2=e1,Q=(1000),K=(0100),V=(1,0).x_1=e_2,\quad x_2=e_1,\quad Q=\begin{pmatrix}1&0\\0&0\end{pmatrix},\quad K=\begin{pmatrix}0&1\\0&0\end{pmatrix},\quad V=(1,0). At t=2,t=2, the preceding attention convention gives scores (1,0)(1,0) and output 1/(1+e)=0.2689414214.1/(1+e)=0.2689414214. The printed kernel gives scores (0,0)(0,0) and output 1/2.1/2. The example also survives the literal query projection in equation (4), since Qx2=x2.Qx_2=x_2.

Using a projected query q=Qxtq=Qx_t with score exp⁡(q⊤Kxs)\exp(q^\top Kx_s) restores the intended weighted-average identity. Query/raw-input arguments must be stated consistently. Thus the family-level inclusion of self-attention remains valid; the issue does not refute the proposed parametric TTT layers. Separately, scalar Q=K=1Q=K=1 and center 11 give κ(x,1)∝ex,\kappa(x,1)\propto e^x, nonintegrable over R.\mathbb R. This is not a Euclidean density kernel without additional conditions. Finite positive weights still define the normalized regression algebra. Asymmetry alone is not the objection.

□\square

Possible revision

Use q=Qxtq=Qx_t with exp⁡(q⊤Kxs);\exp(q^\top Kx_s); specify density conditions separately.

Supporting record & provenance

Work status

Current version

Version 1

Minhao Liu · Initial report · Version 1

Independent review pending

Original claim and review scope

Similar to Transformer, TTT-Linear and TTT-MLP can keep reducing perplexity by conditioning on more tokens, while Mamba cannot after 16k context.

Published ICML 2025 proceedings PDF (PMLR 267); PDF p. 1, Abstract

Actual review scope

The recorded inspection concerns these source locations: Paper Section3.3/Fig8p8; r03 README/benchmark; generation.py245-318; modeling_ttt.py389-403,1396-1401; Section 2.4 p. 4; Theorem 2 Eqs8-9p6; AppendixBp15.

Submit an author revisionContribute a review