mlsanityData to 7 Oct 2026

Flatness Guided Test-Time Adaptation for Vision-Language Models

arXiv 2501.18864 ↗First posted 31 Jan 2025cs.CVcited by 1

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

  1. 2024Dual Prototype Evolving for Test-Time Generalization of Vision-Language Models16 Oct
  2. 2024On the test-time zero-shot generalization of vision-language models: Do we really need prompt learning?3 May
  3. 2024Efficient Test-Time Adaptation of Vision-Language Models27 Mar
  4. 2024C-TPT: Calibrated Test-Time Prompt Tuning for Vision-Language Models via Text Feature Dispersion21 Mar
  5. 2023Align Your Prompts: Test-Time Prompting with Distribution Alignment for Zero-Shot Generalization2 Nov
  6. 2023Diverse Data Augmentation with Diffusions for Effective Test-time Prompt Tuning11 Aug
  7. 2022Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models15 Sep
  8. 2022Tip-Adapter: Training-free Adaption of CLIP for Few-shot Classification19 Jul
  9. 2022Conditional Prompt Learning for Vision-Language Models10 Mar
  10. 2021Learning to Prompt for Vision-Language Models2 Sep

Other references · 32

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
  5. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
  6. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
  7. 2013Fine-Grained Visual Classification of Aircraftcited by 1,701
  8. 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
  9. 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
  10. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
  11. 2019Natural Adversarial Examplescited by 1,401
  12. 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
20 more
  1. 2021Grounded Language-Image Pre-trainingcited by 1,147
  2. 2017Visualizing the Loss Landscape of Neural Netscited by 1,126
  3. 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
  4. 2021StyleCLIP: Text-Driven Manipulation of StyleGAN Imagerycited by 990
  5. 2022MaPLe: Multi-modal Prompt Learningcited by 685
  6. 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 527
  7. 2019Fantastic Generalization Measures and Where to Find Themcited by 507
  8. 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 431
  9. 2023Towards Stable Test-Time Adaptation in Dynamic Wild Worldcited by 409
  10. 2021ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networkscited by 293
  11. 2022Contrastive Test-Time Adaptationcited by 258
  12. 2022Vision-Language Pre-Training with Triple Contrastive Learningcited by 212
  13. 2022Parameter-free Online Test-time Adaptationcited by 184
  14. 2016A vector-contraction inequality for Rademacher complexitiescited by 141
  15. 2022Test-Time Adaptation via Conjugate Pseudo-labelscited by 98
  16. 2022Fisher SAM: Information Geometry and Sharpness Aware Minimisationcited by 84
  17. 2023SoTTA: Robust Test-Time Adaptation on Noisy Data Streamscited by 63
  18. 2024Domain-Inspired Sharpness-Aware Minimization Under Domain Shiftscited by 12
  19. 2024Towards Robust Out-of-Distribution Generalization Bounds via Sharpnesscited by 10
  20. 2024Seeking Consistent Flat Minima for Better Domain Generalization via Refining Loss Landscapescited by 10

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025The Illusion of Progress? A Critical Look at Test-Time Adaptation for Vision-Language Models
  2. 2025Realistic Test-Time Adaptation of Vision-Language Models
  3. 2026Prototype-Based Test-Time Adaptation of Vision-Language Models
  4. 2026Improving Calibration in Test-Time Prompt Tuning for Vision-Language Models via Data-Free Flatness-Aware Prompt Pretraining
  5. 2026Efficient Test-time Adaptation through Candidate Verification and Divergence Shifts
  6. 2024Frustratingly Easy Test-Time Adaptation of Vision-Language Models
  7. 2025Efficient Test-Time Scaling for Small Vision-Language Models
  8. 2024Test-Time Low Rank Adaptation via Confidence Maximization for Zero-Shot Generalization of Vision-Language Models