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

LLMs能将指令与数据分开吗?我们这究竟是什么意思?

Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?

ISTA(ISTA(奥地利科学技术研究所));Microsoft Security Response Center(微软安全响应中心);CISPA Helmholtz Center for Information Security(CISPA亥姆霍兹信息安全研究中心)

Egor Zverev, Sahar Abdelnabi, Soroush Tabesh, Mario Fritz, Christoph H. Lampert

AI总结:

本文提出指令与数据分离的形式化度量及经验变体,并构建新数据集SEP,揭示现有LLMs均无法实现高分离度且常规缓解技术效果有限。

摘要:

指令微调的大型语言模型(LLMs)在众多实际应用中展现出令人瞩目的成果,但它们缺乏计算机科学其他领域常见的必要安全特性,特别是指令与数据的显式分离。这使得它们容易受到间接提示注入等操纵的影响,且通常不适用于安全关键型任务。令人惊讶的是,目前尚无既定的定义或基准来量化这一现象。在本研究中,我们通过引入指令与数据分离的形式化度量和一种可从模型输出中计算的经验变体来填补这一空白。我们还提出了一个新数据集SEP,用于估计真实世界模型的该度量。我们在各种LLMs上的结果表明,指令与数据分离的问题是真实存在的:所有模型均未能实现高分离度,而典型的缓解技术(如提示工程和微调)要么未能显著改善分离度,要么降低了模型实用性。源代码和SEP数据集已在https://github.com/egozverev/Shold-It-Be-Executed-Or-Processed开源。

英文摘要:

Instruction-tuned Large Language Models (LLMs) show impressive results in numerous practical applications, but they lack essential safety features that are common in other areas of computer science, particularly an explicit separation of instructions and data. This makes them vulnerable to manipulations such as indirect prompt injections and generally unsuitable for safety-critical tasks. Surprisingly, there is currently no established definition or benchmark to quantify this phenomenon. In this work, we close this gap by introducing a formal measure for instruction-data separation and an empirical variant that is calculable from a model's outputs. We also present a new dataset, SEP, that allows estimating the measure for real-world models. Our results on various LLMs show that the problem of instruction-data separation is real: all models fail to achieve high separation, and canonical mitigation techniques, such as prompt engineering and fine-tuning, either fail to substantially improve separation or reduce model utility. The source code and SEP dataset are openly accessible at https://github.com/egozverev/Shold-It-Be-Executed-Or-Processed.

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

↑