TextHoaxer: Budgeted Hard-Label Adversarial Attacks on Text
Abstract
This paper focuses on a newly challenging setting in hard-label adversarial attacks on text data by taking the budget information into account. Although existing approaches can successfully generate adversarial examples in the hard-label setting, they follow an ideal assumption that the victim model does not restrict the number of queries. However, in real-world applications the query budget is usually tight or limited. Moreover, existing hard-label adversarial attack techniques use the genetic algorithm to optimize discrete text data by maintaining a number of adversarial candidates during optimization, which can lead to the problem of generating low-quality adversarial examples in the tight-budget setting. To solve this problem, in this paper, we propose a new method named TextHoaxer by formulating the budgeted hard-label adversarial attack task on text data as a gradient-based optimization problem of perturbation matrix in the continuous word embedding space. Compared with the genetic algorithm-based optimization, our solution only uses a single initialized adversarial example as the adversarial candidate for optimization, which significantly reduces the number of queries. The optimization is guided by a new objective function consisting of three terms, i.e., semantic similarity term, pair-wise perturbation constraint, and sparsity constraint. Semantic similarity term and pair-wise perturbation constraint can ensure the high semantic similarity of adversarial examples from both comprehensive text-level and individual word-level, while the sparsity constraint explicitly restricts the number of perturbed words, which is also helpful for enhancing the quality of generated text. We conduct extensive experiments on eight text datasets against three representative natural language models, and experimental results show that TextHoaxer can generate high-quality adversarial examples with higher semantic similarity and lower perturbation rate under the tight-budget setting.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- VQAttack: Transferable Adversarial Attacks on Visual Question Answering via Pre-trained Models cites TextBugger: Generating Adversarial Text Against Real-world Applications
- VQAttack: Transferable Adversarial Attacks on Visual Question Answering via Pre-trained Models cites Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment
- TextBugger: Generating Adversarial Text Against Real-world Applications cites Towards Evaluating the Robustness of Neural Networks
- LimeAttack: Local Explainable Method for Textual Hard-Label Adversarial Attack cites Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment
- HQA-Attack: Toward High Quality Black-Box Hard-Label Adversarial Attack on Text cites TextBugger: Generating Adversarial Text Against Real-world Applications
- HQA-Attack: Toward High Quality Black-Box Hard-Label Adversarial Attack on Text cites Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment
- SSPAttack: A Simple and Sweet Paradigm for Black-Box Hard-Label Textual Adversarial Attack cites TextBugger: Generating Adversarial Text Against Real-world Applications
- SSPAttack: A Simple and Sweet Paradigm for Black-Box Hard-Label Textual Adversarial Attack cites Sign-OPT: A Query-Efficient Hard-label Adversarial Attack
- SSPAttack: A Simple and Sweet Paradigm for Black-Box Hard-Label Textual Adversarial Attack cites Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment
- SSPAttack: A Simple and Sweet Paradigm for Black-Box Hard-Label Textual Adversarial Attack cites HopSkipJumpAttack: A Query-Efficient Decision-Based Attack
- MathAttack: Attacking Large Language Models towards Math Solving Ability cites TextBugger: Generating Adversarial Text Against Real-world Applications
- MathAttack: Attacking Large Language Models towards Math Solving Ability cites Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment
- Sign-OPT: A Query-Efficient Hard-label Adversarial Attack cites Towards Evaluating the Robustness of Neural Networks
- Sign-OPT: A Query-Efficient Hard-label Adversarial Attack cites HopSkipJumpAttack: A Query-Efficient Decision-Based Attack
- Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment cites TextBugger: Generating Adversarial Text Against Real-world Applications
- HopSkipJumpAttack: A Query-Efficient Decision-Based Attack cites Towards Evaluating the Robustness of Neural Networks
Cited by top-tier papers10
- MathAttack: Attacking Large Language Models towards Math Solving AbilityZihao Zhou, Qiufeng Wang, Mingyu Jin, Jie Yao et al.AAAI 2024 · 38 citations
- HQA-Attack: Toward High Quality Black-Box Hard-Label Adversarial Attack on TextHan Liu, Zhi Xu, Xiaotong Zhang, Feng Zhang et al.NeurIPS 2023 · 32 citations
- SSPAttack: A Simple and Sweet Paradigm for Black-Box Hard-Label Textual Adversarial AttackHan Liu, Zhi Xu, Xiaotong Zhang, Xiaoming Xu et al.AAAI 2023 · 31 citations
- VQAttack: Transferable Adversarial Attacks on Visual Question Answering via Pre-trained ModelsZiyi Yin, Muchao Ye, Tianrong Zhang, Jiaqi Wang et al.AAAI 2024 · 20 citations
- LimeAttack: Local Explainable Method for Textual Hard-Label Adversarial AttackHai Zhu, Qingyang Zhao, Weiwei Shang, Yuren Wu et al.AAAI 2024 · 19 citations
Builds on7
- Towards Evaluating the Robustness of Neural NetworksNicholas Carlini, David A. WagnerS&P 2017 · 9,786 citations
- Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and EntailmentDi Jin, Zhijing Jin, Joey Tianyi Zhou, Peter SzolovitsAAAI 2020 · 1,333 citations
- TextBugger: Generating Adversarial Text Against Real-world ApplicationsJinfeng Li, Shouling Ji, Tianyu Du, Bo Li et al.NDSS 2019 · 876 citations
- HopSkipJumpAttack: A Query-Efficient Decision-Based AttackJianbo Chen, Michael I. Jordan, Martin J. WainwrightS&P 2020 · 797 citations
- Sign-OPT: A Query-Efficient Hard-label Adversarial AttackMinhao Cheng, Simranjit Singh, Patrick H. Chen, Pin-Yu Chen et al.ICLR 2020 · 256 citations
Related papers
- LeapAttack: Hard-Label Adversarial Attack on Text via Gradient-Based OptimizationMuchao Ye, Jinghui Chen, Chenglin Miao, Ting Wang et al.KDD 2022 · 16 citations
- TextHacker: Learning based Hybrid Local Search Algorithm for Text Hard-label Adversarial AttackZhen Yu, Xiaosen Wang, Wanxiang Che, Kun HeEMNLP Findings 2022 · 13 citations
- PAT: Geometry-Aware Hard-Label Black-Box Adversarial Attacks on TextMuchao Ye, Jinghui Chen, Chenglin Miao, Han Liu et al.KDD 2023 · 8 citations
- Generating Natural Language Attacks in a Hard Label Black Box SettingRishabh Maheshwary, Saket Maheshwary, Vikram PudiAAAI 2021 · 128 citations
- Generating Textual Adversaries with Minimal PerturbationXingyi Zhao, Lu Zhang, Depeng Xu, Shuhan YuanEMNLP Findings 2022 · 2 citations
