SLIM: Spuriousness Mitigation with Minimal Human Annotations

Xiwei Xuan, Ziquan Deng, Hsuan-Tien Lin, Kwan-Liu Ma

Abstract

Recent studies highlight that deep learning models often learn spurious features mistakenly linked to labels, compromising their reliability in real-world scenarios where such correlations do not hold. Despite the increasing research effort, existing solutions often face two main challenges: they either demand substantial annotations of spurious attributes, or they yield less competitive outcomes with expensive training when additional annotations are absent. In this paper, we introduce SLIM, a cost-effective and performance-targeted approach to reducing spurious correlations in deep learning. Our method leverages a human-in-the-loop protocol featuring a novel attention labeling mechanism with a constructed attention representation space. SLIM significantly reduces the need for exhaustive additional labeling, requiring human input for fewer than 3% of instances. By prioritizing data quality over complicated training strategies, SLIM curates a smaller yet more feature-balanced data subset, fostering the development of spuriousness-robust models. Experimental validations across key benchmarks demonstrate that SLIM competes with or exceeds the performance of leading methods while significantly reducing costs.

Introduction

Deep learning models are notorious for taking "shortcuts" by relying on spurious correlations—irrelevant environmental features that happen to co-occur with labels in the training set. For instance, in skin cancer detection (ISIC dataset), a model might learn to identify colorful medical patches rather than the lesion itself. When deployed in environments where these correlations do not exist, model performance typically collapses.

Figure 1: Examples of spurious correlations in the ISIC dataset. The model often focuses on medical patches (a) instead of the lesion to predict 'Benign', illustrating the 'right for the wrong reasons' problem.

Current mitigation strategies generally suffer from high human annotation costs or excessive computational overhead. SLIM (Spuriousness Mitigation) addresses these challenges by providing a human-efficient, performance-oriented framework.

Methodology

The SLIM framework employs a three-phase pipeline to curate a high-quality, balanced data subset for robust retraining:

  1. Attention Space Construction: SLIM builds a 2D representation space using UMAP, integrating both raw data features and model attention (via GradCAM). This ensures that images where the model "looks" at similar features are clustered together.
  2. Attention Annotation and Expansion: Leveraging the local consistency of the attention space, SLIM samples representative images from clusters. Humans provide binary feedback on whether the model's attention is correct. These labels are then propagated to neighboring images in the latent space.
  3. Balanced Data Curation: The system disentangles "core features" from "environment features" and performs consistency-weighted sampling. This creates a small, perfectly balanced dataset where core features are represented across diverse environments.

The final model is then retrained using Empirical Risk Minimization (ERM) or Deep Feature Reweighting (DFR) on this curated subset.

Experimental Evaluation

SLIM was evaluated on five major benchmarks: Waterbirds, CelebA, ISIC, NICO, and ImageNet-9.

Key Results

  • Superior Robustness: SLIM achieved state-of-the-art worst-group accuracy on Waterbirds (91.0%) and ISIC (79.1%).
  • Efficiency: The framework requires human annotation for fewer than 3% of instances. For CelebA, only 200 annotations were needed from the entire training set.
  • Computational Savings: The curated training subsets are often only 10-20% of the original size, making the additional training cost negligible compared to iterative methods like JTT or CNC.

Discussion and Conclusion

SLIM demonstrates that prioritizing data quality over training complexity is a highly effective strategy for mitigating spuriousness. By identifying that attention is locally consistent in a weighted latent space, SLIM enables massive savings in human labor. While the method depends on an initial reference model and requires some hyperparameter tuning for cluster sampling, it presents a promising path for developing reliable models efficiently. Future work will explore extending this "attention space" concept to non-vision tasks like Natural Language Processing.

Code available at: https://github.com/xiweix/SLIM.git/

Summary updated

BibTeX
@inproceedings{xuan2024slim,
  author = {Xiwei Xuan and Ziquan Deng and Hsuan-Tien Lin and Kwan-Liu Ma},
  title = {{SLIM: Spuriousness Mitigation with Minimal Human Annotations}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  url = {https://openreview.net/forum?id=PNDFbUM08X},
}
Figure