NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Let Samples Speak: Mitigating Spurious Correlation by Exploiting the Clusterness of Samples

Weiwei Li, Junzhuo Liu, Yuanyuan Ren, Yuchen Zheng, Yahao Liu, Wen Li · DOI

Introduction

Deep Neural Networks (DNNs) are often described as "lazy learners." Instead of identifying the core features of a class, they frequently latch onto "shortcuts"—spurious correlations between irrelevant attributes and target labels. A classic example is a model that identifies a "waterbird" primarily by its aquatic background rather than the bird's physical characteristics. When such a model encounters a "bias-conflicting" sample, such as a waterbird on dry land, it inevitably fails.

Traditional methods for mitigating these biases typically require human-annotated labels for the spurious attributes (e.g., explicitly labeling the background of every image). This is not only expensive but often impossible for large-scale or complex datasets. This paper introduces Neutralizing Spurious Features (NSF), a data-oriented, task-independent framework that automatically identifies and neutralizes these biases by exploiting the geometric properties of the model's own feature space.

The NSF Framework

The NSF method operates on the principle that spurious features create predictable patterns in high-dimensional space. The pipeline consists of four distinct steps:

  1. Identifying Bias Presence: The authors observe a "clusterness" property: in a biased model, samples that follow the spurious correlation (the majority) cluster tightly around a biased centroid. Conversely, minority samples that break the rule appear as detectable outliers. By measuring the relative distance of samples to class centroids, NSF flags these minority samples without needing manual labels.
  2. Neutralizing for Bias-Invariant Features: Once the majority and minority groups are identified, the method estimates the "true" (unbiased) mean of the data by balancing the contributions of both groups.
  3. Eliminating Spurious Features: The method learns a linear feature transformation, $t(x)$, designed to shift all samples toward the estimated unbiased mean. This process effectively "squashes" the dimensions of the feature space that represent the bias while preserving the core features necessary for classification.
  4. Updating the Classifier: Finally, the model's classification head is fine-tuned using these transformed, bias-invariant features and a balanced sampling strategy.

Experimental Evaluation

The researchers evaluated NSF across five diverse benchmarks spanning Computer Vision, Natural Language Processing, and Medical Imaging:

  • Waterbirds & CelebA: Standard vision benchmarks where background or gender act as spurious cues.
  • MultiNLI & CivilComments-WILDS: NLP tasks where negation words or demographic mentions can trick models.
  • CheXpert: A medical imaging dataset (chest X-rays) where the presence of medical devices (like pacemakers) can lead to biased diagnoses.

Key Results

  • Significant Accuracy Gains: NSF achieved a 20% average improvement in Worst Group Accuracy (WGA) compared to standard Empirical Risk Minimization (ERM).
  • Competitive with Supervised Methods: Remarkably, NSF often performed on par with or better than methods like GroupDRO and DFR, which require manual bias labels. For instance, on the Waterbirds dataset, NSF reached 91.12% WGA, nearly matching the 92.90% achieved by the best label-reliant baseline.
  • Safety-Critical Impact: On the CheXpert medical dataset, NSF improved WGA by 40% over the baseline. This demonstrates the method's potential to prevent models from using dangerous shortcuts, such as diagnosing heart disease based on the presence of a pacemaker artifact.
  • Efficiency: Unlike methods that require retraining from scratch, NSF is a post-processing and fine-tuning step. It can "fix" a pre-trained biased model in just a few minutes.

Insights and Limitations

The core contribution of this work is the realization that spurious features are not merely noise; they possess a distinct geometric signature. By utilizing the model's own biased internal representations, NSF can find the samples the model is struggling with. This relies on the Strong Spurious Assumption—the idea that a model only becomes biased if the spurious feature is significantly easier to learn or more prevalent than the core feature.

While highly effective, the method's reliance on this assumption means it may struggle if a bias is very subtle or "weak," as it might not produce the distinct clustering patterns required for identification. Future research may explore how these "clusterness" insights apply to larger architectures like Vision Transformers (ViTs) and Large Language Models (LLMs) in more open-ended environments.

Summary updated

BibTeX
@inproceedings{li2025let,
  author = {Weiwei Li and Junzhuo Liu and Yuanyuan Ren and Yuchen Zheng and Yahao Liu and Wen Li},
  title = {{Let Samples Speak: Mitigating Spurious Correlation by Exploiting the Clusterness of Samples}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01443},
}
Figure