Learned attention gates make prompt injection costlier
Reviewing Heads of Security: Learned Attention Gates Improve Prompt Injection Robustness · Igor Shilov, Xiaoxue Yang, Alexander Panfilov et al.
Researchers add small learned gates to each attention head so a model weighs trusted and untrusted text differently, sharply cutting prompt injection success while keeping the base model frozen. The defence holds up better than most against attackers who know it is there, but it only enforces a trust boundary someone else has to draw.























