DeBERTa-v3 prompt-injection detector scores 75.5% with types held out
Original title: Prompt Injection Detection using DeBERTa-v3: A Position-Neutral Dataset for AI Security
The same setup scores 100% on a random split, and both it and ProtectAI miss most deepset injections.
The paper proposes a synthetic prompt-injection dataset across 16 categories, labeling by instruction intent rather than position or attack vocabulary, including hard negatives. Obfuscation, payload splitting, and multilingual attacks are held out of training. A fine-tuned DeBERTa-v3-base classifier reaches 75.5% under that strategy and 100% on a random 90:10 split. On deepset/prompt-injections, the fine-tuned model and ProtectAI each detect fewer than half the injections.
- Benign and malicious instructions appear inside and outside the quoted content block.
- An ablation attributes the accuracy gap more to attack-type exposure than to size or capacity.
- Held-out types are obfuscation, payload splitting, and multilingual attacks.
- The authors conclude classifier defenses depend on attack types covered in training.
- Products
- ProtectAI
- AI models
- DeBERTa-v3-base
From the original article
1 min read at arxiv.orgPrompt injection attacks attempt to override application-provided instructions and redirect Large Language Models (LLMs) towards attacker-specified behaviour, posing an Artificial Intelligence (AI) security threat. Defending against these attacks commonly involves classifiers that distinguish malicious from benign prompts.
By Mirza Akhi · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.