← Back to feed

Heads of Security: Learned Attention Gates Improve Prompt Injection Robustness

L5 · ResearcherResearcharXiv· 10/27/2026

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

Read Original
0 upvotes · 0 downvotes · 1 min read

Related Articles

L5 · ResearcherResearcharXiv
Attention as Lattice Gauge Theory: Relations Interact Only Through Wilson Loops

Researchers propose a novel attention mechanism based on lattice gauge theory where relations interact only through Wilson loops, achieving strong performance on relational reasoning tasks.

L5 · ResearcherResearchLessWrong AI
Constitutions for Future, More-Capable Versions of Claude

Anthropic researcher proposes constitutional AI frameworks for future Claude models across Google DeepMind's AGI taxonomy levels.

L5 · ResearcherResearcharXiv
Honeycomb-Surfels: Compact Hexagonal Primitives for Efficient Scene Rendering and Reconstruction

Researchers introduce Hexels, hexagonal surface elements that improve 3D scene rendering efficiency by 4.53-7.38 dB PSNR over memory-matched 2DGS while using less VRAM.

L5 · ResearcherResearcharXiv
When Should We Intervene at Test Time?

Researchers introduce PORTAL, a controller that intelligently decides when to deploy test-time interventions and which inputs to label for optimal adaptation.

L5 · ResearcherResearcharXiv
Pushing Dexterity and Safety for In-Hand Object Pose Reaching That Works Remarkably Well

Researchers developed a dexterous manipulation system that achieves 95.2% success rate on in-hand object pose reaching tasks while reducing drops by 75% with a safety filter.