Uncertainty Calibration for Ensemble-Based Debiasing Methods

Ruibin Xiong, Yimeng Chen, Liang Pang, Xueqi Cheng, Zhi-Ming Ma, Yanyan Lan

Machine learning models are notorious for taking "shortcuts." In Natural Language Inference (NLI), for example, a model might learn that high word overlap between two sentences usually means "entailment," even when the underlying logic does not hold up. This phenomenon is known as dataset bias.

To combat this, researchers frequently employ Ensemble-Based Debiasing (EBD). The standard EBD approach is a two-stage process: first, train a "bias-only" model that exclusively looks at biased features (like word overlap); second, train a "main" model by essentially subtracting the bias-only model's predictions from the learning target.

However, this paper identifies a critical oversight in existing EBD methods: while researchers focus heavily on how to combine these models, they largely ignore the quality of the bias-only model's uncertainty.

The Problem with Uncalibrated Bias Models

If a bias-only model is 99% sure about a bias that only holds true 70% of the time, it provides "bad advice" to the main model, actively hurting its ability to learn the true underlying principles. The bias-only model doesn't just need to be accurate; it needs to know when it is wrong.

Reliability diagram illustrating the calibration gap (ECE=9.83) for a bias-only model on the MNLI dataset.

An overconfident bias model forces the main model to ignore useful information, while an underconfident one fails to adequately remove the bias. This calibration issue is particularly vital in Natural Language Understanding (NLU) because language concepts (like "neutral" vs. "contradiction") are often inherently uncertain or disputed. The authors found that the lower the "certainty level" of a task, the more calibration matters.

MoCaD: A Three-Stage Framework

To address this, the authors propose a new three-stage framework called MoCaD (Modeling, Calibrating, and Debiasing):

  1. Bias Modeling: Train a bias-only model using known biased features (e.g., hypothesis-only features in NLI).
  2. Model Calibrating: Apply model-agnostic calibration techniques to ensure the bias-only model’s confidence scores actually match its true accuracy. The authors specifically test Temperature Scaling and Dirichlet Calibration.
  3. Debiasing: Train the main model using the calibrated bias-only model as a guide, utilizing standard ensembling strategies like Product-of-Experts (PoE) or Inverse-Reweighting.

The paper provides a mathematical proof demonstrating that debiasing performance is a monotonically decreasing function of the calibration error once that error passes a certain threshold.

Experimental Setup and Datasets

The researchers evaluated MoCaD across several domains:

  • Natural Language Inference (NLI): Trained on MNLI and evaluated on challenging out-of-distribution (OOD) sets like HANS (targeting syntactic bias), Hard-CD, and Hard-SP.
  • Fact Verification: Trained on FEVER and evaluated on Fever-Symmetric (v1 and v2), designed to break claim-only shortcuts.
  • Image Classification: Supplementary experiments on 9-Class ImageNet and ImageNet-A to test texture-based biases.

Key Results and Insights

The three-stage MoCaD framework consistently outperformed traditional two-stage methods across almost all benchmarks. While Temperature Scaling is simpler, Dirichlet calibration often performed better because it can adjust the accuracy of the bias model and possesses higher expressive power.

Performance comparison of various debiasing methods with and without calibration on MNLI.

Notable improvements include:

  • MNLI (HANS): Using Dirichlet calibration with a Product-of-Experts (PoE) strategy improved out-of-distribution accuracy from 68.1% to 70.7%.
  • FEVER (Symmetric v2): The same strategy improved accuracy from 65.9% to 69.1%.
  • Consistency Across Methods: MoCaD improved performance regardless of the underlying ensembling strategy (PoE, DRiFt, or Inverse-Reweighting).
  • In-Distribution vs. OOD: Calibration didn't just help with "hard" OOD examples; it also mitigated the common side-effect where debiasing typically degrades accuracy on the original (in-distribution) training set.

Limitations and Future Work

While highly effective for NLU, the improvements in image classification were less consistent. The authors suggest this is because image categories (e.g., "bird" vs. "elephant") have higher inherent certainty than linguistic concepts, making them less sensitive to calibration errors.

Furthermore, this work focuses on frameworks where the bias model is trained separately. Investigating how calibration affects jointly trained (end-to-end) debiasing models is a promising next step. Expanding the MoCaD philosophy to a wider variety of multi-modal or computer vision tasks remains an open area for future research.

Summary updated

BibTeX
@inproceedings{xiong2021uncertainty,
  author = {Ruibin Xiong and Yimeng Chen and Liang Pang and Xueqi Cheng and Zhi-Ming Ma and Yanyan Lan},
  title = {{Uncertainty Calibration for Ensemble-Based Debiasing Methods}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure