Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game

S. Toyer, Olivia Watkins, Ethan Mendes, Justin Svegliato, Luke Bailey +7 more
11/1/2023

No confident code implementation found for this paper.

Abstract

While Large Language Models (LLMs) are increasingly being used in real-world applications, they remain vulnerable to prompt injection attacks: malicious third party prompts that subvert the intent of the system designer. To help researchers study this problem, we present a dataset of over 126,000 prompt injection attacks and 46,000 prompt-based"defenses"against prompt injection, all created by players of an online game called Tensor Trust.

Show full abstract

To the best of our knowledge, this is currently the largest dataset of human-generated adversarial examples for instruction-following LLMs. The attacks in our dataset have a lot of easily interpretable stucture, and shed light on the weaknesses of LLMs. We also use the dataset to create a benchmark for resistance to two types of prompt injection, which we refer to as prompt extraction and prompt hijacking. Our benchmark results show that many models are vulnerable to the attack strategies in the Tensor Trust dataset. Furthermore, we show that some attack strategies from the dataset generalize to deployed LLM-based applications, even though they have a very different set of constraints to the game. We release all data and source code at https://tensortrust.ai/paper

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{toyer2023tensor,
  title  = {Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game},
  author = {S. Toyer and Olivia Watkins and Ethan Mendes and Justin Svegliato and Luke Bailey and Tiffany Wang and Isaac Ong and Karim Elmaaroufi and Pieter Abbeel and Trevor Darrell and Alan Ritter and Stuart Russell},
  year   = {2023},
  eprint = {2311.01011},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2311.01011},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.01011.svg)](https://codeofpaper.com/paper/2311.01011)

Discussion