arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.05415cs.LGcs.AIcs.CR
收藏

信息论视角下的大语言模型对抗训练

Information Theoretic Adversarial Training of Large Language Models

Purdue University(普渡大学);Texas State University(德克萨斯州立大学);University of South Florida(佛罗里达州立大学);University of Arizona(亚利桑那大学)

Yiwei Zhang, Jeremiah Birrell, Reza Ebrahimi, Rouzbeh Behnia, Jason Pacheco, Elisa Bertino

AI总结:

本文提出WARDEN框架,通过信息论方法动态调整对抗示例权重,提升大语言模型的鲁棒性,减少攻击成功率且保持模型效用。

摘要:

尽管对齐和安全性有所进展,大语言模型(LLMs)仍易受对抗性提示攻击。现有对抗训练方法计算成本高且难以扩展。本文提出WARDEN,基于分布鲁棒性,通过f-散度模糊集动态重新加权对抗示例,优化最坏情况下的对抗损失。利用对偶形式,目标转化为KL散度下的log-sum-exp形式,通过动态参数控制重加权强度。实验表明,WARDEN在多个LLM和攻击设置中显著降低攻击成功率,计算和效用成本与CAT、CAPO等基线方法相当,为可扩展的鲁棒对齐提供了实用方法。

英文摘要:

Large language models (LLMs) remain vulnerable to adversarial prompting despite advances in alignment and safety, often exhibiting harmful behaviors under novel attack strategies. While adversarial training can improve robustness, existing approaches are computationally expensive and difficult to scale. Recent continuous adversarial training methods, such as Continuous adversarial training (CAT) and Continuous Adversarial Preference Optimization (CAPO), address this challenge by leveraging gradient-based perturbations in the embedding space, enabling more efficient and expressive attacks. Building on this paradigm, we propose WARDEN, a distributionally robust adversarial training framework for LLMs that dynamically reweights adversarial examples through an f -divergence ambiguity set around the empirical training distribution. Our method optimizes the worst-case adversarial loss within a divergence ball around the empirical data distribution, automatically emphasizing harder adversarial examples. Using the convex dual formulation, the objective reduces to a log-sum-exp form under the KL divergence, with a dynamical parameter controlling the strength of reweighting. This study leads to a new class of information-theoretic objectives that significantly reduce attack success rates while maintaining model utility. Across multiple LLMs and attack settings, WARDEN substantially reduces attack success rates with computational and utility costs comparable to CAT-, CAPO-, and MixAT-based baselines, making it a practical approach for scalable robust alignment.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑