arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.13162cs.CRcs.AIcs.CL
收藏

ShieldLearner:LLM越狱攻击防御的新范式

ShieldLearner: A New Paradigm for Jailbreak Attack Defense in LLMs

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Institute of Artificial Intelligence, Beijing University of Aeronautics and Astronautics(北京航空航天大学人工智能研究院)

Ziyi Ni, Hao Wang, Huacan Wang

AI总结:

针对LLM越狱防御适应性和可解释性不足的问题,提出ShieldLearner,通过攻击模式提炼、元分析框架和对抗增强实现无需重训的持续防御,并在常规与困难测试中以更低开销超越基线。

摘要:

大型语言模型(LLM)已在多个领域取得显著成功,但仍易受对抗性越狱攻击。现有提示防御策略(包括修改参数和无参数方法)在适应性、可解释性和定制化方面存在局限,限制了其应对不断演变威胁的有效性。为应对这些挑战,我们提出ShieldLearner,这是一种模仿人类学习进行防御的新颖范式。通过试错,它自主地将攻击特征提炼为Pattern Atlas,并将防御启发式方法综合为Meta-analysis Framework,从而实现系统化、可解释的威胁检测。此外,我们引入Adaptive Adversarial Augmentation,为已成功防御的提示生成对抗变体,从而无需重新训练模型即可持续自我改进。除标准基准外,我们还通过整理Wildjailbreak数据集中的对抗性提示创建了一个困难测试集,重点关注更隐蔽的恶意意图。实验结果表明,ShieldLearner在常规测试集和困难测试集上均取得显著高于现有基线的防御成功率,同时具有更低的计算开销,使其成为现实世界对抗防御中实用且高效的解决方案。

英文摘要:

Large Language Models (LLMs) have achieved remarkable success in various domains but remain vulnerable to adversarial jailbreak attacks. Existing prompt-defense strategies, including parameter-modifying and parameter-free approaches, face limitations in adaptability, interpretability, and customization, constraining their effectiveness against evolving threats. To address these challenges, we propose ShieldLearner, a novel paradigm that mimics human learning in defense. Through trial and error, it autonomously distills attack signatures into a Pattern Atlas and synthesizes defense heuristics into a Meta-analysis Framework, enabling systematic and interpretable threat detection. Furthermore, we introduce Adaptive Adversarial Augmentation to generate adversarial variations of successfully defended prompts, enabling continuous self-improvement without model retraining. In addition to standard benchmarks, we create a hard test set by curating adversarial prompts from the Wildjailbreak dataset, emphasizing more concealed malicious intent. Experimental results show that ShieldLearner achieves a significantly higher defense success rate than existing baselines on both conventional and hard test sets, while also operating with lower computational overhead, making it a practical and efficient solution for real-world adversarial defense.

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

↑