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

Combating Unknown Bias with Effective Bias-Conflicting Scoring and Gradient Alignment

Bowen Zhao, Chen Chen, Qian-Wei Wang, Anfeng He, Shutao Xia

Introduction

Deep Neural Networks (DNNs) are highly efficient at identifying patterns, but they often prioritize the "path of least resistance." When a dataset contains spurious correlations—such as a specific background color consistently appearing with a certain object class—models frequently learn these "shortcuts" rather than the intrinsic features of the target. These are known as bias-aligned samples. Conversely, bias-conflicting samples (e.g., an object appearing without its usual shortcut) are often ignored or eventually memorized as noise.

In real-world applications, the specific nature of these biases is often unknown beforehand. This paper introduces a robust two-stage framework designed to identify and mitigate unknown biases by combining an effective scoring mechanism with a dynamic gradient alignment strategy.

The Challenge of Unknown Bias

Existing debiasing methods face two primary hurdles:

  1. Identification Difficulty: As training progresses, models eventually "memorize" even the samples that defy shortcuts. This causes the loss function to treat bias-conflicting samples similarly to bias-aligned ones, making them difficult to distinguish.
  2. Suboptimal Mitigation: Static reweighting schemes often fail to account for the evolving focus of a model during training. If the total gradient contribution of biased samples remains dominant, the model will continue to rely on shortcuts.

Proposed Framework

Stage I: Effective Bias-Conflicting Scoring (ECS)

To accurately identify samples that do not follow the dataset's shortcuts, the authors propose Effective Bias-Conflicting Scoring (ECS). This stage relies on two key mechanisms:

  • Peer-Picking with Gradient Ascent: The framework trains two auxiliary biased models simultaneously. Updates are only performed when both models are confident in a sample. Crucially, if one model is confident while the other is not, the system employs gradient ascent. This forces the models to "forget" those samples, preventing the auxiliary models from memorizing conflicting data and ensuring they remain sensitive to the underlying bias.
  • Epoch-Ensemble: To ensure the stability of the scores, the authors average the identification scores over multiple epochs rather than relying on a single snapshot in time.

Stage II: Gradient Alignment (GA)

Once samples are scored, the model must learn to prioritize the intrinsic features found in bias-conflicting samples. The authors introduce Gradient Alignment (GA) to manage this:

  • The Gradient Barometer: The system monitors the ratio of gradient norms between aligned and conflicting samples. This acts as a real-time indicator of whether the model is being overwhelmed by biased data.
  • Dynamic Balancing: GA adaptively rescales the weights of bias-aligned samples in every iteration. The goal is to ensure their total gradient contribution matches that of the rarer bias-conflicting samples. This forces the model to ignore shortcuts and focus on the features that generalize across all samples.

Experimental Evaluation

The researchers evaluated the ECS+GA framework on five major benchmarks, including Colored MNIST, Corrupted CIFAR-10, Biased Waterbirds, and Biased CelebA.

Key Results

The proposed method consistently outperformed existing state-of-the-art (SOTA) methods:

  • Extreme Bias: On the C-CIFAR10 dataset (99.5% bias), a vanilla model achieves only 17.4% accuracy. ECS+GA reached 41.8%, significantly outperforming previous methods like Learning from Failure (LfF), which reached 33.4%.
  • Real-world Performance: On the Biased CelebA dataset, ECS+GA achieved 89.5% unbiased accuracy, compared to the vanilla baseline of 77.4%.
  • Fairness: The method showed superior results in fairness metrics, such as Demographic Parity and Equalized Odds, nearly reaching a perfect score (0.99) on the Waterbirds dataset.

Discussion and Insights

One of the most significant contributions of this work is the use of gradients as a barometer. By detecting when the model is ignoring hard cases via gradient norm ratios, the framework can adjust its learning strategy dynamically. Furthermore, the inclusion of "forgetting" (via gradient ascent) proves that preventing a model from becoming "too smart" about the wrong things is just as important as the learning process itself.

Unlike many debiasing methods that require precise early-stopping to prevent the model from eventually learning the bias, the dynamic balance maintained by GA allows the model to remain stable even throughout extended training periods.

Limitations and Future Work

While effective, the method introduces computational overhead by requiring the training of two auxiliary models in Stage I. Additionally, the current implementation uses a binary threshold to categorize samples as either aligned or conflicting. Future research may explore "soft" assignments that utilize continuous ECS scores directly within the gradient alignment process to further refine the debiasing effect.

Summary updated

BibTeX
@inproceedings{zhao2023combating,
  author = {Bowen Zhao and Chen Chen and Qian-Wei Wang and Anfeng He and Shutao Xia},
  title = {{Combating Unknown Bias with Effective Bias-Conflicting Scoring and Gradient Alignment}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i3.25466},
}
Figure