TASA: Deceiving Question Answering Models by Twin Answer Sentences Attack

Yu Cao, Dianqi Li, Meng Fang, Tianyi Zhou, Jun Gao +2 more
10/27/2022
cs.CLcs.AI

Official code: caoyu-noob/TASA (1 star, Python, last commit 2024-06-24).

Abstract

We present Twin Answer Sentences Attack (TASA), an adversarial attack method for question answering (QA) models that produces fluent and grammatical adversarial contexts while maintaining gold answers. Despite phenomenal progress on general adversarial attacks, few works have investigated the vulnerability and attack specifically for QA models.

Show full abstract

In this work, we first explore the biases in the existing models and discover that they mainly rely on keyword matching between the question and context, and ignore the relevant contextual relations for answer prediction. Based on two biases above, TASA attacks the target model in two folds: (1) lowering the model's confidence on the gold answer with a perturbed answer sentence; (2) misguiding the model towards a wrong answer with a distracting answer sentence. Equipped with designed beam search and filtering methods, TASA can generate more effective attacks than existing textual attack methods while sustaining the quality of contexts, in extensive experiments on five QA datasets and human evaluations.

View on arXivView PDF

Code Implementations(1)

caoyu-noob/TASAOfficial100%

The implementation for EMNLP 2022 paper TASA

11Python, JsonnetMay 30, 20212 years ago

Similar Papers

Cite this paper

@article{cao2022tasa,
  title  = {TASA: Deceiving Question Answering Models by Twin Answer Sentences Attack},
  author = {Yu Cao and Dianqi Li and Meng Fang and Tianyi Zhou and Jun Gao and Yibing Zhan and Dacheng Tao},
  year   = {2022},
  eprint = {2210.15221},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.15221}
}

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

Discussion