Conf-Guard:带保形保证的动态多轮越狱检测框架
Conf-Guard: Dynamic Multi-Turn Jailbreak Detection with Conformal Guarantees
AI 导读
Conf-Guard 是一个针对大语言模型多轮越狱攻击的检测框架,通过跟踪随对话动态演变的标量分数并在越过阈值时终止对话来识别恶意意图。该阈值可实现分布无关的保形保证,形式化确保拦截用户指定比例的攻击。结合预训练越狱检测分类器与异常值检测的分数函数还能降低误拒率,代码已开源。
正文 · 原文
Abstract:As the applications of large language models (LLMs) expand to critical domains, their capacity for abstention becomes increasingly vital. Current methods treat abstention mostly as a single-turn problem, rather than a conversational one. This issue is of particular importance for securing LLMs against adversarial threats, which have recently shifted from single-turn attacks to sophisticated conversational exploits where malicious intent gradually unfolds across multiple turns. Traditional defences struggle to guard against multi-turn attacks and do not offer formal guarantees on the percentage of attacks they block. Here, we propose Conf-Guard, a novel framework that operates by keeping track of a scalar score which dynamically evolves throughout the conversation, and by terminating the conversation if the score breaches a threshold. We show that the threshold can be selected so as to achieve a distribution-free conformal guarantee, which, for jailbreak detection, formally ensures a user-specified percentage of attacks is successfully blocked. We also propose specific choices of score functions obtained by combining leading pre-trained jailbreak detection classifiers with an outlier detection metric. Through extensive empirical experiments, we show that Conf-Guard achieves its conformal guarantee and that our proposed score functions result in improved false refusal rates over their underlying classifiers. Our code is available at this https URL. Warning: the data we use in this paper contains jailbreak attacks with toxic and offensive language.
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Machine Learning (stat.ML) |
| Cite as: | arXiv:2611.35088 [cs.LG] |
| (or arXiv:2611.35088v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2611.35088 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Gabriel Loaiza-Ganem [view email]
[v1]
Wed, 25 Nov 2026 19:00:01 UTC (4,966 KB)
来源:arXiv cs.AI · arxiv.org