ArsGuard: a multilingual prompt-injection detector trained on native English, Spanish and Russian attacks — technical note
ArsGuard is an open-source prompt-injection detector for AI agents. Given a text an agent is about to read, it says whether the text is an injection or benign. I fine-tuned all weights of microsoft/mdeberta-v3-base, a multilingual transformer with about 280M parameters, on 241,162 examples. 38k of them come from ArsGuard Injections, a new dataset of native English, Spanish and Russian attacks where each attack has a benign twin of the same form. The rest come from open datasets with permissive licenses. Training ran in rounds, with an exam on held-out external datasets after each one, and the released model is round 2 of 4. The chosen round was then scored once on an independent test of 4,783 native texts from a different generator and task. There ArsGuard catches 99.5% of attacks (AUC 0.995), while ProtectAI v2 catches 61.2% (AUC 0.530). False alarms are 20.0% and 54.4%. Of ArsGuard's false alarms, 71% are texts about prompt injection or AI security. Code, model and dataset are released under MIT.
Authors
- Evgeny V. Arsentyev (ORCID: https://orcid.org/0000-0002-9120-7298)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24782260
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00