SecPO: Principled Adversarial Training for Prompt Injection Security
TL;DR - SecPO combines a security-focused preference loss with strong adversarial training to make LLM agents substantially more resistant to adaptive prompt injection without noticeably reducing benign utility.
- SecPO avoids DPO’s dependence on an insecure, undefended reference model by approximating an injection-invariant, utility-preserving reference distribution.
- An adversarial training pipeline generates strong injected inputs using best@240 attack synthesis.
- Across three adaptive attacks, adversarial training reduced attack success rates by 1.5–14.5×; SecPO further reduced them by 2.4–4.6× versus DPO.
- On AgentDojo under AttackerMovesSecond, SecPO + adversarial training achieved 8.8% ASR@800 versus Meta-SecAlign’s 78.8%, with no noticeable utility loss across nine benchmarks.