Learning to Generate Gradients for Test-Time Adaptation via Test-Time Training Layers
Not on the map. Why?
Abstract (arXiv)
Test-time adaptation (TTA) aims to fine-tune a trained model online using unlabeled testing data to adapt to new environments or out-of-distribution data, demonstrating broad application potential in real-world scenarios. However, in this optimization process, unsupervised learning objectives like entropy minimization frequently encounter noisy learning signals. These signals produce unreliable gradients, which hinder the model ability to converge to an optimal solution quickly and introduce significant instability into the optimization process. In this paper, we seek to resolve these issues from the perspective of optimizer design. Unlike prior TTA using manually designed optimizers like SGD, we employ a learning-to-optimize approach to automatically learn an optimizer, called Meta Gradient Generator (MGG). Specifically, we aim for MGG to effectively utilize historical gradient information during the online optimization process to optimize the current model. To this end, in MGG, we design a lightweight and efficient sequence modeling layer -- gradient memory layer. It exploits a self-supervised reconstruction loss to compress historical gradient information into network parameters, thereby enabling better memorization ability over a long-term adaptation process. We only need a small number of unlabeled samples to pre-train MGG, and then the trained MGG can be deployed to process unseen samples. Promising results on ImageNet-C, R, Sketch, and A indicate that our method surpasses current state-of-the-art methods with fewer updates, less data, and significantly shorter adaptation iterations. Compared with a previous SOTA method SAR, we achieve 7.4% accuracy improvement and 4.2 times faster adaptation speed on ImageNet-C.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 6 of its 41 references that are in the map. First posted on arXiv 22 Dec 2024.
Builds on
6 of 41 references.
References · 6
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2020Evaluating Prediction-Time Batch Normalization for Robustness under Covariate Shiftcited by 235
- 2016Learning to Optimizecited by 195
- 2021SITA: Single Image Test-time Adaptationcited by 57
- 2017Learning to Optimize Neural Netscited by 41
- 2024Uncertainty-Calibrated Test-Time Model Adaptation without Forgettingcited by 20
Built on by
Citing papers per year: 2025: 3.
3 papers.
- 2025Adapt in the Wild: Test-Time Entropy Minimization with Sharpness and Feature Regularizationcited by 3
- 2025Neutralizing Token Aggregation via Information Augmentation for Efficient Test-Time Adaptationcited by 2
- 2025SloMo-Fast: Slow-Momentum and Fast-Adaptive Teachers for Source-Free Continual Test-Time Adaptationcited by 0
- 2025SloMo-Fast: Slow-Momentum and Fast-Adaptive Teachers for Source-Free Continual Test-Time Adaptation23 Nov 2025
- 2025Adapt in the Wild: Test-Time Entropy Minimization with Sharpness and Feature Regularization5 Sep 2025
- 2025Neutralizing Token Aggregation via Information Augmentation for Efficient Test-Time Adaptation5 Aug 2025