大语言模型的信息论对抗训练 Information Theoretic Adversarial Training of Large Language Models 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-05-06
👁️ 预览文献
💡 AI 中文简介
大语言模型面对对抗性提示仍然脆弱,现有对抗训练方法计算成本高、难以扩展。本文提出WARDEN框架,通过在训练数据分布周围构建f散度模糊集,动态重新加权对抗样本,自动聚焦更难的攻击样本。在KL散度下,目标简化为log-sum-exp形式,由动态参数控制重加权强度。在多个大模型和攻击设置下,WARDEN显著降低攻击成功率,同时计算和效用成本与CAT、CAPO、MixAT等基线相当,为可扩展的鲁棒对齐提供了实用方案。
领域自然语言处理 / 大语言模型安全与对齐
适合谁读需要一定专业背景(了解对抗训练、分布鲁棒优化、信息论基础)
核心贡献1. 提出WARDEN,一种基于f散度模糊集的分布鲁棒对抗训练框架,通过凸对偶将目标简化为log-sum-exp形式,动态重加权对抗样本;2. 在多个LLM和攻击设置下显著降低攻击成功率,且计算与效用成本与CAT、CAPO、MixAT等基线相当。
关键数据在多个LLM和攻击设置下,WARDEN显著降低攻击成功率,计算和效用成本与CAT、CAPO、MixAT等基线相当。
推荐理由如果你关心大模型安全对齐,又不想被高昂的对抗训练成本劝退,这篇提出的WARDEN用信息论方法优雅地解决了重加权问题,值得一读。
关键词["大语言模型", "对抗训练", "分布鲁棒优化", "f散度", "对抗提示", "鲁棒对齐"]

原文摘要

查看英文原文摘要

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.