Table of Contents
Fetching ...

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

Antonio Valerio Miceli-Barone, Zhifan Sun

TL;DR

This test suite extends the proposed class of PIAs against LLM-based machine translation to all the language pairs of the WMT 2024 General Machine Translation task, and includes additional attack formats in addition to the one originally studied.

Abstract

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.

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

TL;DR

This test suite extends the proposed class of PIAs against LLM-based machine translation to all the language pairs of the WMT 2024 General Machine Translation task, and includes additional attack formats in addition to the one originally studied.

Abstract

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.
Paper Structure (25 sections, 2 figures, 102 tables)

This paper contains 25 sections, 2 figures, 102 tables.

Figures (2)

  • Figure 1: Average successful attack rate for each system
  • Figure 2: Average successful attack rate vs and clean-dataset corpus BLEU for each system. Regression Slope: $-0.0016$, R² Score: $0.1443$.