arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.11445cs.CRcs.AIcs.CLcs.LG
收藏

用符号数学破解大型语言模型

Jailbreaking Large Language Models with Symbolic Mathematics

University of Texas at San Antonio(圣安东尼奥德克萨斯大学);Tecnológico de Monterrey(蒙特雷理工学院);Florida International University(佛罗里达国际大学)

Emet Bethany, Mazal Bethany, Juan Arturo Nolazco Flores, Sumit Kumar Jha, Peyman Najafirad

AI总结:

提出MathPrompt越狱方法,利用符号数学编码有害提示绕过LLM安全机制,在13个先进模型上平均攻击成功率达73.6%,揭示现有安全训练的泛化缺陷。

摘要:

近期人工智能安全领域的进展促使人们加大力度训练大型语言模型(LLMs)并进行红队测试,以减少不安全内容的生成。然而,这些安全机制可能并不全面,留下了尚未探索的潜在漏洞。本文介绍了MathPrompt,一种新颖的越狱技术,利用LLMs在符号数学方面的高级能力来绕过其安全机制。通过将有害的自然语言提示编码为数学问题,我们展示了当前人工智能安全措施中的一个关键漏洞。我们在13个最先进的LLM上进行的实验显示,平均攻击成功率为73.6%,突显了现有安全训练机制无法泛化到数学编码输入的问题。对嵌入向量的分析显示,原始提示与编码提示之间存在显著的语义偏移,这有助于解释攻击为何成功。这项工作强调了采用整体方法进行人工智能安全的重要性,呼吁扩大红队测试工作,以开发针对所有潜在输入类型及其相关风险的稳健防御措施。

英文摘要:

Recent advancements in AI safety have led to increased efforts in training and red-teaming large language models (LLMs) to mitigate unsafe content generation. However, these safety mechanisms may not be comprehensive, leaving potential vulnerabilities unexplored. This paper introduces MathPrompt, a novel jailbreaking technique that exploits LLMs' advanced capabilities in symbolic mathematics to bypass their safety mechanisms. By encoding harmful natural language prompts into mathematical problems, we demonstrate a critical vulnerability in current AI safety measures. Our experiments across 13 state-of-the-art LLMs reveal an average attack success rate of 73.6\%, highlighting the inability of existing safety training mechanisms to generalize to mathematically encoded inputs. Analysis of embedding vectors shows a substantial semantic shift between original and encoded prompts, helping explain the attack's success. This work emphasizes the importance of a holistic approach to AI safety, calling for expanded red-teaming efforts to develop robust safeguards across all potential input types and their associated risks.

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

↑