Skip to main content
QUICK 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 Science被引用 0
一句话总结

DAT 使用扩散 LLM 作为生成替代来采样多样且与数据相关的对抗性提示,并应用连续对抗训练,在保持效用的同时,对一系列攻击具有更高鲁棒性。

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.

研究动机与目标

  • 形式化在 LLM 对抗训练中经验鲁棒风险与总体鲁棒风险之间的差距。
  • 提出分布式对抗训练(DAT),将生成式扩散代理与连续对抗优化相结合。
  • 证明从基于扩散的有害提示代理采样有助于提升对模型特定和数据特定攻击的鲁棒性。
  • 提供理论依据,表明对数据分布的更高保真度会收紧鲁棒性界限。
  • 在模型规模和架构不同下,展示鲁棒性-效用权衡的改进。

提出的方法

  • 在 LLM AT 中定义经验鲁棒风险与总体鲁棒风险之间的差距。
  • 通过扩散 LLM 以 p_theta^(diff)(x,y) 作为生成替代,在有害 y 条件下采样 x。
  • 对有害 y 进行蒙特卡洛采样,以生成多样化的与数据相关的提示 x。
  • 在内部循环中应用连续对抗训练(CAT),最大化 L_delta 损失并促进鲁棒性。
  • 在外部循环引入 KL 项正则化,以保持效用和稳定性(L_KL)。
  • 给出一个基于保真度的代理界:|R_pop(theta) - R_diff(theta)| <= 2M*epsilon,前提为 TV 保真度假设。
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

实验结果

研究问题

  • RQ1扩散式生成性替代能否有效地近似提示与有害响应的真实联合分布,从而降低 LLM AT 中的数据近似误差?
  • RQ2从有害提示的高似然区域(x|y)进行采样,是否能相比传统的 AT 提高对模型特定和数据特定攻击的鲁棒性?
  • RQ3增加每种行为的扩散生成提示数量是否能减少经验鲁棒性差距、提升最坏情况下的性能,同时不牺牲效用?
  • RQ4鲁棒性提升是否依赖于数据特定的提示,还是模型无关的采样就足以?

主要发现

  • 相较于 CAT、LAT、CB 等基线,DAT 在多种攻击下显著提升最坏情况鲁棒性。
  • 使用扩散生成的提示在攻击转移性和对有害提示分布的覆盖方面优于模型特定或启发式扰动。
  • 增加每种行为的扩散生成提示数量可降低修复填充(inpainting)及其他 ASR,支持代理保真度界。
  • 单纯的扩散代理提升鲁棒性但不如完整 DAT,表明需要将数据分布近似与连续对抗优化结合起来。
  • DAT 在超参数下实现了鲁棒性-效用的帕累托最优权衡,在相同效用水平下鲁棒性优于基线。
  • 数据特异性(从高概率有害提示中采样)对鲁棒性提升至关重要;低质量样本的鲁棒性收益有限。
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

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。