TL;DR
Vision-language models like CLIP often rely on spurious correlations—like identifying a "baby pacifier" by looking for a baby's face rather than the pacifier itself. This paper introduces a lightweight fine-tuning method that leverages language to automatically detect and explicitly decorrelate these misleading attributes. By only updating the model's projection layers, the approach dramatically improves robustness and worst-group accuracy without the massive computational cost of retraining from scratch.
What Problem Does This Paper Address?
Deep learning models are notorious for taking shortcuts. If a specific background or secondary object frequently co-occurs with a target class in the training data (e.g., waterbirds always appearing on water), the model will learn to rely on that background instead of the actual object. This is known as a spurious correlation. When deployed in the real world where these correlations break down (e.g., a landbird on water), performance plummets.
While mitigating these biases during the initial large-scale pre-training phase is ideal, it is financially and computationally impractical for most practitioners. Furthermore, many spurious correlations are domain-specific and cannot be anticipated ahead of time.
Existing mitigation techniques typically focus on single-modality vision models and require exhaustive, manual human annotations of the spurious attributes for every training image. This paper tackles the challenge of efficiently fixing these biases in multi-modal (vision-language) models during downstream fine-tuning, without requiring dense manual labels.
Methods
The authors propose a two-stage pipeline: Spurious Correlation Detection followed by Spurious-aware Contrastive Fine-tuning.
1. Detection
To find unknown spurious correlations in a fine-tuning dataset, the method uses an open-vocabulary object detector (OWL-ViT) to tag potential attributes in the images. It then calculates an accuracy discrepancy score ($\delta$): $$\delta = \text{accuracy when attribute is present} - \text{accuracy when attribute is absent}$$ A high discrepancy indicates that the model relies heavily on that attribute. A domain expert then performs a quick, lightweight check to confirm if the detected attribute is truly spurious or just a core part of the class definition.
2. Mitigation
Instead of full-model fine-tuning, the authors freeze the core image and text encoders of CLIP and only fine-tune the projection layers that map features into the joint embedding space.
They introduce a novel objective function that extends standard contrastive loss with two key spurious-aware losses:
- Spurious Image Loss ($L_{vs}$): Pushes apart visual representations of the same class if they have different spurious attributes (e.g., separating waterbirds-on-water from waterbirds-on-land).
- Spurious Language Loss ($L_{ls}$): Uses language templates to explicitly tell the model to separate the concept of the class from the concept of the spurious attribute in the text embedding space.
Datasets
The approach was evaluated on two primary datasets:
- Waterbirds: A standard robustness benchmark combining bird images from the CUB dataset with backgrounds from the Places dataset, creating a severe land/water background bias.
- ImageNet-1K: Evaluated on specific classes discovered to have strong spurious correlations, such as "baby pacifier" (correlated with "baby face") and "can opener" (correlated with "can").
Key Insights and Ideas
- Multimodal Models Have Unique Biases: Interestingly, the authors found that CLIP does not always suffer from the same spurious correlations as standard vision models. For instance, the well-known gender/hair-color bias in the CelebA dataset did not degrade CLIP's performance, suggesting that contrastive language-image pre-training inherently alters what biases are absorbed.
- Language as a Regularizer for Vision: By expressing the spurious relationship textually (e.g., "A photo of a pacifier" vs. "A photo of a baby face"), the model can use its pre-trained text-understanding capabilities to guide the decorrelation of visual features.
- Fixing the "Right for the Wrong Reasons" Issue: Standard fine-tuning might maintain high average accuracy by continuing to exploit shortcuts. This method forces the model's internal attention (visualized via GradCAM) to shift away from the context and onto the actual object.
Key Results
- Waterbirds Dataset: The proposed algorithm achieved a worst-group accuracy 23% higher than standard Empirical Risk Minimization (ERM) on a CLIP ResNet-50 backbone, and 32% higher on a ViT backbone, all while preserving high average accuracy.
- ImageNet (Baby Pacifier): Pre-trained CLIP's accuracy dropped by 69.1% when a baby was absent from the image. The proposed method successfully mitigated this, shifting the model's focus directly onto the pacifier and boosting worst-group accuracy to 96.2% (matching ERM but with significantly better feature alignment).
- Quantifying Attention: The authors introduced Adjusted Intersection-over-Union (AIoU) to measure how well the model's activation maps align with ground-truth bounding boxes, demonstrating quantitatively that their method yields much cleaner, object-focused attention maps compared to baselines like Group DRO.
Limitations and Future Work
- High Concept Variation + Shared Features: The method struggles when the spurious attribute shares strong visual commonalities with the target class. For example, in the "can opener" class, the spurious attribute is the "can" itself. Because both objects are metallic and highly varied, the model struggles to cleanly separate them.
- Detector Dependency: The detection phase relies entirely on the initial object detector's ability to spot the attribute. If a bias is caused by abstract factors like lighting, contrast, or camera angles, the current pipeline won't catch it.
- Scalability: Future work is needed to explore how well this language-based mitigation scales when trying to eliminate multiple, intersecting spurious correlations simultaneously.
Summary updated