Skip to content

LLM Jailbreak Detection at (Almost) Zero CostLLM Jailbreak Detection for (Almost) Free!

arXiv· arXiv:2509.14558· Findings of EMNLP 2025· Guorui Chen, Yifan Xia, Xiaojun Jia, Zhijiang Li, Philip Torr, Jindong Gu·Indexed by this site · 24 days ago· Originally publishedDefenses
AI summary

The study proposes Free Jailbreak Detection (FJD), which can detect jailbreak prompts during LLM inference at almost no additional computational cost. The method exploits the difference in output distributions between jailbreak and benign prompts, prepends an affirmative instruction to the input and temperature-scales the logits, distinguishes the two types of prompts by the confidence of the first token, and enhances detection with virtual instruction learning. Experiments on aligned LLMs show effective detection.

Read originalFindings of EMNLP 2025