MirrorShield:通过熵引导的镜像构建实现针对越狱攻击的通用防御
MirrorShield: Towards Universal Defense Against Jailbreaks via Entropy-Guided Mirror Crafting
AI总结:
针对现有大语言模型越狱防御依赖静态规则、难以适配动态复杂攻击的问题,提出基于熵引导镜像构建的通用防御模型MirrorShield,经多基准与十种前沿攻击验证,防御性能与泛化性更优。
摘要:
保护大语言模型(LLM)免受越狱攻击,对保障其安全部署至关重要。现有防御策略通常依赖预定义的静态标准区分有害与良性提示,但这类僵化规则无法适配真实越狱攻击的固有复杂性与动态特性。本文聚焦于抵御多样化越狱攻击的通用防御这一新挑战,提出“镜像(mirror)”新概念:一种动态生成的提示,既能反映输入的句法结构,又能保证语义安全性,输入提示与其对应镜像之间的差异可作为防御的指导原则。本文进一步提出新型防御模型MirrorShield,基于构建的镜像检测并校准风险输入。在多个基准数据集上评估,并与十种前沿攻击方法对比,MirrorShield展现出更优的防御性能与可观的泛化能力。
英文摘要:
Defending large language models (LLMs) against jailbreak attacks is crucial for ensuring their safe deployment. Existing defense strategies typically rely on predefined static criteria to differentiate between harmful and benign prompts. However, such rigid rules fail to accommodate the inherent complexity and dynamic nature of real-world jailbreak attacks. In this paper, we focus on the novel challenge of universal defense against diverse jailbreaks. We propose a new concept ``mirror'', which is a dynamically generated prompt that reflects the syntactic structure of the input while ensuring semantic safety. The discrepancies between input prompts and their corresponding mirrors serve as guiding principles for defense. A novel defense model, MirrorShield, is further proposed to detect and calibrate risky inputs based on the crafted mirrors. Evaluated on multiple benchmark datasets and compared against ten state-of-the-art attack methods, MirrorShield demonstrates superior defense performance and promising generalization capabilities.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。