DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoising

Pretrained language models have significantly advanced performance across various natural language processing tasks.However, adversarial attacks continue to pose a critical challenge to systems built using these models, as they can be exploited with carefully crafted adversarial texts.Inspired by the ability of diffusion models to predict and reduce noise in computer vision, we propose a novel and flexible adversarial defense method for language classification tasks, DiffuseDef 1 , which incorporates a diffusion layer as a denoiser between the encoder and the classifier.The diffusion layer is trained on top of the existing classifier, ensuring seamless integration with any model in a plug-and-play manner.During inference, the adversarial hidden state is first combined with sampled noise, then denoised iteratively and finally ensembled to produce a robust text representation.By integrating adversarial training, denoising, and ensembling techniques, we show that DiffuseDef improves over existing adversarial defense methods and achieves stateof-the-art performance against common blackbox and white-box adversarial attacks.

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-long.454
Citations
2
Primary Topic
Adversarial Robustness in Machine Learning
Type
article
Field-Weighted Citation Impact
4.96
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoising

Lucia Specia, Marek Rei, Zhenhao Li, Huichi Zhou
2 citations
Adversarial Robustness in Machine Learning
4.96
article

DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoising

Lucia Specia, Marek Rei, Zhenhao Li, Huichi Zhou
article en
2 citations

Abstract

Pretrained language models have significantly advanced performance across various natural language processing tasks.However, adversarial attacks continue to pose a critical challenge to systems built using these models, as they can be exploited with carefully crafted adversarial texts.Inspired by the ability of diffusion models to predict and reduce noise in computer vision, we propose a novel and flexible adversarial defense method for language classification tasks, DiffuseDef 1 , which incorporates a diffusion layer as a denoiser between the encoder and the classifier.The diffusion layer is trained on top of the existing classifier, ensuring seamless integration with any model in a plug-and-play manner.During inference, the adversarial hidden state is first combined with sampled noise, then denoised iteratively and finally ensembled to produce a robust text representation.By integrating adversarial training, denoising, and ensembling techniques, we show that DiffuseDef improves over existing adversarial defense methods and achieves stateof-the-art performance against common blackbox and white-box adversarial attacks.

Imperial College London (GB)
Openalex Percentile: Top 5%
Adversarial Robustness in Machine Learning
4.96
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoising — Lucia Specia, Marek Rei, et al. · (2025) | TGRS Research Map | TGRS