A research team presents ShallowDefend, a method intended to protect language models from harmful requests spread across multi-turn conversations. It focuses on where the researchers say safety behavior is often concentrated: the first few output tokens, which can shape the course of the rest of a response.
ShallowDefend uses an “Assess → Decide → Respond” sequence. The model first evaluates the user’s intent, commits to an explicit, parseable safety decision, and only then generates a reply conditioned on that decision. Reinforcement learning trains the commitment at the relevant conversation turn. One reward can check the decision against the known nature of the conversation, which the paper says requires neither a separate judge nor annotations. Alternatively, an LLM can act as a judge, including for graded decisions with safe redirection.
In a controlled comparison across two model families and 14 benchmarks, the defenders achieved the strongest multi-turn safety, according to the paper. They maintained their safety lead while preserving utility, with a modest cost to helpfulness. Token-level analysis and interventions on the models support the explanation that the brief decision causally steers the response.
The researchers therefore turn the short span that attackers can exploit into a point of defense. The original arXiv paper: https://arxiv.org/abs/2610.40627v1 provides details on the method, comparisons, and analyses.