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

ALERT: 通过内部不一致放大实现零样本LLM jailbreak检测

ALERT: Zero-shot LLM Jailbreak Detection via Internal Discrepancy Amplification

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Visa

Xiao Lin, Philip Li, Zhichen Zeng, Tingwei Li, Tianxin Wei, Xuying Ning, Gaotang Li, Yuzhong Chen, Hanghang Tong

AI总结:

ALERT通过内部不一致放大技术实现零样本LLM jailbreak检测,有效提升安全检测性能。

摘要:

尽管有丰富的安全对齐策略,大型语言模型(LLMs)仍然极易受到jailbreak攻击,这些攻击会破坏安全护栏并带来严重安全风险。现有检测方法主要依赖于训练数据中存在的jailbreak模板来检测jailbreak状态。然而,很少有研究解决更加现实且具有挑战性的零样本jailbreak检测设置,即在训练过程中没有可用的jailbreak模板。这种设置更真实地反映了现实世界的情况,即新的攻击不断出现并演变。为了解决这一挑战,我们提出了一种分层、模块级和token级的放大框架,逐步放大良性与jailbreak提示之间的内部特征差异。我们揭示了安全相关的层,识别了固有编码零样本判别信号的特定模块,并定位了信息性的安全token。基于这些见解,我们引入了ALERT(基于放大检测器),一种高效且有效的零样本jailbreak检测器,它在放大表示上引入了两个独立但互补的分类器。在三个安全基准上的广泛实验表明,ALERT在零样本检测性能上表现一致强劲。具体而言,(i)在所有数据集和攻击策略上,ALERT始终在前两名方法中;(ii)它在平均准确率和F1分数上比第二好的基线高出至少10%,有时甚至高达40%。

英文摘要:

Despite rich safety alignment strategies, large language models (LLMs) remain highly susceptible to jailbreak attacks, which compromise safety guardrails and pose serious security risks. Existing detection methods mainly detect jailbreak status relying on jailbreak templates present in the training data. However, few studies address the more realistic and challenging zero-shot jailbreak detection setting, where no jailbreak templates are available during training. This setting better reflects real-world scenarios where new attacks continually emerge and evolve. To address this challenge, we propose a layer-wise, module-wise, and token-wise amplification framework that progressively magnifies internal feature discrepancies between benign and jailbreak prompts. We uncover safety-relevant layers, identify specific modules that inherently encode zero-shot discriminative signals, and localize informative safety tokens. Building upon these insights, we introduce ALERT (Amplification-based Jailbreak Detector), an efficient and effective zero-shot jailbreak detector that introduces two independent yet complementary classifiers on amplified representations. Extensive experiments on three safety benchmarks demonstrate that ALERT achieves consistently strong zero-shot detection performance. Specifically, (i) across all datasets and attack strategies, ALERT reliably ranks among the top two methods, and (ii) it outperforms the second-best baseline by at least 10% in average Accuracy and F1-score, and sometimes by up to 40%.

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

↑