arXiv:2606.03486cs.CRcs.AI2026-06

通过个性化安全参考,精准识别并拦截恶意提示,同时减少对正常请求的误伤。

NeuroArmor: Safe-Variant-Guided Representation Consistency for Selective Re-Anchoring in Jailbreak Defense

论文配图:NeuroArmor: Safe-Variant-Guided Representation Consistency for Selective Re-Anchoring in Jailbreak Defense
图 1 · 摘自论文原文
  • 为每个提示生成多个安全变体,作为局部安全参照物。
  • 在隐藏层空间比对异常,将恶意请求拒答,边缘请求引导恢复。
  • 在保持帮助性的同时,将攻击成功率降至1.57%,误报率降低至22.05%。

大语言模型仍易受越狱攻击,此类攻击通过角色扮演、编码、对抗后缀等看似正常的请求隐藏有害意图。现有防御措施难以兼顾安全与可用性,因对所有提示采取统一处理策略,导致误拦敏感但无害请求。本文提出NeuroArmor,一种白盒运行时防御机制,利用提示特定的安全变体作为局部安全参考,判断是否需干预,并在触发后提供安全目标。对每个输入,NeuroArmor构建K个安全变体,在隐藏状态空间中比较提示状态,将恶意请求导向拒绝分支,将边界良性请求导向帮助性恢复分支。在Llama-3-8B-Instruct上,该方法将恶意攻击成功率(ASR)从41.56%降至1.57%,同时将共享良性数据集上的误报率(FPR)从30.26%降至22.05%,优于匹配基线。外部评分与人工行为评估表明,未被拦截的输出更少具有实际危害性。总体而言,NeuroArmor通过提示特定的一致性检测、路由与选择性干预,提供了更优的越狱防御策略。

原文摘要 · Abstract (English)

Large language models remain vulnerable to jailbreak attacks that hide harmful intent behind seemingly ordinary requests such as role-play, translation, encoding, adversarial suffixes, and multi-turn buildup. Existing defenses still struggle to handle these attacks without over-blocking benign but sensitive requests, partly because they often apply the same action to every prompt and therefore fail to balance safety and helpfulness. We propose NeuroArmor, a white-box runtime defense that uses prompt-specific safe variants as a local safety reference for deciding when intervention is needed and, once triggered, as safe targets for intervention. For each prompt, NeuroArmor builds K safe variants, compares the prompt state against this local safe reference in hidden-state space, and routes anomalies either to a refusal branch for malicious prompts or to a helpful recovery branch for borderline benign prompts. On Llama-3-8B-Instruct, NeuroArmor reduces malicious attack success rate (ASR) from 41.56% to 1.57% while lowering benign false positive rate (FPR) on the shared benign pool from 30.26% to 22.05%; matched baselines remain substantially weaker on this trade-off. External-judge and manual behavioral evaluations further show that the remaining non-blocked outputs are much less likely to be operationally harmful. Overall, NeuroArmor provides a more effective runtime strategy for jailbreak defense by combining prompt-specific consistency checking, routing, and selective intervention.

越狱防御安全对齐提示工程模型安全

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。