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

ClusterFix: A Cluster-Based Debiasing Approach without Protected-Group Supervision

Giacomo Capitani, Federico Bolelli, Angelo Porrello, Simone Calderara, Elisa Ficarra

Introduction

Deep learning models are prone to latching onto spurious correlations—shortcuts in the data that allow for low training loss but fail to generalize to real-world scenarios. For instance, a model might identify a bird based on a watery background rather than the bird's actual features. ClusterFix is a novel debiasing framework designed to mitigate these shortcuts without requiring prior knowledge or explicit labels for protected groups. It achieves state-of-the-art performance, often rivaling methods that have access to full bias information.

The Challenge of Spurious Correlations

Machine learning models often follow the "Principle of Least Effort," minimizing training loss by finding the easiest patterns. If 95% of "waterbird" photos in a dataset feature a lake, the model learns to detect water. This results in high error rates on "critical" samples, such as a waterbird in a forest. Traditionally, researchers use "protected-group supervision" (e.g., labeling backgrounds) to fix this, but such labels are often unavailable due to privacy or cost. ClusterFix addresses the "Fairness without Demographics" challenge: training robust models when the marginalized groups are unknown.

The ClusterFix Framework

ClusterFix operates in two distinct stages to identify and protect minority groups without human-labeled bias categories.

Stage 1: Cluster Discovery

Instead of relying on potentially biased target labels, ClusterFix uses self-supervised learning (specifically Barlow Twins) to extract rich visual features. It then applies k-means clustering to these features to create "pseudo-labels." These clusters group images based on actual visual content, independent of the target task's biases.

Figure 5: ClusterFix groups data into clusters (k1, k2, k3) based on self-supervised features to identify underlying data distributions without bias labels.

Stage 2: Debiased Training

The model is trained simultaneously on the main classification task and a "cluster classification" task. The core innovation is a dynamic weighting scheme. The authors discovered that cluster classification error serves as an effective proxy for bias. If a model struggles to assign a sample to its correct cluster, that sample is likely "critical"—it deviates from the majority bias. ClusterFix automatically up-weights these difficult samples, forcing the model to learn robust features that generalize across all groups.

Experimental Evaluation

The authors evaluated ClusterFix on three standard benchmarks: CelebA (focusing on attributes like "Wearing Necklace"), Waterbirds, and Colored MNIST.

Figure 4: A typical majority-group sample (female with necklace) in the CelebA dataset, which standard models often classify with low loss by relying on gender bias.

Key Results

  • Worst-Group Accuracy Gains: On the CelebA "Wearing Necklace" task, standard Empirical Risk Minimization (ERM) achieved only 2.72% accuracy on the minority group (males with necklaces). ClusterFix boosted this to 55.56%.
  • State-of-the-Art Performance: Across 10 biased attributes in CelebA, ClusterFix reached an average worst-group accuracy of 76.80%, outperforming previous unsupervised methods like BPA (73.11%).
  • Robustness: On the Waterbirds dataset, ClusterFix achieved a worst-group accuracy of 74.03%, effectively ignoring misleading backgrounds.

Key Insights

  1. Error as a Signal: The difficulty of a pretext task (clustering) can identify samples prone to bias-related failures in the main task.
  2. Self-Supervision as a Shield: By using self-supervised features, the method avoids inheriting bias from target labels.
  3. Unsupervised Superiority: ClusterFix often outperformed Group DRO, which uses explicit bias labels, suggesting automated clustering can be more nuanced than human-defined categories.

Conclusion and Future Work

While ClusterFix is highly effective, it remains sensitive to the number of clusters ($K$) and requires careful hyperparameter tuning. Future research will explore its application in high-stakes domains like healthcare, where data biases can have significant real-world consequences.

Summary updated

BibTeX
@inproceedings{capitani2024clusterfix,
  author = {Giacomo Capitani and Federico Bolelli and Angelo Porrello and Simone Calderara and Elisa Ficarra},
  title = {{ClusterFix: A Cluster-Based Debiasing Approach without Protected-Group Supervision}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2024},
  doi = {10.1109/wacv57701.2024.00480},
}
Figure