Black Sheep in the Herd: Playing with Spuriously Correlated Attributes for Vision-Language Recognition

Xinyu Tian, Shu Zou, Zhaoyuan Yang, Mengqi He, Jing Zhang

Abstract

Few-shot adaptation for Vision-Language Models (VLMs) often presents a trade-off between in-distribution accuracy and out-of-distribution generalization. While recent methods use visual attributes to bridge this gap, this study reveals that VLMs frequently rely on a small subset of "spuriously correlated attributes"—features that co-occur with a category but are not intrinsic to it (e.g., "sea" for "fireboat"). These "black sheep" attributes lead to poor generalization when the context changes. To address this, we propose Spurious Attribute Probing (SAP) to identify and filter these biases, and Spurious Attribute Shielding (SAS), a plug-and-play module that prevents models from latching onto these cues. Our approach establishes a new state-of-the-art across 11 datasets, significantly improving robustness to distribution shifts.

Introduction: The "Black Sheep" Problem

Large-scale Vision-Language Models (VLMs) like CLIP are celebrated for their zero-shot capabilities. However, when adapted to specific downstream tasks via Parameter-Efficient Fine-Tuning (PEFT), they often lose their ability to generalize. They become "context-hungry," over-relying on background confounders rather than the core semantics of the object.

Research indicates that even when models are guided by visual descriptors (e.g., "has wheels"), they tend to prioritize spurious correlations. For instance, if a training set consistently features "mountain bikes" on "roads," the model may treat the road as a primary diagnostic feature. When presented with a bike on a trail, the model fails. These misleading attributes are the "black sheep" in the attribute herd, steering the model toward brittle decision-making.

Methodology

We introduce a two-stage framework designed to diagnose and then mitigate these spurious dependencies.

1. Spurious Attribute Probing (SAP)

SAP serves as a diagnostic tool to clean the attribute pool. The process involves:

  • Attribute Generation: Utilizing Multi-modal Large Language Models (MLLMs) like GPT-4V to analyze training images and generate a comprehensive list of visual cues.
  • Influence Ranking: Employing Concept Bottleneck Models (CBMs) to calculate the influence weight of each attribute on the model's final prediction.
  • Filtering: If a non-essential attribute (e.g., "utensils" for "chocolate cake") ranks highly in influence, SAP flags and removes it from the prompt set, ensuring the model's text-based guidance remains focused on core features.

2. Spurious Attribute Shielding (SAS)

While SAP cleans the text prompts, the vision branch may still "see" and rely on spurious features. SAS acts as a training-time shield:

  • Pseudo-Category Creation: Once a spurious attribute (e.g., "snow") is identified, SAS treats it as its own distinct category.
  • Data Augmentation: Using Stable Diffusion to generate synthetic images or retrieving relevant samples from the LAION dataset, the model is trained to recognize the spurious attribute independently of the target class.
  • Contrastive Learning: By forcing the model to distinguish between the "object" and the "context" (the spurious attribute), SAS breaks the correlation, compelling the model to focus on the actual object semantics.

Experimental Results

We evaluated SAP and SAS across a benchmark of 11 datasets, including ImageNet, OxfordPets, and specialized domains like EuroSAT (satellite imagery) and UCF101 (actions).

Key Findings

  • The 7% Rule: Our analysis found that spurious attributes typically make up less than 7% of the total attribute pool, yet they disproportionately occupy the top-3 most influential slots in standard VLM decision-making.
  • Performance Gains: Integrating SAP and SAS into existing PEFT methods (such as CoCoOp, MaPLe, and PromptSRC) resulted in an average accuracy improvement of over 2% across all benchmarks.
  • Robustness to Counter Groups: In tests involving "counter groups"—where objects appear without their usual spurious contexts (e.g., a polar bear on grass)—SAS improved accuracy by up to 6%. This confirms the model learns the object itself rather than the background.
  • Architecture Agnostic: The framework proved effective across various VLM backbones, including CLIP, BLIP, SigLIP, and EVA-CLIP.

Discussion and Limitations

While SAP and SAS significantly enhance robustness, they introduce a one-time pre-processing cost due to the need for MLLM probing and synthetic data generation. Furthermore, the method is "dataset-aware," meaning it requires access to training images to identify specific spurious correlations rather than being entirely dataset-agnostic.

Conclusion

By identifying and shielding models from the "black sheep" of spurious correlations, SAP and SAS provide a scalable way to fine-tune VLMs without sacrificing their inherent generalization. This research highlights that in the quest for better vision-language recognition, sometimes the most effective strategy is "addition by subtraction"—removing the misleading cues that prevent models from seeing the full picture.

Summary updated

BibTeX
@inproceedings{tian2025black,
  author = {Xinyu Tian and Shu Zou and Zhaoyuan Yang and Mengqi He and Jing Zhang},
  title = {{Black Sheep in the Herd: Playing with Spuriously Correlated Attributes for Vision-Language Recognition}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=g1fkhbhHjL},
}
Figure