Test-Time Training with KV Binding Is Secretly Linear Attention
Organizations: NVIDIA, Toronto, Ontario, Canada · University of Toronto, Toronto, Ontario, Canada · Vector Institute, Toronto, Ontario, Canada · Technion – Israel Institute of Technology, Haifa, Israel
Abstract
Test-time training (TTT) with KV binding as sequence modeling layer is commonly interpreted as a form of online meta-learning that memorizes a key-value mapping at test time. However, our analysis reveals multiple phenomena that contradict this memorization-based interpretation. Motivated by these findings, we revisit the formulation of TTT and show that a broad class of TTT architectures can be expressed as a form of learned linear attention operator. Beyond explaining previously puzzling model behaviors, this perspective yields multiple practical benefits: it enables principled architectural simplifications, admits fully parallel formulations that preserve performance while improving efficiency, and provides a systematic reduction of diverse TTT variants to a standard linear attention form. Overall, our results reframe TTT not as test-time memorization, but as learned linear attention with enhanced representational capacity. Project page: https://research.nvidia.com/labs/sil/projects/tttla/.
Figures & tables
| Model | Perplexity (LaCT-LLM) | PSNR (LaCT-NVS) | Top-1 Acc (ViTTT) |
| Baseline | 16.43 | 25.94 | 79.34 |
| Gradient Ascent | 16.19 | 25.85 | 79.61 |
| Replace with | 16.18 | 25.95 | 79.18 |
| Alias | Description of TTT Inner-loop Designs | Perplexity (LaCT-LLM) | PSNR (LaCT-NVS) | Top-1 Acc (ViTTT) | Tokens Per Sec (Recurrent Impl.) | Tokens Per Sec (Parallel Impl.) |
| Baseline | LaCT ( Zhang et al., 2025 ) / ViTTT ( Han et al., 2025 ) | 16.43 | 25.94 | 79.34% | 4.30M | N/A |
| Variant 1 | Baseline w/ only update the last layer parameters | 15.93 | 25.97 | 79.63% | 10.60M | N/A |
| Variant 2 | Variant 1 w/ remove weight normalization | 16.31 | 25.93 | 79.63% † | 11.02M | 30.18M |
| Variant 3 | Variant 2 w/ multi-layer MLP singel linear layer | 16.23 | 25.71 | 79.39% | 12.95M | 49.69M |
| Variant 4 | Variant 3 w/ remove per-token learnable lr | 16.12 | 25.70 | 79.39% † | 13.31M | 53.99M |
| Variant 5 | Variant 4 w/ remove momentum in SGD | 15.97 | 25.70 † | 79.39% † | 14.40M | 57.28M |
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 104 papers