ELVIA analysis of: Learning to (Learn at Test Time): RNNs with Expressive Hidden States — Problem 1: Captured decoding freezes within-minibatch phase
Original paper: Yu Sun; Xinhao Li; Karan Dalal; Jiarui Xu; Arjun Vikram; Genghan Zhang; Yann Dubois; Xinlei Chen; Xiaolong Wang; Sanmi Koyejo; Tatsunori Hashimoto; Carlos Guestrin. Learning to (Learn at Test Time): RNNs with Expressive Hidden States. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/sun25h.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: Paper Section3.3/Fig8p8; r03 README/benchmark; generation.py245-318; modeling_ttt.py389-403,1396-1401
Question: What does the recorded analysis establish about “Captured decoding freezes within-minibatch phase”?
Bounded finding:
Captured coefficient1/16 versus1 changes normalized output by .014647455341; defaultprompt1/generate512 freezesphase0. Released decoding reproduction route evaluates different transition; historical timing correction unmeasured.
Recorded check:
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 16 to select ; lines 1396–1401 create position IDs from the same integer, overriding any supplied IDs. Lines 401–403 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 1 and generation length 512, capture occurs at offset \(513-1=512\), phase 0. The initialized coefficient is therefore always 1, instead of the intended sequence \(1,1/2,\ldots,1/16\). The error directly reaches \[W_{\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 16 and generation length 16, captures at offset 31, phase 15. The first subsequent decode evaluation has actual offset 16, phase 0. Let head dimension be 64, normalization epsilon \(e=10^{-6}\), normalization scale/bias \((1,0)\), and effective gated learning rate \(L=1/128\). Set \[z=(1,-1,0,0)^{\times16},\qquad
r=(0,0,1,-1)^{\times16}.\] At the start of a minibatch take cached bias \(b=z\), zero gradient buffers, current query/key zero and value \(r\). This bias is reachable from zero bias: a preceding 16-token prefill with zero queries/keys, first value \(2.048z\) and remaining values zero produces it under the same frozen-gradient update and final coefficient \(1/16\).
Since \(z\) and \(r\) are centered and orthogonal, the normalization-loss gradient is exactly \[g=\frac{e}{(1/2+e)^{2}}z-\frac{1}{\sqrt{1/2+e}}r.\] The correct and captured biases are \(z-Lg\) and \(z-Lg/16\). Applying the actual output normalization gives the first four coordinates \[\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\). 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.
Case-wide limitations:
- P1 — Captured decoding freezes within-minibatch phase — Counterevidence: Boundary branch dynamic; eager decoding/prefill avoid issue; JAX results separate; historicalcommit unbound
- P2 — One-based minibatch anchor off by one — Counterevidence: Prose/appendix/source use preceding minibatch; no implemented dual failure
- P3 — Nonparametric arguments and density conditions — Counterevidence: Consistent projected-query score restores family identity; finite weights define regression
- Limitations: Major scoped to released decoding route
- Limitations: No claim JAX perplexities or prefill timings are false
- Limitations: No author-code execution or fp16/GPU measurement
- Limitations: No complete v4 comparison
- Limitations: No author-code execution
- Limitations: No benchmark reproduction
- Limitations: No complete historical version correspondence
- The original report's complete scope, counterevidence and unresolved questions are retained below.
- This import checks publication format and identity; it does not repeat scientific review.
- Independent human scientific review is pending; author adoption has not been requested.
Source problem ID: p1
Source report index: 1
Original source excerpts (verbatim):
Similar to Transformer, TTT-Linear and TTT-MLP can keep reducing perplexity by conditioning on more tokens, while Mamba cannot after 16k context.
Source: Published ICML 2025 proceedings PDF (PMLR 267)
Locator: PDF p. 1, Abstract
Source PDF SHA-256: ded5fc564f609cb0aaabb12a804507e4e5a56a06a791702be6393e01ac3b767f
Review status: Independent review pending
Case: icml2025-0248-learning-to-learn-at-test-time-rnns-with-expressive-hidden-states
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0248-learning-to-learn-at-test-time-rnns-with-expressive-hidden-states.html#problem-1
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0248-learning-to-learn-at-test-time-rnns-with-expressive-hidden-states/records/icml2025-0248-learning-to-learn-at-test-time-rnns-with-expressive-hidden-states.r1.json
Canonical record SHA-256: 0a3be5bde37592b6a54a2dfded98efebb5723fe6282ad253be56f2d256a9bb80
The page follows the latest revision; the versioned record identifies this snapshot.