arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2211.09527cs.CLcs.AI
收藏

忽略上一个提示:语言模型的攻击技术

Ignore Previous Prompt: Attack Techniques For Language Models

AE Studio(AE工作室)

Fábio Perez, Ian Ribeiro

摘要:

基于转换器的大语言模型(LLM)为大规模面向客户的应用程序中的自然语言任务提供了强大的基础。然而,研究,探讨他们的漏洞出现恶意用户交互是稀缺的。通过提出一个基于掩码的迭代对抗提示组合的promptInject对齐框架,我们研究了GPT-3,生产中部署最广泛的语言模型,如何很容易被简单的手工输入对齐。特别是,我们调查了两种类型的攻击-目标劫持和即时泄漏-并证明,即使是低资质,但足够恶意的代理,可以很容易地利用GPT-3的随机性,创造长尾风险。可在https://github.com/agencyenterprise/PromptInject上获得用于注入的代码。

英文摘要:

Transformer-based large language models (LLMs) provide a powerful foundation for natural language tasks in large-scale customer-facing applications. However, studies that explore their vulnerabilities emerging from malicious user interaction are scarce. By proposing PromptInject, a prosaic alignment framework for mask-based iterative adversarial prompt composition, we examine how GPT-3, the most widely deployed language model in production, can be easily misaligned by simple handcrafted inputs. In particular, we investigate two types of attacks -- goal hijacking and prompt leaking -- and demonstrate that even low-aptitude, but sufficiently ill-intentioned agents, can easily exploit GPT-3's stochastic nature, creating long-tail risks. The code for PromptInject is available at https://github.com/agencyenterprise/PromptInject.

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

↑