TL;DR
Large Language Models (LLMs) are getting surprisingly good at refusing one-off malicious prompts, so attackers have pivoted to "slow-burn" multi-turn conversations that gradually nudge the model off the rails. Conf-Guard wraps existing safety classifiers in a mathematical framework called conformal prediction, dynamically tracking a conversation’s safety score and pulling the plug the moment it crosses a calibrated line. Best of all, it comes with a formal, math-backed guarantee: you pick the exact percentage of attacks you want to block, and Conf-Guard ensures you hit that target without needing to know what the underlying data distribution looks like.
What Problem Does This Paper Address?
Imagine a bouncer who only checks IDs at the front door, completely ignoring patrons once they are inside. That is essentially how most LLM safety guardrails and abstention methods work today: they treat safety as a single-turn problem.
While modern alignment techniques (like RLHF) have largely neutralized single-prompt "jailbreaks," adversaries have adapted. They now use multi-turn strategies, steering an LLM through a sequence of seemingly innocent questions—say, starting with sports rivalries and slowly escalating to psychological warfare—until the model rationalizes its way into generating harmful content. Existing defences are disproportionately vulnerable to these conversational exploits. Furthermore, traditional classifiers just spit out uncalibrated probabilities; they offer zero formal guarantees on what percentage of attacks they will actually stop in the wild.
Methods
At its heart, Conf-Guard is a dynamic wrapper built on Conformal Prediction (CP)—a classic statistical method that turns heuristic uncertainty scores into rigorous probability guarantees, regardless of the data distribution or model architecture.
Here is how Conf-Guard adapts this to a live chat:
- Dynamic Scoring & Halting: At every turn $t$ of a conversation, a score function $s$ evaluates the dialogue so far. Lower scores mean higher confidence that a jailbreak is happening. If the score drops below a threshold $\hat{\lambda}$, Conf-Guard immediately terminates the conversation (see Figure 1 above, where a conversation about sports rivalries gets shut down at Turn 2). This works in both a prompt-response setting (checking the LLM's generated answer before showing it) and a compute-saving prompt-only setting (checking just the user's input).
- Conformal Calibration: Instead of guessing a threshold like
0.5, the authors calibrate $\hat{\lambda}$ using a small set of known malicious conversations annotated with the exact turn they go bad. If you set your risk tolerance $\gamma$ to 0.90, Conf-Guard calculates the least conservative threshold that still halts at least 90% of attacks before any unsafe text is shown. - Smarter Score Functions: Any safety guarantee can be trivially satisfied by a paranoid system that blocks everything. To keep False Refusal Rates (FRR) low on benign chats, the authors combine two signals:
- $s_{\text{prob}}$: The negative log-probability from an off-the-shelf jailbreak classifier (like LlamaGuard or WildGuard).
- $s_{\text{out}}$: An outlier detection score measuring the $k$-nearest-neighbor ($k=5$) embedding distance between the current turn and a reference bank of normal, benign turns.
- They combine these either by adding them ($s_{\text{fuse}}$) or by running separate calibrated stopping rules and halting when any ($\tau_{\wedge}$) or all ($\tau_{\vee}$, adjusted via Bonferroni or max-rank corrections) trigger.
Datasets
To evaluate Conf-Guard, you need multi-turn malicious chats with turn-level labels, plus normal chats to check for false alarms. Because no existing dataset checked all those boxes, the authors built an automated red-teaming benchmark:
- Synthetic Suites (
Gemini&GPT): An LLM Attacker (equipped with 13 distinct multi-turn jailbreak strategies across 10 topics) tries to break an LLM Responder (e.g., Gemini-2.5-Flash attacking Gemini-2.5-Pro, and GPT-4.1 attacking GPT-5). They also created "High-Compliance" (-HC) variants where the Responder is prompted to prioritize helpfulness over safety, isolating the guardrail's true blocking power. - Human-Grounded Suites (
SA-WC&SA-WC-HC): Combines human red-teaming prompts from ScaleAI-MHJ (simulated forward with a Gemini Responder) with real, benign human-chatbot logs from WildChat.
Key Insights and Ideas
- Exchangeability is milder than it sounds: Conformal guarantees require data to be exchangeable (roughly, order-independent). Crucially, Conf-Guard does not assume turns within a chat are independent—obviously, an attacker adapts turn-by-turn! It only requires that entire conversations are exchangeable (e.g., randomly sampling red-teamers from a pool).
- Benign data is a secret weapon: Malicious multi-turn data is expensive to curate, making classifier fine-tuning impractical for most developers. However, benign chat logs are abundant. By measuring how much a turn looks like an outlier compared to normal chats ($s_{\text{out}}$) and pairing that with small-sample conformal calibration, you get massive boosts in guardrail quality without training a single weight.
- Data efficiency: Because conformal prediction holds for finite samples, Conf-Guard doesn't need thousands of attack examples. Calibrating on just 60 malicious conversations yields performance nearly identical to calibrating on over 400.
Key Results
Across 78 experimental configurations (6 datasets, 2 settings, and up to 7 base classifiers), Conf-Guard empirically satisfied its theoretical safety guarantee without exception.
As shown in Figure 2, the empirical blocking rates (1 - ASR) hug or sit safely above the theoretical $y = \gamma$ diagonal, while the custom combined/outlier scores dramatically bend the False Refusal Rate (FRR) curve downward compared to naively using the base classifier (Prob).
When fixing the False Refusal Rate at a strict 5% (ASR@5%), Conf-Guard beat individual baseline classifiers in 11 out of 12 dataset-setting pairs:
- On
SA-WC-HC(prompt-response), Conf-Guard dropped the Attack Success Rate to 47.2%, beating Qwen3Guard (56.2%), WildGuard (62.9%), and LlamaGuard-3 (68.5%). - On
GPT-HC, Conf-Guard pushedASR@5%down to 3.4% (prompt-response) and 2.4% (prompt-only). - Against a zero-shot GPT-4.1 guardrail on
Gemini-HC(at 0.0% FRR), Conf-Guard slashed the response ASR from 72.6% down to 25.0%.
Limitations and Future Work
- Cat-and-Mouse Distribution Shifts: Jailbreak strategies evolve constantly. If attackers deploy brand-new strategies at test time that weren't present during calibration, the exchangeability assumption breaks. While ablations showed the score functions are fairly resilient, extreme shifts can cause the guarantee to slip; integrating conformal methods designed for distribution shift is a natural next step.
- Beyond Jailbreaks: While this paper focused exclusively on adversarial safety, the mathematical machinery of Conf-Guard is task-agnostic. Future work could apply this exact multi-turn abstention framework to halt hallucinations, off-topic drift, or medical/financial overreach in conversational AI.
Summary updated