paper-with-me

홈 › Papers

Defensive M2S: Training Guardrail Models on Compressed Multi-turn Conversations

2026-01-01 · Hyunjun Kim arxiv

Guardrail models are essential for ensuring the safety of Large Language Model (LLM) deployments, but processing full multi-turn conversation histories incurs significant computational cost. We propose Defensive M2S, a training paradigm that fine-tunes guardrail models on Multi-turn to Single-turn (M2S) compressed conversations rather than complete dialogue histories. We provide a formal complexity analysis showing that M2S reduces training cost from $O(n^2)$ to $O(n)$ for $n$-turn conversations. Empirically, on our training dataset (779 samples, avg. 10.6 turns), M2S requires only 169K tokens compared to 15.7M tokens for the multi-turn baseline -- a 93$\times$ reduction. We evaluate Defensive M2S across three guardrail model families (LlamaGuard, Nemotron, Qwen3Guard) and three compression templates (hyphenize, numberize, pythonize) on SafeDialBench, a comprehensive multi-turn jailbreak benchmark. Our best configuration, Qwen3Guard with hyphenize compression, achieves 93.8% attack detection recall while reducing inference tokens by 94.6% (from 3,231 to 173 tokens per conversation). This represents a 38.9 percentage point improvement over the baseline while dramatically reducing both training and inference costs. Our findings demonstrate that M2S compression can serve as an effective efficiency technique for guardrail deployment, enabling scalable safety screening of long multi-turn conversations.

📄 PDF Abstract BibTeX arXiv:2601.00454

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

The Art of Defending: A Systematic Evaluation and Analysis of LLM Defense Strategies on Safety and Over-Defensiveness

2023-12-30 · Neeraj Varshney, Pavel Dolin, Agastya Seth, Chitta Baral

As Large Language Models (LLMs) play an increasingly pivotal role in natural language processing applications, their safety concerns become critical areas of NLP research. This paper presents Safety and Over-Defensivenes…

kNNGuard: Turning LLM Hidden Activations into a Training-Free Configurable Guardrail

2026-07-02 · Mahmoud Abdelfattah, Hamid Nasiri, Peter Garraghan arxiv

Large language models (LLMs) are increasingly deployed in domains requiring guardrails to detect unsafe, off-topic, or adversarial prompts. Existing guardrails predominantly rely on fine-tuning to build classifiers, whic…

Domain Adaptation

Jailbreaking Large Language Models in Infinitely Many Ways

2025-01-18 · Oliver Goldstein, Emanuele La Malfa, Felix Drinkall, Samuele Marro 외

We discuss the ``Infinitely Many Paraphrases'' attacks (IMP), a category of jailbreaks that leverages the increasing capabilities of a model to handle paraphrases and encoded communications to bypass their defensive mech…

One Turn Too Late: Response-Aware Defense Against Hidden Malicious Intent in Multi-Turn Dialogue

2026-05-07 · Xinjie Shen, Rongzhe Wei, Peizhi Niu, Haoyu Wang 외 arxiv

Hidden malicious intent in multi-turn dialogue poses a growing threat to deployed large language models (LLMs). Rather than exposing a harmful objective in a single prompt, increasingly capable attackers can distribute t…

Intent Detection

RvB: Automating AI System Hardening via Iterative Red-Blue Games

2026-01-27 · Lige Huang, Zicheng Liu, Jie Zhang, Lewen Yan 외 arxiv

The dual offensive and defensive utility of Large Language Models (LLMs) highlights a critical gap in AI security: the lack of unified frameworks for dynamic, iterative adversarial adaptation hardening. To bridge this ga…