SpecGuard: Detecting Multi-Turn LLM Jailbreaks via Specification-Based Runtime Monitoring
Junle Li, Siqi Chen, Jiakai Li, Bingzhuo Zhong
Key points
From the paper's conclusion- We present SpecGuard, a training-free, specification-driven framework for monitoring multi-turn LLM interactions.
Abstract
Multi-turn jailbreaks turn dialogue safety into a trace property: a violation may become identifiable only when user intent and assistant behavior are considered across multiple turns. Existing guard models largely classify individual messages or exchanges and return risk scores or labels, without executable safety semantics or a formally checkable decision trail. We present SpecGuard, a training-free, specification-driven framework for monitoring multi-turn LLM interactions. SpecGuard uses a fixed atomic-proposition contract to map natural-language observations into causally scoped, evidence-backed facts, and expresses forbidden interaction patterns as Linear Temporal Logic specifications. Each specification is compiled into a symbolic finite automaton that incrementally consumes the resulting dialogue trace. The same monitoring mechanism supports buffered runtime checking and retrospective auditing, while accepting runs produce replayable witnesses that identify the triggered specification, supporting facts, and relevant dialogue turns. Experiments on multi-turn safety benchmarks show that SpecGuard consistently outperforms representative open-source guard models while maintaining controlled false-positive rates. These results demonstrate a practical path from heuristic risk classification toward formally specified, verifiable, and auditable LLM safety monitoring, without learned detector parameters or access to the protected model.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- GuardrailAgent: An Agentic Framework for Jailbreak DefensearXiv · 2026
- Formal Runtime Verification for Tool-Using LLM Agents: An Offline Same-Benchmark Study on AgentDojo and STACarXiv · 2026
- Monitor-Validity Failures: LLM Safety Evidence Paths at Evolving Framework BoundariesarXiv · 2026
- ProbGuard: Calibrated Safety Risk Estimation from LLM Output DistributionsarXiv · 2026
- Soteria: Formally Verified Planning with Runtime Enforcement for Safe LLM AgentsarXiv · 2026
- Controlled Decoding Attacks on Black-Box LLMsarXiv · 2026