TL;DR
This paper introduces PECO, a novel method to automatically detect and quantify "single sentence label leakage" in Natural Language Inference (NLI) datasets. They demonstrate that even modern NLI datasets suffer from this bias, where models can predict the correct label from just one sentence, undermining their ability to truly reason.
What Problem Does This Paper Address?
Natural Language Inference (NLI) is a fundamental task in AI, aiming to determine the relationship (entailment, contradiction, or neutral) between two sentences. High-performing NLI models are crucial for advancing AI's reasoning capabilities. However, many NLI datasets suffer from a critical flaw called "single sentence label leakage." This means that a model, when given only one of the two sentences (either the premise or the hypothesis), can still accurately predict the correct label. This is problematic because it implies models are learning spurious correlations or "shortcuts" from the data, rather than genuine logical reasoning. The authors highlight that despite efforts to mitigate this bias in newer datasets, it persists, making it difficult to assess true NLI progress.
Methods
The core contribution is the Progressive Evaluation of Cluster Outliers (PECO) method. PECO works by:
- Embedding Elicited Sentences: Using models trained on the standard paired-sentence condition (PSC), they extract latent representations (embeddings) of sentences from the elicited population (the ones that might contain leakage).
- Clustering Embeddings: These embeddings are then clustered (using k-means) to group similar sentences.
- Analyzing Cluster Divergences: For each cluster, they compare the distribution of labels within that cluster to the global label distribution of the entire dataset. A significant divergence suggests that a particular cluster is disproportionately associated with certain labels, indicating potential leakage.
- Computing PECO Score: The PECO score quantifies this bias by measuring the area under a curve that plots the number of clusters with divergence above a certain threshold. A higher PECO score indicates more significant leakage.
They also introduce metrics like SSC-PSC Agreement (NBA) and SSC-PSC Recovery (NBR) to compare model behavior across single-sentence and paired-sentence conditions, and Token Relevance Agreement (TRA) to assess if models "reason" similarly in both conditions.
Datasets
The paper evaluates their method on several NLI datasets, including:
- SNLI: Stanford Natural Language Inference
- MNLI: Multi-Genre Natural Language Inference (including matched and unmatched test sets)
- XNLI: Cross-Lingual NLI
- FEVER: Fact Extraction and VERification (repurposed for NLI)
- ANLI: Adversarial NLI (with partitions A1, A2, A3)
- OCNLI: Original Chinese NLI
- CAugNLI: Counterfactually Augmented NLI
- SNLIdebiased
- MNLIdebiased
They also compare their findings to previous work using datasets like SICK.
Key Insights and Ideas
- Leakage is Pervasive: Even modern NLI datasets, including those specifically designed to address bias (like SNLIdebiased and MNLIdebiased), still exhibit significant single-sentence label leakage.
- Models Cheat: Models trained on these biased datasets can achieve high accuracy in single-sentence conditions by exploiting these shortcuts, rather than by truly understanding the logical relationship. This is evidenced by the strong correlation between SSC accuracy and metrics like SSC-PSC Agreement.
- PECO is a Powerful Diagnostic Tool: The PECO method effectively identifies and quantifies leakage, providing a more objective measure than manual inspection or simpler heuristics. The visualization of biased clusters in latent space offers a clear way to "debug" datasets.
- Semantic Leakage: The cross-lingual XNLI dataset suggests that leakage isn't just about surface-level word correlations but can also involve deeper semantic patterns.
- Orthogonal Bias: PECO's "biasedness" metric is orthogonal to sample-level learnability (confidence scores), meaning some samples are easy to learn due to genuine understanding, while others are easy due to cheating features.
Key Results
- High SSC Accuracy Across Datasets: Table 3 shows that for many datasets, single-sentence condition (SSC) accuracy is significantly higher than chance, indicating substantial leakage. For example, SNLI has an SSC accuracy of 71.6% (over chance).
- PECO Correlates with Leakage: Figure 7 shows a positive correlation (PCC of 0.64) between the PECO score and bias recovery (%RR), suggesting that lower PECO scores correspond to less leakage.
- Model Agreement Indicates Bias: Figure 5 shows a positive correlation (PCC of 0.69) between SSC-PSC model output agreement (NBA) and bias recovery (%RR), implying that when models behave similarly in both conditions, it's often due to exploiting leakage.
- Token Relevance Agreement (TRA) Correlation: TRA is positively correlated with SSC accuracy (PCC of 0.57, Figure 6), indicating that similar "reasoning" patterns between PSC and SSC models are linked to higher leakage.
Limitations and Future Work
- Reliance on Test-Set Classification: PECO's analysis is primarily based on test-set performance. For datasets that are train-set only, they had to generate their own splits, which might introduce variability.
- Cost of Analysis: Analyzing bias using PECO requires costly multi-fold splitting and analysis, especially for interventions.
- Future Work: The authors suggest prioritizing observable bias reduction using model-driven approaches. They envision PECO-like analyses guiding future interventions to create higher-quality, less biased NLI benchmarks. They also propose that PECO can be applied to analyze other types of potential leakage features beyond simple sentence correlations.
Summary updated