Contrastive Adapters for Foundation Model Group Robustness
Michael Zhang, Christopher Ré
Abstract
While large pretrained foundation models (FMs) have shown remarkable zero-shot classification robustness to dataset-level distribution shifts, their robustness to subpopulation or group shifts is relatively underexplored. We study this problem, and find that FMs such as CLIP may not be robust to various group shifts. Across 9 robustness benchmarks, zero-shot classification with their embeddings results in gaps of up to 80.7 percentage points (pp) between average and worst-group accuracy. Unfortunately, existing methods to improve robustness require retraining, which can be prohibitively expensive on large foundation models. We also find that efficient ways to improve model inference (e.g., via adapters, lightweight networks with FM embeddings as inputs) do not consistently improve and can sometimes hurt group robustness compared to zero-shot (e.g., increasing the accuracy gap by 50.1 pp on CelebA). We thus develop an adapter training strategy to effectively and efficiently improve FM group robustness. Our motivating observation is that while poor robustness results from groups in the same class being embedded far apart in the foundation model"embedding space,"standard adapter training may not bring these points closer together. We thus propose contrastive adapting, which trains adapters with contrastive learning to bring sample embeddings close to both their ground-truth class embeddings and other sample embeddings in the same class. Across the 9 benchmarks, our approach consistently improves group robustness, raising worst-group accuracy by 8.5 to 56.0 pp over zero-shot. Our approach is also efficient, doing so without any FM finetuning and only a fixed set of frozen FM embeddings. On benchmarks such as Waterbirds and CelebA, this leads to worst-group accuracy comparable to state-of-the-art methods that retrain entire models, while only training 1% of the model parameters.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
40 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- A Unified Debiasing Approach for Vision-Language Models across Modalities and Tasks cites FairerCLIP: Debiasing CLIP's Zero-Shot Predictions using Functions in RKHSs
- A Unified Debiasing Approach for Vision-Language Models across Modalities and Tasks cites Learning Transferable Visual Models From Natural Language Supervision
- Mitigating Spurious Correlations in Multi-modal Models during Fine-tuning cites Learning Transferable Visual Models From Natural Language Supervision
- FairerCLIP: Debiasing CLIP's Zero-Shot Predictions using Functions in RKHSs cites Learning Transferable Visual Models From Natural Language Supervision
- Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision cites A Simple Framework for Contrastive Learning of Visual Representations
- Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision cites Learning Transferable Visual Models From Natural Language Supervision
- Zero-Shot Robustification of Zero-Shot Models cites Mitigating Spurious Correlations in Multi-modal Models during Fine-tuning
- Zero-Shot Robustification of Zero-Shot Models cites Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
- Zero-Shot Robustification of Zero-Shot Models cites Learning Transferable Visual Models From Natural Language Supervision
- Supervised Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- Learning Transferable Visual Models From Natural Language Supervision cites A Simple Framework for Contrastive Learning of Visual Representations
- Learning Transferable Visual Models From Natural Language Supervision cites Language Models are Few-Shot Learners
- RaVL: Discovering and Mitigating Spurious Correlations in Fine-Tuned Vision-Language Models cites Mitigating Spurious Correlations in Multi-modal Models during Fine-tuning
- RaVL: Discovering and Mitigating Spurious Correlations in Fine-Tuned Vision-Language Models cites Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
- RaVL: Discovering and Mitigating Spurious Correlations in Fine-Tuned Vision-Language Models cites Learning Transferable Visual Models From Natural Language Supervision
Cited by top-tier papers40
- Mitigating Spurious Correlations in Multi-modal Models during Fine-tuningYu Yang, Besmira Nushi, Hamid Palangi, Baharan MirzasoleimanICML 2023 · 65 citations
- FairerCLIP: Debiasing CLIP's Zero-Shot Predictions using Functions in RKHSsSepehr Dehdashtian, Lan Wang, Vishnu BoddetiICLR 2024 · 34 citations
- Zero-Shot Robustification of Zero-Shot ModelsDyah Adila, Changho Shin, Linrong Cai, Frederic SalaICLR 2024 · 31 citations
- RaVL: Discovering and Mitigating Spurious Correlations in Fine-Tuned Vision-Language ModelsMaya Varma, Jean-Benoit Delbrouck, Zhihong Chen, Akshay Chaudhari et al.NeurIPS 2024 · 28 citations
- A Unified Debiasing Approach for Vision-Language Models across Modalities and TasksHoin Jung, Taeuk Jang, Xiaoqian WangNeurIPS 2024 · 27 citations
Builds on27
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
- Scaling Up Visual and Vision-Language Representation Learning With Noisy Text SupervisionChao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen et al.ICML 2021 · 5,401 citations
Related papers
- Understanding Zero-shot Adversarial Robustness for Large-Scale ModelsChengzhi Mao, Scott Geng, Junfeng Yang, Xin Wang et al.ICLR 2023 · 10 citations
- Robust fine-tuning of zero-shot modelsMitchell Wortsman, Gabriel Ilharco, Jong Wook Kim, Mike Li et al.CVPR 2022 · 364 citations
- Mind the Gap Between Prototypes and Images in Cross-domain FinetuningHongduan Tian, Feng Liu, Zhanke Zhou, Tongliang Liu et al.NeurIPS 2024 · 4 citations
- TIMA: Text-Image Mutual Awareness for Balancing Zero-Shot Adversarial Robustness and Generalization AbilityFengji Ma, Hei Victor Cheng, Chenxing Li, Li LiuAAAI 2026
- Targeted Forgetting of Image Subgroups in CLIP ModelsZeliang Zhang, Gaowen Liu, Charles Fleming, Ramana Rao Kompella et al.CVPR 2025
