Error Correction in Trained TTT Layers
Organizations: Duke University
Abstract
Test-time-training (TTT) layers update fast-weight memory while processing an input sequence. A gradient-based update, however, does not by itself establish how the memory revises an existing association. We study the structure and empirical role of prediction-derived updates in released TTT implementations. For dot-product objectives, we characterize the absence of a prediction-error residual and establish conditions under which inner-loop ascent and descent are equivalent after reparameterization. For the LayerNorm-based squared-error objective used by TTT-Linear and TTT-MLP, we derive the inner gradient and identify a prediction-derived component that cancels at the released initialization in the zero-epsilon limit. We then measure the full normalized prediction's contribution on three trained checkpoints. Removing this contribution while retaining the LayerNorm Jacobian gives a mean gradient norm ratio of 0.25 to 0.32 across the models. On 100,303 tokens from War and Peace, the same intervention with local per-token norm matching raises perplexity by 2.8-2.9% on TTT-Linear-760M and 1.3B, whereas freezing all fast-weight updates raises it by factors of 4.2-4.5. Separate synthetic tests illustrate the dependence of plain delta-rule overwriting on step size. The results distinguish a prediction-derived update from its behavioral value and show why implementation analysis and live interventions are both needed to assess test-time memory.
Figures & tables
| Checkpoint | Chunks | Mean | Median layer | [ interval] |
|---|---|---|---|---|
| TTT-Linear-760M | 128 | 0.265 | 0.504 | [ ] |
| TTT-Linear-1.3B | 512 | 0.251 | 0.584 | [ ] |
| TTT-MLP-760M | 512 | 0.318 | 0.536 | [ ] |
| TTT-Linear-760M | TTT-Linear-1.3B | |||
|---|---|---|---|---|
| Arm | Perplexity | NLL | Perplexity | NLL |
| Baseline | 12.77 | 0 | 11.34 | 0 |
| Prediction removed | 13.15 | 0.02891 | 11.68 | 0.02943 |
| Prediction removed, norm matched | 13.13 | 0.02789 | 11.66 | 0.02811 |
| Ascent | 2595.69 | 5.31423 | 1530.27 | 4.90509 |
| Frozen | 54.18 | 1.44484 | 50.56 | 1.49505 |
Test-Time Training
Test-time training adapts model parameters or memory during deployment using each input or stream to improve performance under changing tasks and data.
See all 103 papers