Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Text-CRS: A Generalized Certified Robustness Framework against Textual Adversarial Attacks (2307.16630v2)

Published 31 Jul 2023 in cs.CR, cs.CL, and cs.LG

Abstract: The LLMs, especially the basic text classification models, have been shown to be susceptible to textual adversarial attacks such as synonym substitution and word insertion attacks. To defend against such attacks, a growing body of research has been devoted to improving the model robustness. However, providing provable robustness guarantees instead of empirical robustness is still widely unexplored. In this paper, we propose Text-CRS, a generalized certified robustness framework for NLP based on randomized smoothing. To our best knowledge, existing certified schemes for NLP can only certify the robustness against $\ell_0$ perturbations in synonym substitution attacks. Representing each word-level adversarial operation (i.e., synonym substitution, word reordering, insertion, and deletion) as a combination of permutation and embedding transformation, we propose novel smoothing theorems to derive robustness bounds in both permutation and embedding space against such adversarial operations. To further improve certified accuracy and radius, we consider the numerical relationships between discrete words and select proper noise distributions for the randomized smoothing. Finally, we conduct substantial experiments on multiple LLMs and datasets. Text-CRS can address all four different word-level adversarial operations and achieve a significant accuracy improvement. We also provide the first benchmark on certified accuracy and radius of four word-level operations, besides outperforming the state-of-the-art certification against synonym substitution attacks.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Xinyu Zhang (296 papers)
  2. Hanbin Hong (10 papers)
  3. Yuan Hong (46 papers)
  4. Peng Huang (65 papers)
  5. Binghui Wang (58 papers)
  6. Zhongjie Ba (22 papers)
  7. Kui Ren (169 papers)
Citations (16)

Summary

We haven't generated a summary for this paper yet.