Skip to content

DRIP: Defending Against Prompt Injection via Token-Level Representation Editing and Residual Instruction FusionDRIP: Defending Prompt Injection via Token-wise Representation Editing and Residual Instruction Fusion

arXiv· arXiv:2511.00447· Ruofan Liu, Yun Lin, Zhiyong Huang, Jin Song Dong·Indexed by this site · 26 days ago· Originally publishedDefenses
AI summary

Researchers propose a defense method called DRIP, which removes instruction semantics by editing the embedding representations of instruction-like tokens in the data portion, and adds a residual module to reduce the ability of adversarial data to override the original instructions, in order to defend large language models against prompt injection. The method is compared with StruQ, SecAlign, ISE and PFT on LLaMA 8B and Mistral 7B, and evaluated on three prompt injection benchmarks: SEP, AlpacaFarm and InjecAgent. Results show role separation scores improve by 12-49%, attack success rates under adaptive attacks drop by more than 66%, and utility is comparable to undefended models; the paper states it establishes a new SOTA in prompt injection robustness.

Read originalarxiv.org