我们引入了一种利用自回归模型中的不动点的新漏洞,并利用它来构造永不终止的查询。更准确地说,对于非终止查询,大语言模型(LLM)永远不会采样字符串结束标记<eos>。我们严格分析了非终止异常出现的条件。特别是在温度为零时,我们证明如果在输出中观察到超出上下文大小的重复(循环)标记序列,则LLM不会终止。\n\n我们在基础未对齐模型中进行的许多实验中展示了非终止查询,其中重复提示如分析所预测的那样立即导致非终止的循环行为。此外,我们开发了一种简单的配方,利用基础模型中观察到的相同不动点,创建一种提示结构来针对对齐模型。我们证明了该配方在过去一年发布的每个主要模型中都能以相同的简单提示使其进入非终止状态,即使在更高的温度下也是如此。此外,我们设计了一个包含100个随机选择标记的实验,并表明创建非终止查询的配方以高成功率成功,从GPT-4o的97%到Gemini Pro 1.5的19%不等。这些结果表明,所提出的对抗性配方以比早期报告高一到两个数量级的速率成功绕过对齐。\n\n我们还研究了使用ARCA进行基于梯度的直接反转,以构造新的短提示来诱导非终止状态。我们对llama-3.1-8b-instruct的10,000个随机重复2循环输出进行了反转。在10,000个三标记反转提示中,有1,512个产生了非终止查询,成功率达到15%。我们使用ARCA的实验表明,仅需3个输入标记就可以高概率地轻松诱导非终止。总的来说,我们的实验表明,非终止查询是普遍存在的,并且相对容易找到。
英文摘要:
We introduce a new vulnerability that exploits fixed points in autoregressive models and use it to craft queries that never halt. More precisely, for non-halting queries, the LLM never samples the end-of-string token <eos>. We rigorously analyze the conditions under which the non-halting anomaly presents itself. In particular, at temperature zero, we prove that if a repeating (cyclic) token sequence is observed at the output beyond the context size, then the LLM does not halt.
We demonstrate non-halting queries in many experiments performed in base unaligned models where repeating prompts immediately lead to a non-halting cyclic behavior as predicted by the analysis. Further, we develop a simple recipe that takes the same fixed points observed in the base model and creates a prompt structure to target aligned models. We demonstrate the recipe's success in sending every major model released over the past year into a non-halting state with the same simple prompt even over higher temperatures. Further, we devise an experiment with 100 randomly selected tokens and show that the recipe to create non-halting queries succeeds with high success rates ranging from 97% for GPT-4o to 19% for Gemini Pro 1.5. These results show that the proposed adversarial recipe succeeds in bypassing alignment at one to two orders of magnitude higher rates compared to earlier reports.
We also study gradient-based direct inversion using ARCA to craft new short prompts to induce the non-halting state. We inverted 10,000 random repeating 2-cycle outputs for llama-3.1-8b-instruct. Out of 10,000 three-token inverted prompts 1,512 yield non-halting queries reaching a rate of 15%. Our experiments with ARCA show that non-halting may be easily induced with as few as 3 input tokens with high probability. Overall, our experiments demonstrate that non-halting queries are prevalent and relatively easy to find.
University of Pennsylvania(宾夕法尼亚大学);New Jersey Institute of Technology(新泽西理工学院);Washington University in St. Louis(圣路易斯华盛顿大学);Argonne National Laboratory(阿贡国家实验室)
A Simple and Efficient Jailbreak Method Exploiting LLMs' Helpfulness
The Harbin Institute of Technology(哈尔滨工业大学);The Hong Kong Polytechnic University(香港理工大学);Shenzhen University(深圳大学);Shenzhen Loop Area Institute(深圳河套学院)
"Glue pizza and eat rocks" -- Exploiting Vulnerabilities in Retrieval-Augmented Generative Models
Arizona State University(亚利桑那州立大学);Michigan State University(密歇根州立大学);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);University of Virginia(弗吉尼亚大学)
Optimistic search: Change point estimation for large-scale data via adaptive logarithmic queries
Seminar for Statistics, ETH Zurich(苏黎世联邦理工学院统计研讨会);Institute for Mathematical Stochastics, University of Göttingen(哥廷根大学数学随机研究所);Max Planck Institute for Biophysical Chemistry(马克斯·普朗克生物物理化学研究所)