A Two-Neuron Edit To Mitigate Prompt Injections with Minimal Model Drift
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 20:23 UTC · fbdf77a90944 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "tuVoXYPM4s"- }- ],- "title": "A Two-Neuron Edit To Mitigate Prompt Injections with Minimal Model Drift",- "authors": [],- "abstract": "Indirect prompt injection causes language agents to follow instructions embedded in untrusted tool outputs instead of the user's request. Its success across several language models raises a fundamental question: does a prompt injection succeed because the model cannot identify where the instruction came from? We find that this is not necessarily true. Across Qwen models from 4B--27B, we find that successfully injected instructions remain strongly identifiable as tool-originating in internal representations, even when the model follows them. We call this dissociation the \\textbf{\\emph{source--behavior gap}}: source is represented, but behavior does not reliably respect it.\n\nThis gap suggests a localized defense: reuse the model's existing tool-source information and learn the behavioral correction needed to make it actually be used by the model. Our method compiles this behavioral correction into \\textbf{just two existing SwiGLU neurons} of the model: an internal tool-content signal determines when the edit should be applied, while a learned residual-stream correction determines what should be written to restore clean behavior under attack. This approach improves robustness while mostly preserving original model behavior. On Qwen3.6-27B, our method reduces AgentDojo attack success from $28.9\\%$ to $0.9\\%$ while maintaining clean utility at $90.7\\%$. On ordinary prompts, $79.5\\%$ of outputs remain exactly unchanged from the base model with next-token KL divergence at only $4.0\\times10^{-4}$ from it, compared with $2.3\\times10^{-3}$ - $1.65\\times10^{-1}$ for other baseline defenses. This robustness also persists under adaptive attacks like AutoDojo, where attack success remains $1.6\\%$ compared with $59.7\\%$ for the undefended model.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "33c9858f-5761-4f49-bbe0-f1fb823c2f87"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "A Two-Neuron Edit To Mitigate Prompt Injections with Minimal Model Drift",+ "authors": [],+ "abstract": "Indirect prompt injection causes language agents to follow instructions embedded in untrusted tool outputs instead of the user's request. Its success across several language models raises a fundamental question: does a prompt injection succeed because the model cannot identify where the instruction came from? We find that this is not necessarily true. Across Qwen models from 4B--27B, we find that successfully injected instructions remain strongly identifiable as tool-originating in internal representations, even when the model follows them. We call this dissociation the \\textbf{\\emph{source--behavior gap}}: source is represented, but behavior does not reliably respect it.\n\nThis gap suggests a localized defense: reuse the model's existing tool-source information and learn the behavioral correction needed to make it actually be used by the model. Our method compiles this behavioral correction into \\textbf{just two existing SwiGLU neurons} of the model: an internal tool-content signal determines when the edit should be applied, while a learned residual-stream correction determines what should be written to restore clean behavior under attack. This approach improves robustness while mostly preserving original model behavior. On Qwen3.6-27B, our method reduces AgentDojo attack success from $28.9\\%$ to $0.9\\%$ while maintaining clean utility at $90.7\\%$. On ordinary prompts, $79.5\\%$ of outputs remain exactly unchanged from the base model with next-token KL divergence at only $4.0\\times10^{-4}$ from it, compared with $2.3\\times10^{-3}$ - $1.65\\times10^{-1}$ for other baseline defenses. This robustness also persists under adaptive attacks like AutoDojo, where attack success remains $1.6\\%$ compared with $59.7\\%$ for the undefended model.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}