Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inference

R. Thomas McCoy, Ellie Pavlick, Tal Linzen
2/4/2019
cs.CL

Official code: tommccoy1/hans (132 stars, MIT, last commit 2021-01-27).

Abstract

A machine learning system can score well on a given test set by relying on heuristics that are effective for frequent example types but break down in more challenging cases. We study this issue within natural language inference (NLI), the task of determining whether one sentence entails another. We hypothesize that statistical NLI models may adopt three fallible syntactic heuristics: the lexical overlap heuristic, the subsequence heuristic, and the constituent heuristic. To determine whether models have adopted these heuristics, we introduce a controlled evaluation set called HANS (Heuristic Analysis for NLI Systems), which contains many examples where the heuristics fail. We find that models trained on MNLI, including BERT, a state-of-the-art model, perform very poorly on HANS, suggesting that they have indeed adopted these heuristics. We conclude that there is substantial room for improvement in NLI systems, and that the HANS dataset can motivate and measure progress in this area

View on arXivView PDF

Code Implementations(1)

tommccoy1/hansOfficial100%
MIT

Heuristic Analysis for NLI Systems

13213PythonFeb 3, 20195 years agoMIT

Similar Papers

Cite this paper

@article{mccoy2019right,
  title  = {Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inference},
  author = {R. Thomas McCoy and Ellie Pavlick and Tal Linzen},
  year   = {2019},
  eprint = {1902.01007},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1902.01007}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1902.01007.svg)](https://codeofpaper.com/paper/1902.01007)

Discussion