arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.06594cs.CL
收藏

LLMs的内部层是否揭示了用于越狱检测的模式?

Do Internal Layers of LLMs Reveal Patterns for Jailbreak Detection?

Dept. of Computer Science and Engineering University of California, Riverside(计算机科学与工程系加州大学河滨分校)

Sri Durga Sai Sowmya Kadali, Evangelos E. Papalexakis

AI总结:

本研究通过分析开源LLM GPT-J和状态空间模型Mamba2的内部隐藏层表示,发现其在响应越狱与良性提示时呈现显著的逐层行为差异,为利用模型内部动态进行稳健的越狱检测防御提供了新方向。

摘要:

随着对话式LLMs的日益普及和可访问性,越狱大型语言模型已成为一个紧迫的问题。对抗性用户通常通过精心设计的提示词来利用这些模型,以引出受限或敏感的输出,这种策略被广泛称为越狱。尽管已经提出了许多防御机制,但攻击者不断开发新的提示技术,没有现有的模型可以被认为是完全抵抗的。在本研究中,我们通过检查LLMs的内部表示来研究越狱现象,重点关注隐藏层对越狱与良性提示的响应。具体来说,我们分析了开源LLM GPT-J和状态空间模型Mamba2,提出了初步发现,突出了不同的逐层行为。我们的结果为利用内部模型动态进行稳健的越狱检测防御的进一步研究指明了有前景的方向。

英文摘要:

Jailbreaking large language models (LLMs) has emerged as a pressing concern with the increasing prevalence and accessibility of conversational LLMs. Adversarial users often exploit these models through carefully engineered prompts to elicit restricted or sensitive outputs, a strategy widely referred to as jailbreaking. While numerous defense mechanisms have been proposed, attackers continuously develop novel prompting techniques, and no existing model can be considered fully resistant. In this study, we investigate the jailbreak phenomenon by examining the internal representations of LLMs, with a focus on how hidden layers respond to jailbreak versus benign prompts. Specifically, we analyze the open-source LLM GPT-J and the state-space model Mamba2, presenting preliminary findings that highlight distinct layer-wise behaviors. Our results suggest promising directions for further research on leveraging internal model dynamics for robust jailbreak detection and defense.

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

↑