Study attributes prompt injection to role confusion; rewriting text style can reduce attack success rate
Prompt Injection as Role Confusion
Research by Charles Ye, Jasmine Cui, and Dylan Hadfield-Menell points out that models struggle to distinguish their own privileged text (such as content wrapped in <system>, thinking, and <assistant> tags) from untrusted input in <user> tags, which the authors call role confusion. The study found that models value text style more than actual content, producing concerning jailbreak methods, such as appending text that mimics the style of the model's internal thinking blocks after a request, which can mislead models like gpt-oss-20b and override their initial training. The study also found that destyling operations, which rewrite text to look less like the format expected by role tags, significantly affect how models classify text, reducing the average attack success rate on the dataset from 61% to 10%.