Thoughts on Role Confusion 0 ▲ Giles' blog 155 days ago · 6 min read1296 words · Tech · hide · Fediverse post The other day, I came across "Prompt Injection as Role Confusion" (via Simon Willison). It's a really interesting blog-style version of a paper by Charles Ye, Jasmine Cui and Dylan Hadfield-Menell, where they find that LLMs seem to almost ignore 'role' tags like <system>, <user> or <think>, and instead use the tone of text to infer roles. This seems to explain a lot of jailbreaks. The paper When LLMs are reasoning about their context to work out what tokens they need to generate next, they need to separate out different things: what the system prompt says, what the user says, what the LLM itself has said in the past -- and for recent LLMs, what their own past thoughts have been -- their reasoning traces -- and what they've sent to and received from their tools. These "roles" for each bit of text need to be specified in the context. For example, in a simple chatbot (say, 2022-vintage), it might be written up a bit like a transcript: The following is a transcript of a conversation… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town