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

椭球控制:通过良性潜在建模的白名单越狱防御

Ellipsoid Control: A White-list Jailbreak Defense via Benign Latent Modeling

University of Technology Sydney(悉尼科技大学)

Luoyu Chen, Weiqi Wang, Zhiyi Tian, Feng Wu, Ahmed Asiri, Shui Yu

AI总结:

提出一种基于白名单视角的测试时防御方法Ellipsoid Control,通过拟合良性数据的各向异性椭球约束投影梯度下降,在任意输入上触发拒绝同时最小化良性潜在几何的扭曲,从而在增强安全性的同时保持模型效用。

摘要:

表示工程(RepE)防御已显示出对大型语言模型(LLMs)越狱攻击的强大鲁棒性。然而,这些方法从根本上依赖于黑名单监督:它们从本质上不完整且不断演变的有害或越狱数据中学习从越狱到拒绝的激活变换。因此,基于RepE的防御性能与收集的有害样本的质量和覆盖范围紧密耦合,使模型容易受到未见攻击。这种依赖也模糊了拟合已知有害分布的防御与保护良性潜在区域而不估计有害分布的防御之间的区别。我们采用相反的白名单视角,利用良性数据的可访问性和丰富性。目标是在确保无害输入不被错误拒绝的同时,对任意输入引发拒绝。这使核心研究问题转变为:我们如何设计一种鲁棒的良性潜在保持机制,使得良性潜在分布保持完整,同时引发拒绝?为了回答这个问题,我们提出了椭球控制(Ellipsoid Control),一种测试时防御。它执行投影梯度下降,可以在任意输入上引发拒绝,旨在提高防御有效性。同时,从丰富的良性数据中拟合一个各向异性的良性几何椭球,以约束更新,最小化良性潜在几何的扭曲。这种紧密约束有助于保持模型效用。在多个LLM、越狱攻击、良性任务和安全边界评估中,椭球控制持续增强安全性,同时更好地保持效用,证明了白名单方法在越狱防御中的有效性。

英文摘要:

Representation engineering (RepE) defenses have shown strong robustness against jailbreak attacks on large language models (LLMs). However, these methods fundamentally rely on black-list supervision: they learn jailbreak-to-refusal activation transformations from harmful or jailbreak data that are inherently incomplete and continuously evolving. Hence, the performance of RepE-based defenses becomes tightly coupled to the quality and coverage of collected harmful samples, leaving models vulnerable to unseen attacks. This reliance also obscures the distinction between defenses that fit known harmful distributions and defenses that protect a benign latent region without estimating the harmful distribution. We adopt the opposite, the white-list perspective, by leveraging the accessibility and abundance of benign data. The goal is to elicit refusal on arbitrary inputs while ensuring that harmless inputs are not falsely rejected. This shifts the core research question to: How can we design a robust benign-latent preservation mechanism such that the benign latent distribution remains intact while refusal is elicited? To answer this, we propose Ellipsoid Control, a test-time defense. It performs projected gradient descent that can elicit refusal on arbitrary inputs, aiming to improve defense effectiveness. At the same time, an anisotropic benign-geometry ellipsoid is fitted from abundant benign data to constrain the update to minimize distortion of the benign latent geometry. This tight constraint helps preserve model utility. Across multiple LLMs, jailbreak attacks, benign tasks, and safety-boundary evaluations, Ellipsoid Control consistently enhances safety while better preserving utility, demonstrating the effectiveness of the white-list approach for jailbreak defense

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

↑