On Guaranteed Optimal Robust Explanations for NLP Models

Emanuele La Malfa, Agnieszka Zbrzezny, Rhiannon Michelmore, Nicola Paoletti, Marta Kwiatkowska
5/8/2021
cs.AIcs.CL

Official code: EmanueleLM/OREs (4 stars, Python, last commit 2021-05-22).

Abstract

We build on abduction-based explanations for ma-chine learning and develop a method for computing local explanations for neural network models in natural language processing (NLP). Our explanations comprise a subset of the words of the in-put text that satisfies two key features: optimality w.r.t. a user-defined cost function, such as the length of explanation, and robustness, in that they ensure prediction invariance for any bounded perturbation in the embedding space of the left out words.

Show full abstract

We present two solution algorithms, respectively based on implicit hitting sets and maximum universal subsets, introducing a number of algorithmic improvements to speed up convergence of hard instances. We show how our method can be con-figured with different perturbation sets in the em-bedded space and used to detect bias in predictions by enforcing include/exclude constraints on biased terms, as well as to enhance existing heuristic-based NLP explanation frameworks such as Anchors. We evaluate our framework on three widely used sentiment analysis tasks and texts of up to100words from SST, Twitter and IMDB datasets,demonstrating the effectiveness of the derived explanations.

View on arXivView PDF

Code Implementations(1)

EmanueleLM/OREsOfficial100%

Optimal Robust Explanations for NLP Models

40Python, ShellApr 30, 20215 years ago

Similar Papers

Cite this paper

@article{malfa2021guaranteed,
  title  = {On Guaranteed Optimal Robust Explanations for NLP Models},
  author = {Emanuele La Malfa and Agnieszka Zbrzezny and Rhiannon Michelmore and Nicola Paoletti and Marta Kwiatkowska},
  year   = {2021},
  eprint = {2105.03640},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.03640}
}

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

Discussion