Heads of Security: Learned Attention Gates Improve Prompt Injection Robustness
Novel architecture-level defense against prompt injection attacks with significant security improvements for LLM developers.
AI Summary
Researchers introduce Heads of Security (HoS), a injection defense using learned attention gates that achieves 10% attack success rate against black-box attacks compared to 97% for baseline models.
Excerpt
We introduce Heads of Security (HoS), a prompt injection defense that enforces instruction-data separation via a small set of learned per-head attention gates. HoS learns how each head should redistribute attention between trusted and untrusted tokens, enabling models to reason over untrusted content without following injected instructions. We evaluate HoS on Llama-3.3-70B-Instruct and GPT-OSS-20B. We compare it against SecAlign++, a state-of-the-art finetuning-based defense, and ASIDE, a defens
