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

让它们泄密!从(生产级)LLM 中强制性提取知识

Make Them Spill the Beans! Coercive Knowledge Extraction from (Production) LLMs

Purdue University(普渡大学)

Zhuo Zhang, Guangyu Shen, Guanhong Tao, Siyuan Cheng, Xiangyu Zhang

AI总结:

本文提出“模型审讯”攻击,利用输出 logits 在关键生成位置强制选择低排名 token,从对齐 LLM 乃至编程专用模型中提取隐藏有害知识,成功率和效率均显著优于越狱。

摘要:

大语言模型(LLM)如今被广泛应用于各类场景,因此使其伦理标准与人类价值观保持一致至关重要。然而,近期的越狱方法表明,这种对齐可被精心构造的提示破坏。在本研究中,我们揭示了当恶意行为者能够访问模型输出 logits 时,LLM 对齐面临的一种新威胁;访问输出 logits 是开源 LLM 和许多商业 LLM API(例如某些 GPT 模型)中的常见功能。该威胁不依赖于设计特定提示。相反,它利用了这样一个事实:即使 LLM 拒绝有害请求,有害响应也往往隐藏在输出 logits 的深处。通过在自回归生成过程中、于少数关键输出位置强制选择排名较低的输出 token,我们可以迫使模型显露这些隐藏响应。我们将这一过程称为模型审讯。该方法不同于且优于越狱方法:其有效性达到 92%,而越狱方法为 62%,并且速度快 10 到 20 倍。通过我们的方法发现的有害内容更相关、更完整且更清晰。此外,它还可以补充越狱策略,二者结合可进一步提升攻击性能。我们的研究结果表明,即使是从专门为编程任务设计的模型中,审讯也能提取出有毒知识。

英文摘要:

Large Language Models (LLMs) are now widely used in various applications, making it crucial to align their ethical standards with human values. However, recent jail-breaking methods demonstrate that this alignment can be undermined using carefully constructed prompts. In our study, we reveal a new threat to LLM alignment when a bad actor has access to the model's output logits, a common feature in both open-source LLMs and many commercial LLM APIs (e.g., certain GPT models). It does not rely on crafting specific prompts. Instead, it exploits the fact that even when an LLM rejects a toxic request, a harmful response often hides deep in the output logits. By forcefully selecting lower-ranked output tokens during the auto-regressive generation process at a few critical output positions, we can compel the model to reveal these hidden responses. We term this process model interrogation. This approach differs from and outperforms jail-breaking methods, achieving 92% effectiveness compared to 62%, and is 10 to 20 times faster. The harmful content uncovered through our method is more relevant, complete, and clear. Additionally, it can complement jail-breaking strategies, with which results in further boosting attack performance. Our findings indicate that interrogation can extract toxic knowledge even from models specifically designed for coding tasks.

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

↑