Abstract
While modern Natural Language Inference (NLI) models achieve high accuracy on standard benchmarks, these metrics often mask underlying vulnerabilities. This paper presents a behavioral analysis of NLI models, moving beyond aggregate scores to examine how specific linguistic factors—insensitivity to semantic shifts, statistical polarity biases, and the presence of unseen word pairs—impact model robustness. Through controlled input transformations, we reveal that models often exploit dataset biases rather than learning robust logical reasoning.
Introduction
Natural Language Inference (NLI) requires determining the logical relationship (entailment, contradiction, or neutral) between a premise and a hypothesis. Despite the success of deep learning architectures on datasets like the Stanford NLI (SNLI), there is growing concern that these models "game" benchmarks by picking up on spurious correlations. This research investigates the "why" behind model performance, identifying three factors that compromise robustness: semantic insensitivity, polarity bias, and poor generalization to unseen vocabulary.
Methodology
The researchers utilize a "Behavior Analysis" framework, treating models as subjects and measuring their responses to controlled stimuli. The primary technique involves a transformation ($T$) where specific word pairs (e.g., antonyms or hypernyms) are swapped between the premise and hypothesis.
Three architectures were evaluated:
- Conditional Encoder (CE): A baseline bidirectional LSTM.
- Decomposable Attention Model (DAM): An alignment-focused model.
- Enhanced Sequential Information Model (ESIM): A complex architecture utilizing local inference modeling.
Experiments were conducted in situ (within original SNLI sentences) and ex situ (within simplified, context-free templates) to isolate the impact of word-level changes from broader contextual cues.
Key Factors Influencing Robustness
1. Semantic Insensitivity
Models frequently exhibit "lazy" behavior, maintaining the original label even when a transformation fundamentally alters the logical relationship. This suggests a reliance on sentence structure over specific lexical meaning.
2. Polarity Bias
Statistical biases in training data, where certain word pairs are strongly associated with specific labels (e.g., "hot/cold" with contradiction), act as a crutch. Models often default to these biased predictions regardless of the actual context.
3. Generalization to Unseen Word Pairs
While models leverage pre-trained embeddings to handle hierarchical relations (hypernyms), they struggle with symmetric relations like antonyms when the specific word pairs were not seen during training.
Experimental Results
The behavioral analysis revealed significant performance gaps. While DAM and ESIM generally outperformed the baseline CE, all models suffered substantial accuracy drops when transformations changed the ground-truth label or challenged polarity biases.
In cases where transformations changed the gold label (Subset 1), model performance often fell below random chance, confirming a deep-seated insensitivity to semantic shifts. Furthermore, ex situ tests showed that stripping context forces models to rely even more heavily on word-pair biases (polarity).
Conclusion
This study highlights that high benchmark accuracy does not equate to linguistic robustness. NLI models remain susceptible to statistical shortcuts and semantic insensitivity. Future work should focus on developing training objectives that penalize reliance on polarity biases and encourage more granular semantic processing. Applying these behavioral probes to modern transformer-based models remains a critical next step for the field.
Summary updated