atlas

Research map / Large language models / Language, safety and interpretability

Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Safety alignment of LLMs · 8 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Releases a large dataset of human-written prompt injection attacks and defenses collected from the Tensor Trust web game, builds two robustness benchmarks (hijacking and extraction) and evaluates eight LLMs on them.

Problem

LLM applications are vulnerable to prompt injection, but existing adversarial datasets focus on jailbreaks or are automatically generated and hard to interpret; there is little human-generated prompt injection data with defenses.

Approach

Crowdsource attacks and defenses through an online game where players defend a secret access code with prompts and others attack; the resulting data is used to build filtered robustness benchmarks for prompt hijacking and prompt extraction, with adversarial filtering against reference models.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use GPT-4 instead of GPT-3.5 TurboTensor Trust prompt hijacking benchmark · Prompt hijacking robustness benchmarkHRR: 18.4% -> 84.3%Helped
Use GPT-4 instead of GPT-3.5 TurboTensor Trust prompt hijacking benchmark · Prompt hijacking robustness benchmarkDV: 89.2% -> 81.7%Hurt
Use GPT-4 instead of GPT-3.5 TurboTensor Trust prompt extraction benchmark · Prompt extraction robustness benchmarkERR: 12.3% -> 69.1%Helped
Use GPT-4 instead of GPT-3.5 TurboTensor Trust prompt extraction benchmark · Prompt extraction robustness benchmarkDV: 91.1% -> 89.5%Hurt
Use GPT-4 instead of GPT-3.5 TurboZero-shot prompt extraction detection · Prompt extraction detection datasetAccuracy: 56.5% -> 90.9%Helped
Use GPT-4 instead of GPT-3.5 TurboZero-shot prompt extraction detection · Prompt extraction detection datasetRecall: 13.0% -> 84.3%Helped
Use GPT-4 instead of GPT-3.5 TurboZero-shot prompt extraction detection · Prompt extraction detection datasetPrecision: 100.0% -> 97.0%Mixed
Change the message-role assignment (ablation)GPT-3.5 Turbo in Tensor Trust · Prompt hijacking and extraction benchmarksPerformance across metricsNo clear effect
Mark the attack/access-code message as system instead of user (user/system/user) (ablation)GPT-3.5 Turbo in Tensor Trust · Prompt hijacking and extraction benchmarksPerformance across metricsHurt

Surprising findings

Limitations

Experimental setup

Datasets: Tensor Trust game attacks and defenses

Benchmarks: Tensor Trust prompt hijacking benchmark Tensor Trust prompt extraction benchmark Tensor Trust prompt extraction detection dataset

Metrics: Hijacking Robustness Rate Extraction Robustness Rate Defense Validity precision recall accuracy

Baselines: GPT-3.5 Turbo GPT-4 Claude-instant-1.2 Claude-2.0 PaLM 2 Llama-2-7b-chat Llama-2-13b-chat Llama-2-70b-chat CodeLlama-34b-Instruct

Builds on: LDA topic modeling minhash locality-sensitive hashing

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy