Tensor Trust: interpretable prompt injection attacks from an online gameTensor Trust: Interpretable Prompt Injection Attacks from an Online Game
Quick read
Based on the paper's full text (AI-generated); refer to the original
Researchers from UC Berkeley and other institutions released a prompt injection dataset collected through the online game Tensor Trust, containing more than 126,000 attacks and more than 46,000 defenses, and built two robustness benchmarks from it: prompt extraction and prompt hijacking. The game simulates a banking scenario, where players write defense prompts to protect an access code, and attackers, without seeing the defense, try to make the backend model GPT 3.5 Turbo output access granted. Evaluations of 8 models including GPT-4, Claude 2, PaLM 2 and LLaMA 2 Chat show that many models struggle to withstand the human attack strategies in the dataset, with GPT-4 clearly leading in hijacking robustness. The researchers also transferred some attack strategies to real applications such as ChatGPT, Claude, Bard, Bing Chat and Notion AI, successfully eliciting outputs these applications had originally refused. The data and code have been released at tensortrust.ai/paper.
- LLM applications are vulnerable to prompt injection attacks, in which malicious third-party input subverts the system designer's intent, potentially leading to Bing Chat being used for phishing or leaking instructions. The authors aim to use large-scale human attack data to study and evaluate this vulnerability.
- The authors built the online game Tensor Trust: players write defense prompts so that the model outputs "access granted" only when a secret access code is entered, while other players use prompt injection to attack without knowing the access code or the defense. Based on player-submitted data, they built two types of robustness benchmarks: prompt extraction and prompt hijacking.
- The dataset contains 126,808 attack entries and 46,457 defense entries. Benchmarks show that multiple models are vulnerable to attack; GPT-4 performed best on both types of benchmarks, Claude 1.2 was relatively strong against injection but had lower defense effectiveness, and the LLaMA series showed a trade-off between defense effectiveness and attack resistance. Some attack strategies can also transfer to real LLM applications.
- The benchmark only examines whether the model outputs a specific string, which is simpler than real applications; when attacks are transferred to real applications, manual adjustment is still needed, and they do not all work reliably. The authors note that models still need to better distinguish "instructions" from "data", and call for continued research on more robust prompt extraction detection.
The paper open-sources 126,000 prompt injection attacks and 46,000 defenses produced by players, and provides reproducible extraction and hijacking robustness benchmarks.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- Anthropic Alignment Sciencecites the paper's id or linkAnthropic 研究:自动化对齐研究者在小模型上缓解十类对齐失败
Injection Attacks from an Online Game.” arXiv Preprint arXiv:2311.01011.