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

适应性提示嵌入优化用于大语言模型劫持

Adaptive Prompt Embedding Optimization for LLM Jailbreaking

School of Information Studies, McGill University, Montreal, QC, Canada(麦吉尔大学信息研究学院);Department of Computer Science, Kean University, Union, NJ, United States(凯恩大学计算机科学系);Mila - Quebec AI Institute, Montreal, QC, Canada(魁北克人工智能研究所);Faculty of Information, University of Toronto, Toronto, ON, Canada(多伦多大学信息学院)

Miles Q. Li, Benjamin C. M. Fung, Boyang Li, Radin Hamidi Rad, Ebrahim Bagheri

AI总结:

本文提出PEO方法,通过优化原始提示嵌入而非附加对抗性标记,实现更有效的白盒劫持,实验显示其在多个基准测试中优于现有方法。

摘要:

现有针对对齐LLM的白盒劫持攻击通常在用户提示后附加离散对抗性后缀,这会显式改变提示并在组合token空间中操作。先前工作避免直接优化原始提示token的嵌入,可能因为扰动它们会破坏提示的语义内容。我们提出提示嵌入优化(PEO),一种多轮白盒劫持方法,直接优化原始提示token的嵌入而不附加任何对抗性token,并证明这种担忧是不成立的:优化后的嵌入保持足够接近其原始值,使得经过最近邻token投影后,可见的提示字符串被精确保留,定量分析显示模型对大多数提示的响应仍保持主题相关。PEO结合了连续嵌入空间优化、结构化延续目标和自适应聚焦失败的调度。反直觉的是,后期PEO轮次可以受益于启发式复合响应骨架,这些骨架不是自然独立模板,但ASR-Judge显示由此产生的增益不仅仅是空格式或骨架-only输出。在两个标准有害行为基准和涵盖离散后缀搜索、附加对抗性嵌入和基于搜索的对抗生成的 competing 白盒攻击中,PEO在我们的实验中均优于所有方法。

英文摘要:

Existing white-box jailbreak attacks against aligned LLMs typically append discrete adversarial suffixes to the user prompt, which visibly alters the prompt and operates in a combinatorial token space. Prior work has avoided directly optimizing the embeddings of the original prompt tokens, presumably because perturbing them risks destroying the prompt's semantic content. We propose Prompt Embedding Optimization (PEO), a multi-round white-box jailbreak that directly optimizes the embeddings of the original prompt tokens without appending any adversarial tokens, and show that the concern is unfounded: the optimized embeddings remain close enough to their originals that the visible prompt string is preserved exactly after nearest-token projection, and quantitative analysis shows the model's responses stay on topic for the large majority of prompts. PEO combines continuous embedding-space optimization with structured continuation targets and an adaptive failure-focused schedule. Counterintuitively, later PEO rounds can benefit from heuristic composite response scaffolds that are not natural standalone templates, yet ASR-Judge shows that the resulting gains are not merely empty formatting or scaffold-only outputs. Across two standard harmful-behavior benchmarks and competing white-box attacks spanning discrete suffix search, appended adversarial embeddings, and search-based adversarial generation, PEO outperforms all of them in our experiments.

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

↑