Logical Reasoning with Span-Level Predictions for Interpretable and Robust NLI Models

Joe Stacey, Pasquale Minervini, Haim Dubossarsky, Marek Rei
5/23/2022
cs.CLcs.LG

Official code: joestacey/snli_logic (1 star, Python, last commit 2023-11-22).

Abstract

Current Natural Language Inference (NLI) models achieve impressive results, sometimes outperforming humans when evaluating on in-distribution test sets. However, as these models are known to learn from annotation artefacts and dataset biases, it is unclear to what extent the models are learning the task of NLI instead of learning from shallow heuristics in their training data.

Show full abstract

We address this issue by introducing a logical reasoning framework for NLI, creating highly transparent model decisions that are based on logical rules. Unlike prior work, we show that improved interpretability can be achieved without decreasing the predictive accuracy. We almost fully retain performance on SNLI, while also identifying the exact hypothesis spans that are responsible for each model prediction. Using the e-SNLI human explanations, we verify that our model makes sensible decisions at a span level, despite not using any span labels during training. We can further improve model performance and span-level decisions by using the e-SNLI explanations during training. Finally, our model is more robust in a reduced data setting. When training with only 1,000 examples, out-of-distribution performance improves on the MNLI matched and mismatched validation sets by 13% and 16% relative to the baseline. Training with fewer observations yields further improvements, both in-distribution and out-of-distribution.

View on arXivView PDF

Code Implementations(1)

10Python, ShellOct 13, 20223 years ago

Similar Papers

Cite this paper

@article{stacey2022logical,
  title  = {Logical Reasoning with Span-Level Predictions for Interpretable and Robust NLI Models},
  author = {Joe Stacey and Pasquale Minervini and Haim Dubossarsky and Marek Rei},
  year   = {2022},
  eprint = {2205.11432},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.11432}
}

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/2205.11432.svg)](https://codeofpaper.com/paper/2205.11432)

Discussion