Introduction
Textual matching (TM) is a fundamental task in Natural Language Processing, underpinning applications from duplicate detection to information retrieval. While modern deep learning models achieve impressive performance on benchmarks like Quora Question Pairs (QQP), there is growing concern that these models might be relying on "shortcuts" rather than a deep semantic understanding of the text. This paper investigates one such shortcut: length divergence bias.
The Length Divergence Bias
The authors identify a pervasive statistical quirk in popular TM datasets: "negative" examples (non-matches) often exhibit a significantly higher difference in word count than "positive" examples (matches). If a model exploits this bias, it may classify a pair as a non-match simply because one sentence is much longer than the other, regardless of their actual content.
To quantify this, the researchers used a metric called relative length divergence ($\Delta_{rel}\mathcal{L}$) and categorized data into groups (CAT1 to CAT4) based on increasing divergence.
As seen in the QQP and Microblog datasets, the ratio of positive examples (PosRatio) tends to decrease as the length difference between the two texts increases. This creates a strong signal that models can "cheat" on during training.
Probing and Adversarial Evaluation
The study employed a multi-step approach to confirm and mitigate this bias:
- Adversarial Evaluation: The researchers created balanced test sets where the ratio of positive to negative examples remained constant across all levels of length divergence, effectively removing the shortcut.
- Probing Experiments: Using a SentLen probing task, they found that models like BiMPM and ESIM actively learn to extract length information into their internal embeddings during training because it helps minimize loss.
- Adversarial Training: To fix the issue, models were re-trained on balanced datasets, forcing them to ignore length and focus on semantic features.
Key Findings
- Performance Collapse: When the length heuristic was invalidated in adversarial sets, performance dropped in 14 out of 16 model-task combinations.
- Architecture Sensitivity: MatchPyramid, which uses CNNs over similarity matrices, was the most susceptible to this bias, showing the sharpest performance drops.
- BERT's Robustness: While BERT was more resilient due to its extensive pre-training, it still showed performance dips on adversarial sets, indicating that even state-of-the-art Transformers are not immune to dataset bias.
Results and Mitigation
The proposed adversarial training successfully improved model robustness. For instance, on the Microblog task, BiMPM's MAP score increased significantly after training on balanced data. This suggests that forcing models to look past surface-level statistics leads to the learning of more robust semantic features.
Conclusion
Length divergence is a significant shallow heuristic that can inflate the perceived performance of textual matching models. While adversarial training offers a viable mitigation strategy, future work must continue to explore other biases, such as word overlap or negation, to develop architectures that truly capture deep semantic relationships.
Summary updated