arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.10794cs.CL
收藏

理解大语言模型中的越狱攻击:表征空间分析

Towards Understanding Jailbreak Attacks in LLMs: A Representation Space Analysis

Michigan State University(密歇根州立大学);Okinawa Institute of Science and Technology(冲绳科学技术大学院大学)

Yuping Lin, Pengfei He, Han Xu, Yue Xing, Makoto Yamada, Hui Liu, Jiliang Tang

AI总结:

本文从LLM表征空间分析越狱攻击,提出成功攻击会将有害提示表征推向无害方向,并通过融合隐藏表征的攻击目标验证该假设。

摘要:

大语言模型(LLM)容易受到一种称为越狱的攻击,此类攻击会诱导LLM输出有害内容。尽管越狱攻击策略多种多样,但对于为何某些方法成功而另一些失败,目前仍缺乏统一认识。本文探究有害与无害提示在LLM表征空间中的行为,以研究成功越狱攻击的内在属性。我们假设成功的攻击具有某些相似性质:它们能够有效地将有害提示的表征向无害提示的方向移动。我们将隐藏表征融入现有越狱攻击的目标函数中,使攻击沿接受方向移动,并利用所提出的目标函数开展实验以验证上述假设。我们希望本研究能为理解LLM如何理解有害性信息提供新的见解。

英文摘要:

Large language models (LLMs) are susceptible to a type of attack known as jailbreaking, which misleads LLMs to output harmful contents. Although there are diverse jailbreak attack strategies, there is no unified understanding on why some methods succeed and others fail. This paper explores the behavior of harmful and harmless prompts in the LLM's representation space to investigate the intrinsic properties of successful jailbreak attacks. We hypothesize that successful attacks share some similar properties: They are effective in moving the representation of the harmful prompt towards the direction to the harmless prompts. We leverage hidden representations into the objective of existing jailbreak attacks to move the attacks along the acceptance direction, and conduct experiments to validate the above hypothesis using the proposed objective. We hope this study provides new insights into understanding how LLMs understand harmfulness information.

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

↑