Abstract
Deep neural classifiers often rely on spurious correlations—shortcuts between input attributes and targets—which can severely compromise their generalization. Traditionally, mitigating these biases requires expensive human annotations. We introduce Learning beyond Classes (LBC), a self-guided framework that automatically identifies and mitigates spurious correlations without prior knowledge or manual labeling. LBC uses Vision-Language Models (VLMs) to detect conceptual attributes and a novel spuriousness metric to identify biased prediction behaviors. By retraining models on fine-grained labels derived from these behaviors, LBC significantly improves robustness, outperforming existing annotation-free methods on five real-world datasets.
The Challenge of Spurious Shortcuts
Standard machine learning models are often "lazy," learning the easiest path to a prediction. If a dataset contains a strong but non-essential correlation—for example, "waterbirds" consistently appearing against water backgrounds—the model may learn to identify the background instead of the bird. This results in a "robustness gap" where the model fails on out-of-distribution samples, like a waterbird on land.
Mitigating this typically requires group labels that specify which images contain which spurious attributes. However, these labels are expensive to produce and require researchers to know exactly what biases to look for. LBC addresses this by operating in an "annotation-free" setting.
The LBC Framework
LBC automates the discovery and mitigation of biases through a four-stage pipeline:
1. Automatic Attribute Detection
LBC leverages a pre-trained Vision-Language Model (VLM) to generate text descriptions for training images. It then extracts a candidate set of attributes (e.g., "water," "grass," "tree") to serve as potential spurious features.
2. Quantifying Spuriousness
The framework introduces a spuriousness score to measure how much a model's prediction accuracy for a specific class depends on a given attribute. By calculating the accuracy gap between samples with and without an attribute, LBC identifies which features are being used as shortcuts.
3. Spuriousness Embedding Space
Images are mapped into a high-dimensional "spuriousness embedding space" based on their scores across all detected attributes. By clustering images in this space, LBC identifies distinct "prediction behaviors." For instance, it can separate "waterbirds predicted via water features" from "waterbirds predicted via actual bird features."
4. Learning beyond Classes
The training data is relabeled using these clusters. Instead of just learning the class "Bird," the model is tasked with distinguishing between sub-groups like "Bird-Cluster-1" and "Bird-Cluster-2." This forces the model to identify the common denominator across all clusters—the actual object features—rather than relying on cluster-specific shortcuts.
Key Results
LBC consistently outperforms prior methods that do not use group labels and even rivals methods that have access to validation-set annotations:
- Waterbirds: Achieved 87.3% worst-group accuracy (WGA), a massive jump from the 66.4% baseline.
- CelebA: Reached 81.2% WGA, significantly higher than other "blind" mitigation methods like LfF (24.4%).
- Generalization: On the NICO dataset, LBC achieved 65.34% test accuracy, outperforming the next best method by over 12 percentage points.
Conclusion
LBC provides a powerful, automated way to improve model robustness by leveraging the descriptive power of VLMs. By shifting from "erasing" backgrounds to "diversifying" them through fine-grained relabeling, LBC incentivizes models to learn essential features that generalize beyond training shortcuts.
Summary updated