Steering Dialogue Dynamics for Robustness against Multi-turn Jailbreaking Attacks
Hanjiang Hu, Alexander Robey, Changliu Liu · 2025 · 18 citationsRead the paper
Large language models (LLMs) are shown to be vulnerable to jailbreaking attacks where adversarial prompts are designed to elicit harmful responses. While existing defenses effectively mitigate single-turn attacks by detecting and filtering unsafe inputs, they fail against multi-turn jailbreaks that exploit contextual drift over multiple interactions, gradually leading LLMs away from safe behavior. To address this challenge, we propose a safety steering framework grounded in safe control theory, ensuring invariant safety in multi-turn dialogues. Our approach models the dialogue with LLMs using state-space representations and introduces a novel neural barrier function (NBF) to detect and filter harmful queries emerging from evolving contexts proactively. Our method achieves invariant safety at each turn of dialogue by learning a safety predictor that accounts for adversarial queries, preventing potential context drift toward jailbreaks. Extensive experiments under multiple LLMs show that our NBF-based safety steering outperforms safety alignment, prompt-based steering and lightweight LLM guardrails baselines, offering stronger defenses against multi-turn jailbreaks while maintaining a better trade-off among safety, helpfulness and over-refusal. Check out the website here https://sites.google.com/view/llm-nbf/home.
What the full text shows
Working prototype- NBF steering significantly reduced Attack Success Rate (ASR) across multiple closed-source LLMs compared to baseline models. — GPT-3.5-turbo ASR dropped from 0.585 to 0.040 (ActorAttack); GPT-4o ASR dropped from 0.600 to 0.035 (ActorAttack) (Against ActorAttack on closed-source LLMs)
- NBF steering outperformed LoRA SFT and system prompts in reducing ASR for open-source models. — Llama-3-8b-instruct ASR reduced to 0.040 (ActorAttack) vs 0.070 (LoRA SFT) and 0.280 (system prompt) (Using NBF steering with η = 1e−3)
- The MPNet-based NBF achieved higher prompt harmfulness detection F1 scores than larger guardrail models. — 0.811 F1 on HarmBench vs 0.672 for LLaMA Guard 7B (Prompt harmfulness detection task)
- NBF steering maintained high helpfulness scores while improving safety. — GPT-4o MTBench score changed from 9.35 to 8.77 (Closed-source LLM evaluation)
- Setup
- Evaluated on GPT-3.5-turbo, GPT-4o, o1, Claude 3.5 Sonnet, Llama-3-8b-instruct, and Phi-4 using ActorAttack, Crescendo, and Opposite-day attacks on the Harmbench dataset.
- How
- The authors modeled multi-turn dialogues as state-space representations using pretrained sentence embeddings and trained neural networks for dialogue dynamics and a safety predictor. They implemented a Neural Barrier Function (NBF) to proactively detect and filter harmful queries based on the evolving dialogue state before they reach the LLM.
- Limitations
- Potential for over-cautious filtering reducing helpfulness in sensitive but non-harmful topics. · Reliance on safety judges and embedding models may introduce biases. · Possibility of new attack strategies specifically designed to circumvent the barrier function.
Summarized by Gemma 4 from the open-access full text · 11 Nov 2026. Read it