Manuscript Offprint

arXiv:2610.40627

ShallowDefend: Harnessing Shallow Safety Alignment for Multi-Turn Defender

Qiyao Ma, Xiaodong Liu, Weiwei Yang, Mingqian Feng, Chengquan Guo, Jialin Song, Carolyn Buractaon, Zhe Zhao, Junshan Zhang, Sandeep Atluri, Christopher White, Jianfeng Gao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Safety alignment has enabled large language models to reliably refuse harmful requests directly, yet the same request distributed across a multi-turn conversation still succeeds far too often. This brittleness has a mechanistic root: Alignment is shallow, with safety behavior concentrated in a model's first few output tokens, and existing defenses inherit the weakness, supervising the surface form of the response without ever giving the model an explicit safety decision to learn. We take the opposite view of shallowness: if a short span determines the trajectory of an entire response, that span is the highest-leverage place to intervene, and the defender can occupy it first. We propose Assess → Decide → Respond, a framework in which the defender assesses the user's intent, commits to an explicit, parseable safety decision, and only then generates a reply conditioned on it, with the commitment trained by reinforcement learning at the payload turn. Because the decision is a token span, the reward can be a rule: a self-verified reward checks the committed label against the conversation's known nature, requiring no judge and no annotation, while the same format also supports an LLM-as-judge reward over a graded decision space with safe redirection. Across two model families and fourteen benchmarks spanning safety, utility, and helpfulness, our defenders achieve the strongest multi-turn safety in a controlled comparison, maintaining their lead in safety while preserving utility at a modest cost to helpfulness. A per-token KL analysis and interventional probes confirm why this works: training concentrates its effect on the brief deliberation that sets a response's trajectory, and the decision committed there is a causal control point. The very shallowness attackers exploit becomes the mechanism of defense.

1 INTRODUCTION

As large language models (LLMs) are deployed across an ever-widening range of applications, ensuring that they behave safely has become as important as advancing their capabilities. Safety alignment, training models to refuse harmful requests while remaining helpful on benign ones, is now a standard stage in the development of every frontier model (Ouyang et al., 2022; Sharma et al., 2025; Cunningham et al., 2026). This investment has paid off in the single-turn setting: successive rounds of safety training and red-teaming have made aligned models substantially robust to single-turn jailbreaks, from handcrafted prompts to optimized adversarial suffixes (Bai et al., 2022; Zou et al., 2023; Ganguli et al., 2022), and a harmful request posed directly is now refused with high reliability. Multi-turn dialogue, however, remains far less protected. In a single-turn attack, the malicious intent is evident in the prompt itself, while in a multi-turn conversation, the attacker can conceal it, distributing the request across turns so that each message appears innocuous (Russinovich et al., 2024; Weng et al., 2025; Alobaid et al., 2026). Under such attacks models fail far more often, and human red-teamers continue to defeat defenses that report near-perfect single-turn robustness (Li et al., 2024; Feng et al., 2026; Song et al., 2026; Rahman et al., 2025).

A growing line of defenses targets this setting: supervised fine-tuning on adversarial dialogues (Rahman et al., 2025), preference optimization over safe and unsafe replies (Jiang et al., 2024; Yan et al.,

∗^{*}Work done during the internship at Microsoft Research.

2025), reinforcement learning with judge-based rewards (Guo et al., 2025), representation-level interventions (Lu et al., 2025), and inference-time prompting that asks the model to analyse the user's intention before answering (Zhang et al., 2025b). Beneath their differences, the training-based methods share a dependency: each needs an oracle in the loop, whether a harmfulness classifier, a preference labeler, or a guard model, to say what a safe response looks like, and each supervises the form of the response that oracle prefers. That dependency is costly and fragile. Judges disagree with one another on a substantial fraction of individual samples ( §4.2§4.2), so a reward built on one imports its errors into training and entangles the training signal with the evaluation metric. And because the model is only ever shown what safe replies look like, it never learns an explicit safety decision that a rule, rather than a model, could check.

A second observation says where such a decision belongs. Safety alignment is known to be shallow: an aligned model departs from its base almost exclusively over the first few output tokens (Qi et al., 2024a). Safety training, in effect, teaches the model to open with a refusal, and once a response opens compliantly the aligned distribution collapses back to the base model's. This is why prefilling an affirmative prefix defeats refusal (Vega et al., 2023; Andriushchenko et al., 2025), and it is how a multi-turn attacker wins: steer the conversation until the locally natural opener is compliant, and by the payload turn the refusal is gone before anything harmful has been written. Prior work reads this shallowness as a defect and tries to deepen alignment (Qi et al., 2024a). We read it as a map. If a short span at the front of the response sets the trajectory of everything that follows, that span is the highest-leverage place to intervene, and the defender can occupy it first, not with an implicit refusal prefix but with an explicit commitment.

We instantiate this idea as Assess → Decide → Respond. At every turn the defender briefly assesses the user's underlying intent, commits to a parseable safety decision, and only then writes a reply conditioned on that decision. The commitment is the heart of the design. It is externalized: a token span in the model's own output that a rule can read. It is binding: because it precedes the reply within the same generation, the reply is produced conditioned on it, so changing the commitment changes the response. And it is early: it occupies exactly the trajectory-setting positions that shallow alignment leaves exposed. We train the commitment with reinforcement learning, rewarding only the final turn of each conversation, where the attack delivers its payload and the defense must hold.

Externalizing the decision is what makes the reward simple. Training dialogues are grown from seed prompts whose nature is known in advance, so every trajectory carries a ground-truth label for free, and the reward reduces to a string comparison: REFUSE on conversations grown from harmful seeds, COMPLY on benign ones. No judge, no annotation, no model in the loop: a verifiable reward for conversational safety in the spirit of RLVR (Shao et al., 2024; Lightman et al., 2024). Where a judge is available, the same format supports the prevailing judge-scored design (Inan et al., 2023; Guo et al., 2025; Ding et al., 2025), with a graded decision space that adds SAFE-REDIRECT. And because the decision conditions the reply, training the decision span alone is enough to change end-to-end behavior.

Experiments on two model families (Grattafiori et al., 2024; Yang et al., 2025) and fourteen benchmarks spanning safety, utility, and helpfulness show that both variants match or exceed every baseline trained on the same data, that the lead holds under six independent judges, and that the self-verified variant achieves this with no judge in the loop and a recipe that runs unchanged across backbones. Utility is preserved, at a modest cost in helpfulness that we quantify. We summarize our contributions as follows:

• A multi-turn defense framework: Assess → Decide → Respond turns shallow alignment from a vulnerability into an explicit, trainable control point for safety alignment.

• Two complementary rewards: a self-verified reward that checks the committed label against the conversation’s known nature, requiring no judge and no annotation, and an external LLM-as-judge reward over a graded decision space with safe redirection.

• Comprehensive experiments and analysis: the strongest multi-turn safety in a controlled comparison across two model families, fourteen benchmarks, and six judges, achieved without per-backbone tuning, with KL and interventional analyses confirming that the defense operates through the committed decision.

Figure

Figure 1: Overview of our framework. At each turn, the defender assesses the user's intent, commits to an explicit decision, and generates a response conditioned on that decision. For reward computation, we consider two options: an external reward model that judges whether the response is jailbroken, or a rule-based self-reward that checks the final turn's committed label against the conversation's ground-truth nature. RL gradients are applied only to the final turn.

References (60)