Skip to content
EventPast event

Berkeley, DeepMind and Anthropic propose DefensiveToken prompt injection defense

1 reports1 reporting sourcesLatest report

Start here

AI overview

A joint team from UC Berkeley, Google DeepMind, and Anthropic proposes DefensiveToken, a test-time prompt injection defense: 5 optimized special tokens are prepended to the LLM input to make the model ignore injected instructions in external data, and only the token embeddings are optimized without modifying model parameters. On the largest TaskTracker benchmark, against manually designed injection attacks, its average attack success rate is 0.24%, close to the 0.20% to 0.51% of training-time defenses.

Generated by AI from reports · Updated 6 days ago

Attention and developments

Attention, hourly

Now 36, 0% in 24 hours·Peak 38 (Nov 7 14:00)

Nov 8Nov 9Nov 10Nov 11Nov 12Nov 13Now 36

Related research

Papers whose work the reports mention

Progress timeline

Nov 7
  1. WeChat · Weijiqi Lixin
    UC Berkeley et al. propose DefensiveToken, a prompt injection defense that can be toggled at test time

    A joint team from UC Berkeley, Google DeepMind and Anthropic proposes a test-time prompt injection defense scheme, DefensiveToken, which adds 5 optimized special tokens before the LLM input to make the model ignore injected instructions in external data; the scheme only optimizes token embeddings and does not modify model parameters. On the largest TaskTracker benchmark, against manually designed injection attacks, its average attack success rate was 0.24%, close to the 0.20% to 0.51% of training-time defenses, while test-time baselines such as Reminder and Sandwich were all above 11%; against GCG-optimized attacks, the average attack success rate dropped from 95.2% to 48.8%. The authors note that the scheme only addresses the case where user instructions are benign and external data is malicious, and cannot defend against jailbreak attacks with malicious users; optimizing these 5 tokens requires about 1 hour of training on 4 A100s.

Related discussion

No discussion links have been collected for this event yet.

Attention trend

New sources per day

1 in 7 days·most 1 (Nov 7)·today 0

  • Nov 7: 1 new sources (1 outlets, 0 accounts)
  • Nov 8: 0 new sources (0 outlets, 0 accounts)
  • Nov 9: 0 new sources (0 outlets, 0 accounts)
  • Nov 10: 0 new sources (0 outlets, 0 accounts)
  • Nov 11: 0 new sources (0 outlets, 0 accounts)
  • Nov 12: 0 new sources (0 outlets, 0 accounts)
  • Nov 13: 0 new sources (0 outlets, 0 accounts)

Hourly attention

Current attention 36·Peak in the comparable period 38 (Nov 7 14:00)·Change over the comparable past 24 hours 0%

010203040Nov 714:00Nov 910:00Nov 1106:00Nov 1302:00