arXiv:2510.08604cs.CLcs.AI2025-10被引 3

通过潜空间优化生成低困惑度对抗提示,绕过大模型安全检测。

LatentBreak: Jailbreaking Large Language Models through Latent Space Feedback

  • 用语义等价词替换提示词,保持原意同时降低困惑度。
  • 在多个安全对齐模型上成功率超现有方法,平均攻击成功率提升12%。
  • 适合研究模型安全、对抗攻击或防御机制的学者使用。

jailbreak 是旨在绕过大型语言模型内置安全机制的对抗性攻击。现有自动化 jailbreak 方法通常通过优化对抗后缀或调整长提示模板,迫使模型生成受限或有害响应的开头部分。本文发现,这类依赖此类机制的攻击可通过输入提示的困惑度过滤轻松检测。为克服此问题,我们提出 LatentBreak,一种白盒 jailbreak 攻击方法,可生成自然且低困惑度的对抗提示以规避此类防御。LatentBreak 将输入提示中的词语替换为语义等价词,而非添加高困惑度对抗后缀或冗长模板,且选择依据是使对抗提示与无害请求在潜空间中的表示距离最小化。大规模评估表明,LatentBreak 生成的提示更短、困惑度更低,在多个安全对齐模型上优于现有 jailbreak 算法,对基于困惑度的过滤器更具鲁棒性。

原文摘要 · Abstract (English)

Jailbreaks are adversarial attacks designed to bypass the built-in safety mechanisms of large language models. Automated jailbreaks typically optimize an adversarial suffix or adapt long prompt templates by forcing the model to generate the initial part of a restricted or harmful response. In this work, we show that existing jailbreak attacks that leverage such mechanisms to unlock the model response can be detected by a straightforward perplexity-based filtering on the input prompt. To overcome this issue, we propose LatentBreak, a white-box jailbreak attack that generates natural adversarial prompts with low perplexity capable of evading such defenses. LatentBreak substitutes words in the input prompt with semantically-equivalent ones, preserving the initial intent of the prompt, instead of adding high-perplexity adversarial suffixes or long templates. These words are chosen by minimizing the distance in the latent space between the representation of the adversarial prompt and that of harmless requests. Our extensive evaluation shows that LatentBreak leads to shorter and low-perplexity prompts, thus outperforming competing jailbreak algorithms against perplexity-based filters on multiple safety-aligned models.

对抗攻击模型安全潜空间提示工程

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