Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Defending Jailbreak Attacks on Large Language Models via Manifold Trajectory Kinetics

About

Jailbreak prompts can bypass alignment guardrails in large language models (LLMs) and elicit unsafe outputs, making reliable deployment-time detection critical. Prior detection approaches largely rely on a fixed metric space, e.g., raw inputs, gradients, or hidden features, in which benign and jailbreak prompts are linearly separable. We show this assumption breaks under (i) pseudo-malicious prompts that are benign by intent but contain safety-related keywords, and (ii) adaptive attacks that explicitly optimize against the deployed detector. To overcome this limitation, we shift our focus from identifying a universal metric space to analyzing the more robust neighborhood structure of the underlying data manifold. We present Manifold Trajectory Kinetics (MTK), which treats an LLM as a kinetic system transforming inputs into outputs and detects jailbreaks by tracking how a prompt's neighborhood structure evolves across layers. Benign prompts remain close to benign neighborhoods throughout inference, whereas jailbreak prompts exhibit a characteristic trajectory that begins near malicious seeds and later strategically shifts toward benign neighborhoods to evade refusal.Across four LLMs and ten jailbreak attacks, MTK achieves strong robustness to both failure modes: on pseudo-malicious prompts, it attains a jailbreak true positive rate of 95% at a false positive rate of 5% on benign prompts and 2% on pseudo-malicious prompts, and under adaptive attacks, it maintains a true positive rate of 85%. We further demonstrate the superior performance of MTK for jailbreak detection in vision-language models. Our code is available at https://github.com/Rookie143/mtk.

Hangtao Zhang, Yucheng Zhao, Sishun Liu, Ziqi Zhou, Zeyu Ye, Wei Wan, Minghui Li, Shengshan Hu, Yanjun Zhang, Yi Liu, Leo Yu Zhang• 2026

Related benchmarks

TaskDatasetResultRank
Jailbreak DetectionAdvBench Llama2-7b
AUROC96.1
88
Jailbreak DetectionMM-SafetyBench
AUROC91.1
23
Jailbreak DetectionAdvBench Mistral-7B
AUROC99
16
Jailbreak DetectionAdvBench Vicuna-7B
AUROC95.7
16
Jailbreak DetectionAdvBench Llama3-8B
AUROC0.961
16
Jailbreak DetectionGCG attacks, Databricks Dolly 15K, and OR-Bench PMPs (test)
True Positive Rate (TPR)95
15
Jailbreak DetectionJailbreak V28K
AUROC96.4
14
VLM Jailbreak DetectionFigImg
AUROC0.992
14
VLM Jailbreak DetectionVLM Jailbreak Average (MM-SafetyBench, FigImg, JailBreakV-28K)
Average AUROC0.94
14
Jailbreak DetectionUSB Multimodal PMPs LLaVa
FPR (PMP)1.4
7
Showing 10 of 13 rows

Other info

Follow for update