A Decision-Theoretic View of Test-Time Training: When, How Far, and Which Directions to Adapt
Not on the map. Why?
Abstract (arXiv)
Test-time training (TTT) adapts a pretrained model to each prompt via parameter updates, improving accuracy under pretraining-to-test distribution shifts. Yet, its performance often suffers from instability and sensitivity to hyperparameters such as update steps and subspace. We explain this behavior through a decision-theoretic lens, treating TTT as implicit Bayesian inference in the kernel regime. Under a Gaussian process benchmark, we show that TTT reduces prediction error when updates are spectrally matched to the prompt's signal-to-noise ratio and aligned with query-relevant eigen-directions. This perspective underpins the following results: (1) we show when fixed update steps and subspaces fail under distribution shifts, motivating adaptive strategies; (2) we prove that selecting update steps via prompt evidence admits a PAC-Bayes guarantee against overfitting; and (3) we characterize the Bayes-optimal update subspace under a linear-Gaussian correction model, yielding a scoring rule for selecting Transformer blocks and heads. Our theory helps explain the empirical instability of TTT, taking a step toward principled guidance for when, how far, and which directions to adapt.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 30 of its 79 references that are in the map. First posted on arXiv 14 Jun 2026.
Builds on
30 of 79 references.
References · 30
- 2017Attention Is All You Needcited by 60,361
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,621
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2019Are Sixteen Heads Really Better than One?cited by 816
- 2019Wide Neural Networks of Any Depth Evolve as Linear Models Under Gradient Descentcited by 738
- 2018On Lazy Training in Differentiable Programmingcited by 675
- 2022Continual Test-Time Domain Adaptationcited by 525
- 2022Efficient Test-Time Model Adaptation without Forgettingcited by 469
- 2021User-friendly introduction to PAC-Bayes boundscited by 239
- 2020Spectrum Dependent Learning Curves in Kernel Regression and Wide Neural Networkscited by 200
- 2022Parameter-free Online Test-time Adaptationcited by 189
18 more
- 2023Robust Test-Time Adaptation in Dynamic Scenarioscited by 189
- 2025Test-Time Training Done Rightcited by 130
- 2016PAC-Bayesian Theory Meets Bayesian Inferencecited by 88
- 2023Test-Time Training on Nearest Neighbors for Large Language Modelscited by 88
- 2022Improving Test-Time Adaptation via Shift-agnostic Weight Regularization and Nearest Source Prototypescited by 67
- 2024Efficiently Learning at Test-Time: Active Fine-Tuning of LLMscited by 42
- 2023What can a Single Attention Layer Learn? A Study Through the Random Features Lenscited by 40
- 2022On-the-Fly Test-time Adaptation for Medical Image Segmentationcited by 34
- 2025Can Transformers Learn Full Bayesian Inference in Context?cited by 31
- 2023Amortized Variational Inference: When and Why?cited by 29
- 2025In-Context Learning Is Provably Bayesian Inference: A Generalization Theory for Meta-Learningcited by 22
- 2018Goal-Oriented Optimal Design of Experiments for Large-Scale Bayesian Linear Inverse Problemscited by 19
- 2025Test-Time Training Provably Improves Transformers as In-context Learnerscited by 16
- 2025Amortized In-Context Bayesian Posterior Estimationcited by 15
- 2024Continual Test-time Adaptation for End-to-end Speech Recognition on Noisy Speechcited by 12
- 2024A Layer Selection Approach to Test Time Adaptationcited by 7
- 2025Specialization after Generalization: Towards Understanding Test-Time Training in Foundation Modelscited by 5
- 2025Test time training enhances in-context learning of nonlinear functionscited by 3
Built on by
Not cited yet.