Test-Time Model Adaptation with Only Forward Passes
Shuaicheng Niu, Chunyan Miao, Guohao Chen, Pengcheng Wu, Peilin Zhao
Abstract
Test-time adaptation has proven effective in adapting a given trained model to unseen test samples with potential distribution shifts. However, in real-world scenarios, models are usually deployed on resource-limited devices, e.g., FPGAs, and are often quantized and hard-coded with nonmodifiable parameters for acceleration. In light of this, existing methods are often infeasible since they heavily depend on computation-intensive backpropagation for model updating that may be not supported. To address this, we propose a testtime Forward-Optimization Adaptation (FOA) method. In FOA, we seek to solely learn a newly added prompt (as model's input) via a derivativefree covariance matrix adaptation evolution strategy. To make this strategy work stably under our online unsupervised setting, we devise a novel fitness function by measuring test-training statistic discrepancy and model prediction entropy. Moreover, we design an activation shifting scheme that directly tunes the model activations for shifted test samples, making them align with the source training domain, thereby further enhancing adaptation performance. Without using any backpropagation and altering model weights, FOA runs on quantized 8-bit ViT outperforms gradient-based TENT on full-precision 32-bit ViT, while achieving an up to 24-fold memory reduction on ImageNet-C. Code: https://github.com/mr-eggplant/FOA .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext a3a14db2-aa9b-429d-a2bf-1730cf667485Cited by top-tier papers38
- Cross-Device Collaborative Test-Time AdaptationGuohao Chen, Shuaicheng Niu, Deyu Chen, Shuhai Zhang et al.NeurIPS 2024 · 18 citations
- Visual Instance-aware Prompt TuningXi Xiao, Yunbei Zhang, Xingjian Li, Tianyang Wang et al.ACM MM 2025 · 12 citations
- E-BATS: Efficient Backpropagation-Free Test-Time Adaptation for Speech Foundation ModelsJiaheng Dong, Hong Jia, Soumyajit Chatterjee, Abhirup Ghosh et al.NeurIPS 2025 · 10 citations
- ReservoirTTA: Prolonged Test-time Adaptation for Evolving and Recurring DomainsGuillaume Vray, Devavrat Tomar, Xufeng Gao, Jean-Philippe Thiran et al.NeurIPS 2025 · 9 citations
- PAID: Pairwise Angular-Invariant Decomposition for Continual Test-Time AdaptationKunyu Wang, Xueyang Fu, Yuanfei Bao, Chengjie Ge et al.NeurIPS 2025 · 7 citations
Builds on33
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution GeneralizationDan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath et al.ICCV 2021 · 2,294 citations
- WILDS: A Benchmark of in-the-Wild Distribution ShiftsPang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie et al.ICML 2021 · 1,773 citations
- Tent: Fully Test-Time Adaptation by Entropy MinimizationDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen et al.ICLR 2021 · 1,731 citations
- Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space ModelLianghui Zhu, Bencheng Liao, Qian Zhang, Xinlong Wang et al.ICML 2024 · 1,725 citations
Related papers
- FOZO: Forward-Only Zeroth-Order Prompt Optimization for Test-Time AdaptationXingyu Wang, Tao WangCVPR 2026 · 2 citations
- Test-Time Model Adaptation for Quantized Neural NetworksZeshuai Deng, Guohao Chen, Shuaicheng Niu, Hui Luo et al.ACM MM 2025 · 1 citation
- Architecture-Agnostic Test-Time Adaptation via Backprop-Free Embedding AlignmentMA Xiao, Young D. Kwon, Pan Zhou, Dong MaICLR 2026
- ViTPrompt: Training-Free Prompt Refinement with Visual Tokens for Open-Vocabulary DetectionYitong Qin, Lihua Zhou, Jiwei Wei, Ran Ran et al.CVPR 2026
- NEO — No-Optimization Test-Time Adaptation through Latent Re-CenteringAlexander Murphy, Michal Danilowski, Soumyajit Chatterjee, Abhirup GhoshICLR 2026 · 7 citations
