Lune

ICLR2023顶会

TextGrad: Advancing Robustness Evaluation in NLP by Gradient-Driven Optimization

Bairu Hou, Jinghan Jia, Yihua Zhang, Guanhua Zhang, Yang Zhang, Sijia Liu, Shiyu Chang

摘要

Robustness evaluation against adversarial examples has become increasingly important to unveil the trustworthiness of the prevailing deep models in natural language processing (NLP). However, in contrast to the computer vision (CV) domain where the first-order projected gradient descent (PGD) is used as the benchmark approach to generate adversarial examples for robustness evaluation, there lacks a principled first-order gradient-based robustness evaluation framework in NLP. The emerging optimization challenges lie in 1) the discrete nature of textual inputs together with the strong coupling between the perturbation location and the actual content, and 2) the additional constraint that the perturbed text should be fluent and achieve a low perplexity under a language model. These challenges make the development of PGD-like NLP attacks difficult. To bridge the gap, we propose TEXTGRAD, a new attack generator using gradient-driven optimization, supporting high-accuracy and high-quality assessment of adversarial robustness in NLP. Specifically, we address the aforementioned challenges in a unified optimization framework. And we develop an effective convex relaxation method to co-optimize the continuously-relaxed site selection and perturbation variables, and leverage an effective sampling method to establish an accurate mapping from the continuous optimization variables to the discrete textual perturbations. Moreover, as a first-order attack generation method, TEXTGRAD can be baked in adversarial training to further improve the robustness of NLP models. Extensive experiments are provided to demonstrate the effectiveness of TEXTGRAD not only in attack generation for robustness evaluation but also in adversarial defense. From the attack perspective, we show that TEXTGRAD achieves remarkable improvements in both the attack success rate and the perplexity score over five state-of-the-art baselines. From the defense perspective, TEXTGRAD-enabled adversarial training yields the most robust NLP model against a wide spectrum of NLP attacks.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Robustness in Both Domains: CLIP Needs a Robust Text Encoder 引用了 TextBugger: Generating Adversarial Text Against Real-world Applications
  • Robustness in Both Domains: CLIP Needs a Robust Text Encoder 引用了 Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks
  • Robustness in Both Domains: CLIP Needs a Robust Text Encoder 引用了 Fast is better than free: Revisiting adversarial training
  • Robustness in Both Domains: CLIP Needs a Robust Text Encoder 引用了 Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment
  • TextBugger: Generating Adversarial Text Against Real-world Applications 引用了 Towards Evaluating the Robustness of Neural Networks
  • MMA-Diffusion: MultiModal Attack on Diffusion Models 引用了 Towards Evaluating the Robustness of Neural Networks
  • MMA-Diffusion: MultiModal Attack on Diffusion Models 引用了 Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment
  • Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks 引用了 Towards Evaluating the Robustness of Neural Networks
  • Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks 引用了 Fast is better than free: Revisiting adversarial training
  • Fast is better than free: Revisiting adversarial training 引用了 Towards Evaluating the Robustness of Neural Networks
  • Defensive Unlearning with Adversarial Training for Robust Concept Erasure in Diffusion Models 引用了 Towards Evaluating the Robustness of Neural Networks
  • Defensive Unlearning with Adversarial Training for Robust Concept Erasure in Diffusion Models 引用了 Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks
  • Defensive Unlearning with Adversarial Training for Robust Concept Erasure in Diffusion Models 引用了 Fast is better than free: Revisiting adversarial training
  • Defensive Unlearning with Adversarial Training for Robust Concept Erasure in Diffusion Models 引用了 Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment
  • Universally Unfiltered and Unseen: Input-Agnostic Multimodal Jailbreaks against Text-to-Image Model Safeguards 引用了 MMA-Diffusion: MultiModal Attack on Diffusion Models
  • Universally Unfiltered and Unseen: Input-Agnostic Multimodal Jailbreaks against Text-to-Image Model Safeguards 引用了 Defensive Unlearning with Adversarial Training for Robust Concept Erasure in Diffusion Models
  • Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment 引用了 TextBugger: Generating Adversarial Text Against Real-world Applications
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper6

  1. Defensive Unlearning with Adversarial Training for Robust Concept Erasure in Diffusion ModelsYimeng Zhang, Xin Chen, Jinghan Jia, Yihua Zhang 等NeurIPS 2024 · 200 次引用
  2. MMA-Diffusion: MultiModal Attack on Diffusion ModelsYijun Yang, Ruiyuan Gao, Xiaosen Wang, Tsung-Yi Ho 等CVPR 2024 · 31 次引用
  3. Robustness in Both Domains: CLIP Needs a Robust Text EncoderElías Abad-Rocamora, Christian Schlarmann, Naman Deep Singh, Yongtao Wu 等NeurIPS 2025 · 4 次引用
  4. Certified Robustness Under Bounded Levenshtein DistanceElías Abad-Rocamora, Grigorios Chrysos, Volkan CevherICLR 2025
  5. Universally Unfiltered and Unseen: Input-Agnostic Multimodal Jailbreaks against Text-to-Image Model SafeguardsSong Yan, Hui Wei, Jinlong Fei, Guoliang Yang 等ACM MM 2025

它引用的 Paper15

  1. Towards Evaluating the Robustness of Neural NetworksNicholas Carlini, David A. WagnerS&P 2017 · 9,786 次引用
  2. Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacksFrancesco Croce, Matthias HeinICML 2020 · 2,337 次引用
  3. Fast is better than free: Revisiting adversarial trainingEric Wong, Leslie Rice, J. Zico KolterICLR 2020 · 1,352 次引用
  4. 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 次引用
  5. TextBugger: Generating Adversarial Text Against Real-world ApplicationsJinfeng Li, Shouling Ji, Tianyu Du, Bo Li 等NDSS 2019 · 876 次引用

相关 Paper

  1. Bridge the Gap Between CV and NLP! A Gradient-based Textual Adversarial Attack FrameworkLifan Yuan, Yichi Zhang, Yangyi Chen, Wei WeiACL Findings 2023 · 27 次引用
  2. How do humans perceive adversarial text? A reality check on the validity and naturalness of word-based adversarial attacksSalijona Dyrmishi, Salah Ghamizi, Maxime CordyACL 2023 · 4 次引用
  3. From Adversarial Arms Race to Model-centric Evaluation: Motivating a Unified Automatic Robustness Evaluation FrameworkYangyi Chen, Hongcheng Gao, Ganqu Cui, Lifan Yuan 等ACL Findings 2023 · 5 次引用
  4. Generative Adversarial Training with Perturbed Token Detection for Model RobustnessJiahao Zhao, Wenji MaoEMNLP 2023 · 3 次引用
  5. Weight Perturbation as Defense against Adversarial Word SubstitutionsJianhan Xu, Linyang Li, Jiping Zhang, Xiaoqing Zheng 等EMNLP Findings 2022 · 5 次引用
黄昏的海面,两侧是细线勾勒的悬崖