Superclass-Guided Representation Disentanglement for Spurious Correlation Mitigation

Chenruo Liu, Hongjun Liu, Zeyu Lai, Yiqiu Shen, Chen Zhao, Qi Lei

TL;DR

The authors introduce SupER (Superclass-guided Embedding Representation), a novel framework that eliminates the need for costly group annotations to fight spurious correlations. By leveraging high-level "superclass" labels (like "bird" instead of specific bird types) via a pretrained vision-language model, SupER successfully disentangles core features from background noise, achieving exceptional robustness even when encountering entirely unseen groups at test time.

What Problem Does This Paper Address?

Machine learning models are notoriously lazy shortcut learners. If pictures of waterbirds in a training set almost always feature a water background, an Empirical Risk Minimization (ERM) model will simply learn to classify the background rather than the bird. When tested on a landbird by the water, the model fails spectacularly. This is the classic problem of spurious correlations.

To fix this, traditional methods rely heavily on group annotations (e.g., explicitly labeling images as "bird on water" vs. "bird on land") to balance out the training process. However, group labels are expensive, hard to define in the real world, and completely fall apart if the test set contains entirely new combinations or groups that were absent during training.

This paper asks a fundamental question: Can we find a more intrinsic, reliable signal than group labels to help models discern what features actually matter?

Methods

The authors propose that the answer lies in the superclass—a category higher up the semantic hierarchy than the target label (e.g., "bird" is the superclass for waterbirds and landbirds; "dog" is the superclass for different breeds).

SupER achieves group robustness without group labels through three main components:

  1. Superclass-Guided Feature Disentanglement: The model uses a $\beta$-Variational Autoencoder ($\beta$-VAE) to break down an image's latent representation into two distinct parts: superclass-relevant features ($z_{rel}$) and superclass-irrelevant features ($z_{irr}$).
  2. Attention Alignment via CLIP: To teach the model what belongs in each bucket, SupER leverages a pretrained vision-language model (CLIP). By feeding CLIP text prompts like "a photo of a bird", the framework generates gradient-based attribution maps. The model forces its internal classifiers to align their attention maps with CLIP's, ensuring $z_{rel}$ captures the actual object and $z_{irr}$ captures the background or spurious attributes.
  3. Principled Feature-Usage Strategy: Backed by a minimax-optimal theoretical analysis, the authors show that during evaluation, the model should completely discard the superclass-irrelevant features ($z_{irr}$) and rely solely on $z_{rel}$. Furthermore, applying $L_2$ regularization to the superclass-relevant classifier head during training ensures the model distributes its attention smoothly across all informative core features rather than over-relying on a single shortcut.
Overview of the SupER architecture showing feature disentanglement and CLIP attention alignment.

Datasets

The framework was rigorously evaluated across several challenging domain generalization benchmarks:

  • Waterbirds-95% & Waterbirds-100%: The latter represents an extreme case where certain group combinations are entirely missing during training.
  • Spawrious: A benchmark containing six subsets designed to evaluate both one-to-one and many-to-many spurious correlation regimes.
  • MetaShift: A dataset testing model performance on completely unseen groups with varying degrees of distribution shifts.
  • SpuCo Dogs: A dataset featuring strong correlations between dog sizes and indoor/outdoor backgrounds.
  • BFFHQ, CelebA, & Color MNIST: Used to validate cases where spurious correlations happen within the superclass itself.

Key Insights and Ideas

  • Superclasses as Semantic Anchors: While numeric labels (0 or 1) don't tell a model what it is looking at, a superclass label ("bird" vs. "background") provides an essential semantic prior. It redefines the task so that background features are explicitly recognized as irrelevant to the core object.
  • Surpassing the Teacher: A common worry is that the guiding model (CLIP) might possess its own internal biases. Crucially, SupER doesn't just replicate CLIP. Because the $\beta$-VAE enforces independent latent factors, occasional attribution errors from CLIP are overridden by the dominant semantic signal. As a result, the student (SupER) significantly outperforms the teacher (CLIP).
Figure 1: GradCAM maps of ERM base- line and our SupER approach on Water- birds dataset. (a) original bird images, (b) ERM’s GradCAM maps, and (c) SupER’s GradCAM maps. Our approach focuses on core features for classification, while ERM tends to rely on spurious features.

Key Results

SupER demonstrated substantial performance gains, particularly in worst-group accuracy (the accuracy of the most underrepresented or difficult group):

  • Waterbirds-100%: In this extreme setting where some groups were entirely absent during training, SupER achieved a worst-group accuracy of 79.7%, outperforming the best group-label-free baseline (CnC) by 17.6%.
  • Spawrious & MetaShift: SupER achieved an average worst-group accuracy of 82.9% on Spawrious and 76.8% on MetaShift, significantly outperforming models that don't use group info, and even beating several methods that do use explicit group labels.
  • Gaps Closed: The variance of accuracy across different groups was remarkably low (e.g., a variance of just 6.0 on Waterbirds-95%), proving that the model treats minority and majority groups with much greater equity.

Limitations and Future Work

While SupER represents a massive leap forward for group-label-free learning, it does rely on human-specified superclass definitions. To mitigate this, the authors experimented with using a Large Language Model (Qwen2.5-7B-Instruct) to automatically extract superclasses from fine-grained labels, which yielded highly reasonable prompts (e.g., automatically identifying "animal" for MetaShift).

For future work, the authors suggest exploring deeper integrations between SupER's feature disentanglement approach and other unsupervised latent group inference methods to further boost performance in scenarios where spurious features reside entirely within the superclass.

Summary updated

BibTeX
@inproceedings{liu2025superclass,
  author = {Chenruo Liu and Hongjun Liu and Zeyu Lai and Yiqiu Shen and Chen Zhao and Qi Lei},
  title = {{Superclass-Guided Representation Disentanglement for Spurious Correlation Mitigation}},
  booktitle = {CPAL (Proceedings Track)},
  year = {2025},
  url = {https://openreview.net/forum?id=7lbU2myr7C},
}
Figure