On Adversarial Removal of Hypothesis-only Bias in Natural Language Inference

Yonatan Belinkov, Adam Poliak, Stuart M. Shieber, Benjamin Van Durme, Alexander M. Rush

Introduction

Natural Language Inference (NLI) is a fundamental task in NLP where a model determines the logical relationship—entailment, contradiction, or neutral—between a "premise" and a "hypothesis." Ideally, a model must synthesize information from both sentences. However, research has shown that popular datasets like SNLI contain significant hypothesis-only biases. These are statistical artifacts where specific words in the hypothesis (e.g., "nobody" or "sleeping") correlate strongly with certain labels, allowing models to "cheat" by ignoring the premise entirely.

This paper investigates whether adversarial learning can force models to abandon these shortcuts and perform genuine inference.

Adversarial Strategies

The authors modify the standard InferSent model using two distinct adversarial strategies designed to decouple hypothesis features from the final label:

  1. AdvCls (Adversarial Classifier): This method introduces an auxiliary classifier that tries to predict the NLI label using only the hypothesis representation. A Gradient Reversal Layer (GRL) is used during training to encourage the sentence encoder to actively hinder this adversary while still supporting the main NLI task.
  2. AdvDat (Adversarial Training Data): This approach perturbs the training set by replacing the correct premise with a random one for a subset of examples. The model is penalized if it can still correctly predict the label for these mismatched pairs, as such a prediction would rely solely on hypothesis bias.

The Persistence of Bias

A critical finding of the study is that bias is remarkably "sticky." Even when the AdvCls method successfully reduces the accuracy of the active adversarial classifier, the underlying sentence representations often still harbor biased information.

Hidden biases remaining after AdvCls training. Even as the active adversary's accuracy ($c_{Hypoth}$) drops, a retrained classifier ($c_{Hypoth, retrained}$) can still extract significant bias from the encoder.

As illustrated in the figure above, while the primary adversary's performance declines with higher adversarial weights, a newly trained classifier on the same frozen encoder can still achieve high accuracy. This suggests that adversarial training may suppress the use of bias in a specific pathway without completely purging it from the encoder's representations. Furthermore, the authors found that even randomly initialized encoders can capture these biases because pre-trained word embeddings (like GloVe) already contain strong signal for "give-away" words.

The Accuracy-Robustness Trade-off

There is a clear tension between removing bias and maintaining high task performance. While both methods reduced reliance on indicator words, they impacted overall accuracy differently.

Accuracy trends for AdvCls (left) and AdvDat (right) across different hyperparameter settings. AdvDat shows a more pronounced drop in accuracy as the bias-removal constraint increases.
  • AdvCls Results: Maintained high accuracy (83.56% vs. 84.22% baseline) but was less effective at truly removing hidden biases.
  • AdvDat Results: Proved to be the "stronger medicine." While accuracy dropped more significantly to 78.30%, the model showed much greater resistance to shortcuts. For instance, the model's reliance on the word "sleeping" (which had an 88% correlation with contradiction in the baseline) was reduced by over 81%.

Conclusion

Adversarial training offers a promising but imperfect tool for mitigating dataset bias. The persistence of bias in representations and the significant performance trade-offs suggest that the community needs more sophisticated decoupling techniques and, crucially, better-constructed datasets that do not reward shortcut strategies in the first place.

Summary updated

BibTeX
@inproceedings{belinkov2019adversarial,
  author = {Yonatan Belinkov and Adam Poliak and Stuart M. Shieber and Benjamin Van Durme and Alexander M. Rush},
  title = {{On Adversarial Removal of Hypothesis-only Bias in Natural Language Inference}},
  booktitle = {SEM @ NAACL},
  year = {2019},
  doi = {10.18653/v1/s19-1028},
}
Figure