Flatness Guided Test-Time Adaptation for Vision-Language Models
On the map: Multimodal LLMs / vision-language models → Prompt learning and adaptation of CLIP
Abstract (arXiv)
Test-time adaptation (TTA) of Vision-Language Models (VLMs) has emerged as a technique for tackling distribution shifts during the test time. Recent research indicates that the test-time adaptation is intrinsically linked to the model's training history. However, existing TTA methods, such as Test-time Prompt Tuning, often design adaptation strategies in isolation from the models' training characteristics, which degrade their performance. This paper argues that the flatness acquired via sharpness-aware training is an efficient clue for the test-time adaptation of VLMs. Built on this insight, this paper proposes a novel Flatness-Guided Adaptation framework (FGA) for VLMs to cohesively unify training and test-time procedures. Its core idea is to leverage the alignment between the training minimum and test loss flat regions to guide the adaptation process. Specifically, our FGA consists of a prompt-tuning stage and a test-time adaptation stage. In the tuning stage, a Sharpness-Aware Prompt Tuning method is utilized to identify the training flat minimum, offering a geometric clue of flatness for subsequent adaptation. In the test stage, a Sharpness-based Test Sample Selection approach is proposed to ensure the alignment of flat minima between the training and each augmented test sample's loss landscape. In comparison to existing TTA methods, our FGA avoids the expensive prompt parameter updates during test time, and substantially reduces the computation overhead. Extensive experiments on both domain generalization and cross-dataset benchmarks demonstrate that our FGA achieves superior performance over prevalent TTA methods. Notably, when employing a ViT-B/16 image encoder, FGA even outperforms TPT+CoOp by an average of 4.88% across all four ImageNet out-of-domain variants.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Prompt learning and adaptation of CLIP, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 42 of its 55 references that are in the map. First posted on arXiv 31 Jan 2025.
Builds on
42 of 55 references.
Closest ancestors · 10
Same direction, newest first
- 2024Dual Prototype Evolving for Test-Time Generalization of Vision-Language Models16 Oct
- 2024On the test-time zero-shot generalization of vision-language models: Do we really need prompt learning?3 May
- 2024Efficient Test-Time Adaptation of Vision-Language Models27 Mar
- 2024C-TPT: Calibrated Test-Time Prompt Tuning for Vision-Language Models via Text Feature Dispersion21 Mar
- 2023Align Your Prompts: Test-Time Prompting with Distribution Alignment for Zero-Shot Generalization2 Nov
- 2023Diverse Data Augmentation with Diffusions for Effective Test-time Prompt Tuning11 Aug
- 2022Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models15 Sep
- 2022Tip-Adapter: Training-free Adaption of CLIP for Few-shot Classification19 Jul
- 2022Conditional Prompt Learning for Vision-Language Models10 Mar
- 2021Learning to Prompt for Vision-Language Models2 Sep
Other references · 32
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
- 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2013Fine-Grained Visual Classification of Aircraftcited by 1,701
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
- 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
- 2019Natural Adversarial Examplescited by 1,401
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
20 more
- 2021Grounded Language-Image Pre-trainingcited by 1,147
- 2017Visualizing the Loss Landscape of Neural Netscited by 1,126
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
- 2021StyleCLIP: Text-Driven Manipulation of StyleGAN Imagerycited by 990
- 2022MaPLe: Multi-modal Prompt Learningcited by 685
- 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 527
- 2019Fantastic Generalization Measures and Where to Find Themcited by 507
- 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 431
- 2023Towards Stable Test-Time Adaptation in Dynamic Wild Worldcited by 409
- 2021ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networkscited by 293
- 2022Contrastive Test-Time Adaptationcited by 258
- 2022Vision-Language Pre-Training with Triple Contrastive Learningcited by 212
- 2022Parameter-free Online Test-time Adaptationcited by 184
- 2016A vector-contraction inequality for Rademacher complexitiescited by 141
- 2022Test-Time Adaptation via Conjugate Pseudo-labelscited by 98
- 2022Fisher SAM: Information Geometry and Sharpness Aware Minimisationcited by 84
- 2023SoTTA: Robust Test-Time Adaptation on Noisy Data Streamscited by 63
- 2024Domain-Inspired Sharpness-Aware Minimization Under Domain Shiftscited by 12
- 2024Towards Robust Out-of-Distribution Generalization Bounds via Sharpnesscited by 10
- 2024Seeking Consistent Flat Minima for Better Domain Generalization via Refining Loss Landscapescited by 10
Built on by
Citing papers per year: 2025: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025The Illusion of Progress? A Critical Look at Test-Time Adaptation for Vision-Language Models
- 2025Realistic Test-Time Adaptation of Vision-Language Models
- 2026Prototype-Based Test-Time Adaptation of Vision-Language Models
- 2026Improving Calibration in Test-Time Prompt Tuning for Vision-Language Models via Data-Free Flatness-Aware Prompt Pretraining
- 2026Efficient Test-time Adaptation through Candidate Verification and Divergence Shifts
- 2024Frustratingly Easy Test-Time Adaptation of Vision-Language Models
- 2025Efficient Test-Time Scaling for Small Vision-Language Models
- 2024Test-Time Low Rank Adaptation via Confidence Maximization for Zero-Shot Generalization of Vision-Language Models