Discover and Mitigate Multiple Biased Subgroups in Image Classifiers

Zeliang Zhang, Mingqian Feng, Zhiheng Li, Chenliang XuCVPR 2024

Introduction

Modern image classifiers often achieve high overall accuracy on standard benchmarks while remaining fragile in real-world deployments. This fragility frequently stems from biased subgroups—specific subsets of data where the model relies on spurious correlations or "shortcuts" rather than the actual object of interest. For example, a model might correctly identify a "dog sled" only when snow is present, failing when the same object appears in a different context.

Identifying these failure modes is difficult because biased subgroups are typically unknown and unlabeled. Furthermore, most existing research assumes a model suffers from a single primary bias. In practice, a single category (e.g., "aquatic mammals") may contain multiple distinct failure modes (e.g., the model performs well on dolphins but fails on beavers). To address this, we present DIM (Decomposition, Interpretation, and Mitigation), a framework designed to discover and fix multiple hidden biases simultaneously.

The DIM Framework

DIM operates through a three-stage pipeline that transforms raw model behavior into actionable improvements.

1. Decomposition: Leveraging Training Dynamics

Instead of analyzing static image features alone, DIM utilizes training dynamics—the history of how a model’s loss, confidence (logits), and correctness evolve over time for each training sample. The core insight is that a model's "struggle" during training provides a supervisory signal for identifying subgroups.

DIM employs Partial Least Squares (PLS) to decompose latent image features into multiple components. Unlike unsupervised methods like PCA, PLS is guided by the training dynamics, allowing it to isolate feature directions that specifically correlate with the model's failure patterns. This allows the framework to "peel back the layers" of a classifier's performance to find multiple overlapping biases.

2. Interpretation: From Math to Natural Language

To make the abstract mathematical directions discovered by PLS human-understandable, DIM uses a retrieval-based interpretation strategy. The system queries a massive external database (LAION-5B) to find images and text metadata that align with the identified bias directions. These descriptions are then processed by a Large Language Model (ChatGPT) to generate natural language summaries. This step allows researchers to understand why a model is failing—for instance, identifying that a "balance beam" classifier is actually looking for "little kids playing" or "women's uneven bars."

3. Mitigation: Data-Centric and Model-Centric Strategies

Once biases are identified and interpreted, DIM offers two paths for improvement:

  • Data-centric Mitigation: The discovered bias directions are used to "scout" for more diverse examples of the underperforming subgroups in external datasets, effectively balancing the training set.
  • Model-centric Mitigation: DIM assigns "soft labels" to the training data, indicating the degree to which an image belongs to a biased subgroup. These labels guide the training process, forcing the model to prioritize learning from its weak spots rather than relying on easy shortcuts.

Experimental Results

The effectiveness of DIM was validated across three benchmarks: CIFAR-100, Breeds, and Hard ImageNet.

  • Subgroup Discovery: On CIFAR-100, where fine-grained classes are treated as hidden subgroups, DIM achieved a cosine similarity score of 22.97 in matching discovered subgroups to ground truth. This significantly outperformed previous state-of-the-art methods, which scored as low as 3.06.
  • Robustness Improvement: On the Breeds dataset, DIM improved the accuracy of the most-failed (worst-case) subgroups by 17.3% compared to standard training protocols.
  • Real-World Applicability: When applied to Hard ImageNet—a dataset specifically designed to contain strong spurious correlations—DIM successfully surfaced the implicit biases the model had relied upon, demonstrating its utility for understanding complex, in-the-wild failure modes.

Conclusion

DIM moves beyond the "single shortcut" assumption of previous work, providing a scalable way to discover and mitigate multiple biases in image classifiers. By treating a model's training history as a signal rather than noise, DIM enables the development of more robust and trustworthy AI systems. Future work will focus on automating the selection of the number of subgroups and reducing the computational overhead of the data-centric mitigation phase.

Summary updated

BibTeX
@inproceedings{zhang2024discover,
  author = {Zeliang Zhang and Mingqian Feng and Zhiheng Li and Chenliang Xu},
  title = {{Discover and Mitigate Multiple Biased Subgroups in Image Classifiers}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=0Sdsi1OtWM},
}
Figure