Reproduce “DataSentinel: A Game-Theoretic Detection of Prompt Injection Attacks” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Yupei Liu, Yuqi Jia, Jinyuan Jia, Dawn Song, Neil Zhenqiang Gong
DataSentinel introduces a game-theoretic framework for detecting prompt injection attacks in large language models by adversarially fine-tuning a detection LLM. The method achieves near-zero false positive rates and false negative rates consistently below 0.07 against both existing and adaptive prompt injection techniques, significantly outperforming prior state-of-the-art detection strategies.
Key insights
- Fine-tuning a detection LLM to be more susceptible to following injected prompts paradoxically enhances its ability to signal prompt injection attempts.
- Modeling the interaction between detector and attacker as a minimax game allows the detection LLM to be robustly trained against adaptive, optimized prompt injection attacks.
- An iterative adversarial training process, involving alternating optimization of attacker prompts and detector parameters, is essential for continuous improvement against sophisticated adversaries.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.