ERASE: Erasing injected regions and using online self-distillation to defend against multimodal prompt injectionErase the Injected Region: Multimodal Prompt-Injection Defense with On-Policy Self-Distillation
Translation in progress — untranslated text is omitted.
ERASE replaces injected regions in multimodal media with blank content and preserves the surrounding content, then trains a student model with online self-distillation to defend against multimodal indirect prompt injection. On images, audio, and video and at two model scales, the observed attack success rate was close to zero, and task utility was close to clean input without defense. The 3B audio attacked-input accuracy was 60.1%, higher than ARGUS's 33.1%; injection dependence dropped from 6.26 to 0.0095.
- Multimodal indirect prompt injection hides malicious instructions in images, audio, or video that the user's task also needs. The authors state existing defenses can block attacks but harm the model's use of useful information in the media, and there is a gap between defense and task preservation.
- ERASE uses on-policy self-distillation: replace the injection region in place with blank content of that modality to obtain the erased view, use a frozen base reading the erased view as teacher, have the student read the attacked media and sample on its own, and at each prefix match the teacher's next-token distribution with full-vocabulary KL.
- On the Lu et al. (2026) benchmark across three modalities and two sizes, 3B/7B, ERASE's AIA is 0.000 in all cases; 3B audio UIAi is 60.1% (ARGUS 33.1%); 3B audio Dinj drops from 6.26 to 0.0095; OOD average accuracy is close to the base.
- The authors note: the injection region R is assumed separable from benign content, and when mixed, erasure may delete task-required information; robustness against adaptive attacks was not evaluated. OOD evaluation is reported only on 3B; diagnostics use only the first 100 validation items per modality.
Related papers
Both use: OCRBench