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

SAID: 通过前缀探测实现大型语言模型的安全意识意图防御

SAID: Safety-Aware Intent Defense via Prefix Probing for Large Language Models

Shenzhen Key Laboratory of Visual Object Detection and Recognition, Harbin Institute of Technology, Harbin Institute of Technology, Shenzhen, Shenzhen, China(深圳视觉目标检测与识别重点实验室,哈尔滨工业大学,哈尔滨工业大学,深圳,深圳,中国)

Yulong Chen, Qi Zhang, Jiawen Zhang, Yadong Liu, Mu Li, Jie Wen, Yong Xu

AI总结:

本文提出SAID框架,通过意图层面的安全探测实现无训练的对抗防御,通过核心意图提炼和安全前缀探测减少有害响应,同时保持良性任务的实用性。

摘要:

大型语言模型(LLMs)仍易受劫持攻击,其中对抗性提示会诱导违反政策的响应,尽管已对齐安全性。现有防御通常通过外部过滤、辅助护栏或解码时控制提高安全性。然而,这些干预通常会减少实际部署性,因为它们可能需要额外的模型访问、引入额外的推理成本或影响良性任务的实用性。本文提出安全意识意图防御(SAID),一种基于意图层面安全探测的无训练劫持防御框架。SAID首先利用目标模型自身将可能被混淆的用户输入提炼为简洁的核心意图。然后,它应用经过验证的安全前缀探测每个提炼的意图,并引发模型的安全意识响应。最后,保守的聚合规则会拒绝原始请求,如果任何提炼的意图被识别为不安全。这种设计使防御兼容黑盒,而无需更新模型参数或修改解码过程。在四个开源LLM上进行的实验表明,SAID在减少有害响应的同时,保持了对良性任务的竞争力。进一步分析前缀变体、层次化提炼和推理效率表明,SAID为安全保护LLM免受劫持威胁提供了实用的安全-实用性权衡。

英文摘要:

Large Language Models (LLMs) remain vulnerable to jailbreak attacks, where adversarially crafted prompts induce policy-violating responses despite safety alignment. Existing defenses typically improve safety through external filtering, auxiliary guardrails, or decoding-time control. However, these interventions often reduce practical deployability because they may require additional model access, introduce extra inference cost, or affect benign-task utility. In this paper, we propose Safety-Aware Intent Defense (SAID), a training-free jailbreak defense framework based on intent-level safety probing. SAID first distills potentially obfuscated user inputs into concise core intents using the target model itself. It then applies a validated safety prefix to probe each distilled intent and elicit the model's safety-aware response. Finally, a conservative aggregation rule rejects the original request if any distilled intent is identified as unsafe. This design enables black-box-compatible defense without updating model parameters or modifying the decoding process. Experiments on four open-source LLMs under six representative jailbreak attacks show that SAID achieves state-of-the-art defense performance in reducing harmful responses while maintaining competitive utility on benign tasks. Further analyses on prefix variants, hierarchical distillation, and inference efficiency demonstrate that SAID provides a practical safety-utility trade-off for securing LLMs against jailbreak threats.

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

↑