Deceiving Question-Answering Models: A Hybrid Word-Level Adversarial Approach

Jiyao Li, Mingze Ni, Yongshun Gong, Wei Liu
11/12/2024
2 citations
cs.CLcs.AIcs.LG

Official code: UTSJiyaoLi/QA-Attack (5 stars, Python, last commit 2024-11-12).

Abstract

Deep learning underpins most of the currently advanced natural language processing (NLP) tasks such as textual classification, neural machine translation (NMT), abstractive summarization and question-answering (QA). However, the robustness of the models, particularly QA models, against adversarial attacks is a critical concern that remains insufficiently explored.

Show full abstract

This paper introduces QA-Attack (Question Answering Attack), a novel word-level adversarial strategy that fools QA models. Our attention-based attack exploits the customized attention mechanism and deletion ranking strategy to identify and target specific words within contextual passages. It creates deceptive inputs by carefully choosing and substituting synonyms, preserving grammatical integrity while misleading the model to produce incorrect responses. Our approach demonstrates versatility across various question types, particularly when dealing with extensive long textual inputs. Extensive experiments on multiple benchmark datasets demonstrate that QA-Attack successfully deceives baseline QA models and surpasses existing adversarial techniques regarding success rate, semantics changes, BLEU score, fluency and grammar error rate.

View on arXivView PDF

Code Implementations(1)

50PythonAug 14, 20242 years ago

Similar Papers

Cite this paper

@article{li2024deceiving,
  title  = {Deceiving Question-Answering Models: A Hybrid Word-Level Adversarial Approach},
  author = {Jiyao Li and Mingze Ni and Yongshun Gong and Wei Liu},
  year   = {2024},
  eprint = {2411.08248},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.08248v1}
}

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

Discussion