SecPO: Principled Adversarial Training for Prompt Injection Security
SecPO is a DPO-variant loss from UC Berkeley for training LLMs against indirect prompt injection. It replaces the undefended-model reference on injected input with its output on the clean input, a one-line change, and pairs with a PAIR-based adversarial training pipeline. On Qwen3.6-27B, AgentDojo ASR@800 is 8.8% against 78.8% for Meta-SecAlign, with utility unchanged across nine benchmarks. Code, training set and weights are released.
training, researchΒ· Added 3 Nov 2026, published 30 Oct 2026










.png)









