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

SpatialJB: 文本分布艺术如何成为LLM防护机制的'突破密钥'

SpatialJB: How Text Distribution Art Becomes the "Jailbreak Key" for LLM Guardrails

College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);The University of Sydney(悉尼大学);The State Key Laboratory of Blockchain and Data Security, Zhejiang University(浙江大学区块链与数据安全国家重点实验室);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security, Zhejiang University(浙江大学杭州高科技园区(滨江)区块链与数据安全研究所);Zhejiang Key Laboratory of Intelligent Education Technology and Application, Zhejiang Normal University(浙江师范大学浙江省智能教育技术与应用重点实验室);Sun Yat-sen University(中山大学);Hong Kong Polytechnic University(香港理工大学)

Zhiyi Mou, Jingyuan Yang, Zeheng Qian, Wangze Ni, Tianfang Xiao, Ning Liu, Chen Zhang, Zhan Qin, Kui Ren

AI总结:

SpatialJB通过破坏LLM输出生成过程,利用空间结构扰动突破现有防护机制,实验显示其高效性,同时提出基础防御策略以应对此类攻击。

摘要:

尽管大型语言模型(LLMs)具有强大的能力,但它们仍容易受到突破攻击,这是其安全实时网络应用的关键障碍。目前商业LLM提供商部署输出防护机制来过滤有害输出,但这些防御措施并不不可渗透。由于LLMs依赖于自回归的逐词推理,其语义表示在空间结构扰动方面缺乏鲁棒性,例如在不同行、列或对角线重新分布token。利用Transformer的空间弱点,我们提出了SpatialJB来破坏模型的输出生成过程,使有害内容能够绕过防护机制而不被检测。在领先的LLMs上进行的全面实验获得近100%的ASR,证明了SpatialJB的高效性。即使在添加高级输出防护机制,如OpenAI Moderation API后,SpatialJB仍能保持超过75%的成功率,显著优于当前的突破技术。SpatialJB的提出暴露了当前防护机制的关键弱点,并强调了空间语义的重要性,为推进LLM安全研究提供了新的见解。为防止潜在的滥用,我们还提出了针对SpatialJB的基础防御策略,并评估了这些策略在缓解此类攻击中的有效性。攻击、基础防御策略和演示的代码可在https://anonymous.4open.science/r/SpatialJailbreak-8E63获取。

英文摘要:

While Large Language Models (LLMs) have powerful capabilities, they remain vulnerable to jailbreak attacks, which is a critical barrier to their safe web real-time application. Current commercial LLM providers deploy output guardrails to filter harmful outputs, yet these defenses are not impenetrable. Due to LLMs' reliance on autoregressive, token-by-token inference, their semantic representations lack robustness to spatially structured perturbations, such as redistributing tokens across different rows, columns, or diagonals. Exploiting the Transformer's spatial weakness, we propose SpatialJB to disrupt the model's output generation process, allowing harmful content to bypass guardrails without detection. Comprehensive experiments conducted on leading LLMs get nearly 100% ASR, demonstrating the high effectiveness of SpatialJB. Even after adding advanced output guardrails, like the OpenAI Moderation API, SpatialJB consistently maintains a success rate exceeding 75%, outperforming current jailbreak techniques by a significant margin. The proposal of SpatialJB exposes a key weakness in current guardrails and emphasizes the importance of spatial semantics, offering new insights to advance LLM safety research. To prevent potential misuse, we also present baseline defense strategies against SpatialJB and evaluate their effectiveness in mitigating such attacks. The code for the attack, baseline defenses, and a demo are available at https://anonymous.4open.science/r/SpatialJailbreak-8E63.

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

↑