Skip to main content
QUICK REVIEW

[Paper Review] Closing the Distribution Gap in Adversarial Training for LLMs

Chengzhi Hu, Jonas Dornbusch|arXiv (Cornell University)|Feb 16, 2026
Adversarial Robustness in Machine LearningComputer Science0 citations
TL;DR

DAT uses diffusion LLMs as a generative surrogate to sample diverse, data-specific adversarial prompts and applies continuous adversarial training, achieving higher robustness to a range of attacks while preserving utility.

ABSTRACT

Adversarial training for LLMs is one of the most promising methods to reliably improve robustness against adversaries. However, despite significant progress, models remain vulnerable to simple in-distribution exploits, such as rewriting prompts in the past tense or translating them into other languages. We argue that this persistent fragility stems from a fundamental limitation in current adversarial training algorithms: they minimize adversarial loss on their training set but inadequately cover the data distribution, resulting in vulnerability to seemingly simple attacks. To bridge this gap, we propose Distributional Adversarial Training, DAT. We leverage Diffusion LLMs to approximate the true joint distribution of prompts and responses, enabling generation of diverse, high-likelihood samples that address generalization failures. By combining optimization over the data distribution provided by the diffusion model with continuous adversarial training, DAT achieves substantially higher adversarial robustness than previous methods.

Motivation & Objective

  • Formalize the robustness gap between empirical and population robust risk in LLM adversarial training.
  • Propose Distributional Adversarial Training (DAT) that combines generative diffusion surrogates with continuous adversarial optimization.
  • Show that sampling from a diffusion-based surrogate over harmful prompts improves robustness to both model-specific and data-specific attacks.
  • Provide theoretical justification that higher fidelity to the data distribution tightens the robustness bound.
  • Demonstrate improved robustness-utility trade-offs across model sizes and architectures.

Proposed method

  • Define the empirical vs. population robust risk gap in LLM AT.
  • Introduce a generative surrogate p_theta^(diff)(x,y) via diffusion LLMs to sample x conditioned on harmful y.
  • Use Monte Carlo sampling over harmful y to generate diverse data-specific prompts x.
  • Apply continuous adversarial training (CAT) in the inner loop to maximize L_delta loss and promote robustness.
  • Regularize the outer loop with a KL term to retain utility and stability (L_KL).
  • Provide a fidelity-based surrogate bound: |R_pop(theta) - R_diff(theta)| <= 2M*epsilon under a TV fidelity assumption.
Figure 1 : Standard AT minimizes the empirical robust risk over a fixed dataset $\mathcal{D}$ (brown), which provides a poor approximation of the population robust risk. This results in a distribution gap where the model remains vulnerable to the manifold of natural language $q$ (blue). Specifically
Figure 1 : Standard AT minimizes the empirical robust risk over a fixed dataset $\mathcal{D}$ (brown), which provides a poor approximation of the population robust risk. This results in a distribution gap where the model remains vulnerable to the manifold of natural language $q$ (blue). Specifically

Experimental results

Research questions

  • RQ1Can a diffusion-based generative surrogate effectively approximate the true joint distribution of prompts and harmful responses to reduce the data-approximation error in AT for LLMs?
  • RQ2Does sampling from the high-likelihood region of harmful prompts (x|y) improve robustness to both model-specific and data-specific attacks compared to traditional AT?
  • RQ3Does increasing the number of diffusion-generated samples per behavior reduce empirical robustness gaps and improve worst-case performance without sacrificing utility?
  • RQ4Is robustness improvement contingent on data-specific prompts, or can model-agnostic sampling suffice?

Key findings

  • DAT substantially improves worst-case robustness against a range of attacks compared to baselines like CAT, LAT, and CB.
  • Using diffusion-generated prompts yields higher transferability of attacks and better coverage of the harmful prompt distribution than model-specific or heuristic perturbations.
  • Increasing the number of diffusion-generated prompts per behavior reduces inpainting and other ASRs, supporting the surrogate fidelity bound.
  • A diffusion-only surrogate improves robustness but underperforms compared to full DAT, indicating the necessity of combining data distribution approximation with continuous adversarial optimization.
  • DAT achieves Pareto-optimal robustness-utility trade-offs across hyperparameters, outperforming baselines in robustness at comparable utility levels.
  • Data specificity (sampling from high-likelihood harmful prompts) is essential for robustness gains; low-quality samples yield limited robustness.
Figure 2 : Cumulative transfer ASR across five target models (Gemma3-12B (Gemma Team et al. , 2025 ) , Qwen2.5-7B (Qwen et al. , 2025 ) , Zephyr-7B (Tunstall et al. , 2023 ) , Llama3-8B-LAT (Sheshadri et al. , 2024 ) , Llama3-8B-CB (Zou et al. , 2024a ) ) from attacks on Llama3-8B. Diffusion-based I
Figure 2 : Cumulative transfer ASR across five target models (Gemma3-12B (Gemma Team et al. , 2025 ) , Qwen2.5-7B (Qwen et al. , 2025 ) , Zephyr-7B (Tunstall et al. , 2023 ) , Llama3-8B-LAT (Sheshadri et al. , 2024 ) , Llama3-8B-CB (Zou et al. , 2024a ) ) from attacks on Llama3-8B. Diffusion-based I

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.