Prompt injection detection using DeBERTa-v3: A position-neutral dataset for AI safetyPrompt Injection Detection using DeBERTa-v3: A Position-Neutral Dataset for AI Security
The paper proposes a position-neutral synthetic prompt injection dataset with 16 categories, where each prompt's category is determined by instruction intent rather than position of occurrence or attack vocabulary; benign and malicious instructions can both appear inside or outside quoted content blocks, and it also includes benign hard negatives containing attack terms. The authors fine-tune a DeBERTa-v3-base classifier and achieve 75.5% accuracy under a held-out strategy that excludes obfuscation, payload splitting, and multilingual attacks from training, while the same configuration reaches 100% on the test portion of a random 90:10 split. Ablation experiments attribute the gap to attack-type exposure, whose effect is greater than training set size or model capacity. On the public deepset/prompt-injections dataset, the fine-tuned classifier and the ProtectAI classifier each detect fewer than half of the injections. The authors state that these results indicate that classifier defenses for LLM applications depend on the attack types covered in training.
Related events and news
1 events · 0 news mentions
- This event's paper
论文提出位置中立提示注入数据集与分类器