Berkeley, DeepMind and Anthropic propose DefensiveToken prompt injection defense
Start here
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)
Related research
Papers whose work the reports mention
- The reports mention InjecAgentInjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model AgentsUC Berkeley et al. propose DefensiveToken, a prompt injection defense that can be toggled at test time
arXiv · 2024-03-05 · Deep reading
Progress timeline
- WeChat · Weijiqi LixinUC 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
Attention trend
New sources per day
- 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)