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

针对基于LLM的机器翻译的提示注入攻击测试套件

A test suite of prompt injection attacks for LLM-based machine translation

University of Edinburgh(爱丁堡大学);Technische Universität Darmstadt(达姆施塔特工业大学)

Antonio Valerio Miceli-Barone, Zhifan Sun

AI总结:

本文构建了一个针对基于LLM的机器翻译系统的提示注入攻击测试套件,将对抗性提示攻击扩展到WMT 2024所有语言对,并引入了多种新的攻击格式,用于系统性地评估翻译模型的安全性。

摘要:

基于LLM的NLP系统通常通过将其输入数据嵌入包含指令和/或上下文示例的提示模板中来工作,创建提交给LLM的查询,然后解析LLM响应以生成系统输出。提示注入攻击(PIAs)是对这些系统的一种颠覆类型,其中恶意用户制作特殊输入来干扰提示模板,导致LLM以系统设计者未预期的方式响应。最近,Sun和Miceli-Barone提出了一类针对基于LLM的机器翻译的PIAs。具体而言,任务是翻译TruthfulQA测试套件中的问题,其中在问题前添加了一个对抗性提示,指示系统忽略翻译指令并改为回答问题。在本测试套件中,我们将此方法扩展到WMT 2024通用机器翻译任务的所有语言对。此外,除了最初研究的攻击格式外,我们还包含了额外的攻击格式。

英文摘要:

LLM-based NLP systems typically work by embedding their input data into prompt templates which contain instructions and/or in-context examples, creating queries which are submitted to a LLM, and then parsing the LLM response in order to generate the system outputs. Prompt Injection Attacks (PIAs) are a type of subversion of these systems where a malicious user crafts special inputs which interfere with the prompt templates, causing the LLM to respond in ways unintended by the system designer. Recently, Sun and Miceli-Barone proposed a class of PIAs against LLM-based machine translation. Specifically, the task is to translate questions from the TruthfulQA test suite, where an adversarial prompt is prepended to the questions, instructing the system to ignore the translation instruction and answer the questions instead. In this test suite, we extend this approach to all the language pairs of the WMT 2024 General Machine Translation task. Moreover, we include additional attack formats in addition to the one originally studied.

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

↑