MaskPure: Improving Defense Against Text Adversaries with Stochastic Purification
Gietz, Harrison, Kalita, Jugal
–arXiv.org Artificial Intelligence
The improvement of language model robustness, including successful defense against adversarial attacks, remains an open problem. In computer vision settings, the stochastic noising and de-noising process provided by diffusion models has proven useful for purifying input images, thus improving model robustness against adversarial attacks. Similarly, some initial work has explored the use of random noising and de-noising to mitigate adversarial attacks in an NLP setting, but improving the quality and efficiency of these methods is necessary for them to remain competitive. We extend upon methods of input text purification that are inspired by diffusion processes, which randomly mask and refill portions of the input text before classification. Our novel method, MaskPure, exceeds or matches robustness compared to other contemporary defenses, while also requiring no adversarial classifier training and without assuming knowledge of the attack type. In addition, we show that MaskPure is provably certifiably robust. To our knowledge, MaskPure is the first stochastic-purification method with demonstrated success against both character-level and word-level attacks, indicating the generalizable and promising nature of stochastic denoising defenses. In summary: the MaskPure algorithm bridges literature on the current strongest certifiable and empirical adversarial defense methods, showing that both theoretical and practical robustness can be obtained together.
arXiv.org Artificial Intelligence
Jun-18-2024
- Country:
- Asia
- North America
- Dominican Republic (0.04)
- United States
- California
- San Diego County > San Diego (0.04)
- San Francisco County > San Francisco (0.14)
- Colorado > El Paso County
- Colorado Springs (0.04)
- Louisiana > East Baton Rouge Parish
- Baton Rouge (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Oregon > Multnomah County
- Portland (0.04)
- California
- Genre:
- Research Report (1.00)
- Industry:
- Government > Military (0.90)
- Information Technology > Security & Privacy (1.00)
- Technology: