Abstract
Natural language inference (NLI) aims at predicting the relationship between a given pair of premise and hypothesis. However, several works have found that there widely exists a bias pattern called annotation artifacts in NLI datasets, making it possible to identify the label only by looking at the hypothesis. This irregularity makes the evaluation results over-estimated and affects models' generalization ability. In this paper, we consider a more trust-worthy setting, i.e., cross-dataset evaluation. We explore the impacts of annotation artifacts in cross-dataset testing. Furthermore, we propose a training framework to mitigate the impacts of the bias pattern. Experimental results demonstrate that our methods can alleviate the negative effect of the artifacts and improve the generalization ability of models.
Introduction
Natural Language Inference (NLI) is a fundamental task in natural language processing where a model determines if a hypothesis is entailed by, contradicts, or is neutral with respect to a given premise. While modern deep learning models have achieved high performance on benchmarks like SNLI (Stanford Natural Language Inference) and MultiNLI, recent research suggests these scores may be inflated.
Large-scale NLI datasets are often constructed via crowdsourcing, which introduces unintentional "annotation artifacts." For example, human annotators frequently use negation words (e.g., "no", "never") for contradictions or add specific descriptive details for neutral labels. Models can "cheat" by learning these hypothesis-only patterns rather than understanding the semantic relationship between the premise and hypothesis. This reliance on shortcuts leads to poor generalization when models encounter real-world data or different datasets where these specific biases do not exist.
Methodology: Artifact-balanced Learning
To address this, the authors propose a framework called Artifact-balanced Learning. The core idea is to re-weight training samples so that the model is forced to focus on the interaction between the premise and hypothesis rather than relying on artifacts.
1. Estimating Bias
First, a "hypothesis-only" model (using a BERT architecture) is trained to estimate $P(y|h)$—the probability of a label $y$ given only the hypothesis $h$. A high $P(y|h)$ indicates that the sample contains strong artifacts that make the label easily guessable.
2. Sample Re-weighting
During the training of the full NLI model, each sample is assigned a weight $w$ calculated as: $$w = \frac{1}{(1-\epsilon)P(y|h) + \epsilon}$$ In this formula, samples that are easy to guess from the hypothesis alone receive lower weights, while harder samples (where the hypothesis is less predictive) receive higher weights.
3. Smoothing
The parameter $\epsilon$ serves as a smoothing term. It prevents weights from becoming excessively large when $P(y|h)$ is very small, ensuring stable training and robustness even if the bias estimation is imperfect.
Experimental Setup
The study utilizes the Densely Interactive Inference Network (DIIN) as the base NLI architecture. Training is conducted on the SNLI and MultiNLI datasets. To test generalization, the authors use "cross-dataset" evaluation on SICK (Sentences Involving Compositional Knowledge) and JOCI (Joint Online Commonsense Inference).
Furthermore, the authors evaluate performance on "Hard" vs. "Easy" splits of the original test sets. The "Easy" split consists of samples correctly predicted by a hypothesis-only model, while the "Hard" split requires genuine premise-hypothesis reasoning.
Results and Discussion
The experimental results, detailed in Table 1, demonstrate that the Artifact-balanced Learning framework (labeled "Norm" in the table) significantly improves model robustness and generalization.
Improved Generalization
The most striking results appear in the JOCI dataset. For models trained on MultiNLI, the baseline performance was 41.18%. By applying the debiasing framework with optimal smoothing (0.020), performance rose to 48.59%. This suggests that while artifacts in MultiNLI might be misleading for JOCI, the debiased model learned more generalizable semantic features.
Performance on Hard Samples
On the "Hard" subsets, which are the true test of NLI capability, the debiased models consistently outperformed the baselines. For the SNLI dataset, the debiased model achieved 75.38% accuracy on the Hard split, compared to the baseline's 73.81%. This improvement confirms that down-weighting easy samples forces the model to learn the complex relationships it previously ignored.
The Trade-off
While the method improves generalization and "Hard" set performance, there is often a slight drop in accuracy on "Easy" samples. This indicates that the baseline models were indeed relying on dataset-specific shortcuts to achieve their high scores on those samples. By neutralizing the hypothesis-only bias—bringing hypothesis-only accuracy down to near-random levels—the model becomes a more faithful representation of true natural language understanding.
Conclusion
This work highlights the dangers of relying on benchmark scores in the presence of annotation artifacts. By implementing a simple re-weighting strategy based on hypothesis-only predictability, researchers can mitigate the impact of these biases. The resulting models are more robust, generalize better to unseen datasets, and provide a more accurate measure of progress in the field of Natural Language Inference.
Summary updated