Enhancing adversarial robustness in Natural Language Inference using explanations

Alexandros Koulakos, Maria Lymperaiou, Giorgos Filandrianos, Giorgos Stamou
9/11/2024
cs.CL

No official code found. Best implementation: alexkoulakos/explain-then-predict (9 stars, MIT, last commit 2024-11-18).

Abstract

The surge of state-of-the-art Transformer-based models has undoubtedly pushed the limits of NLP model performance, excelling in a variety of tasks. We cast the spotlight on the underexplored task of Natural Language Inference (NLI), since models trained on popular well-suited datasets are susceptible to adversarial attacks, allowing subtle input interventions to mislead the model. In this work, we validate the usage of natural language explanation as a model-agnostic defence strategy through extensive experimentation: only by fine-tuning a classifier on the explanation rather than premise-hypothesis inputs, robustness under various adversarial attacks is achieved in comparison to explanation-free baselines. Moreover, since there is no standard strategy of testing the semantic validity of the generated explanations, we research the correlation of widely used language generation metrics with human perception, in order for them to serve as a proxy towards robust NLI models. Our approach is resource-efficient and reproducible without significant computational limitations.

View on arXivView PDF

Code Implementations(1)

MIT

Source code for the BlackBoxNLP 2024 @ EMNLP paper "Enhancing adversarial robustness in Natural Language Inference using explanations"

90PythonOct 29, 20241 years agoMIT
adversarial-attacksblackboxnlpcounterfactualsexplainable-aigenerative-ai+2 more

Similar Papers

Cite this paper

@article{koulakos2024enhancing,
  title  = {Enhancing adversarial robustness in Natural Language Inference using explanations},
  author = {Alexandros Koulakos and Maria Lymperaiou and Giorgos Filandrianos and Giorgos Stamou},
  year   = {2024},
  eprint = {2409.07423},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.07423v2}
}

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

Discussion