Skip to main content
QUICK REVIEW

[Paper Review] ALERT: Zero-shot LLM Jailbreak Detection via Internal Discrepancy Amplification

Xiao Lin, Philip Li|arXiv (Cornell University)|Jan 7, 2026
Adversarial Robustness in Machine LearningComputer Science0 citations
TL;DR

A model-agnostic zero-shot jailbreak detector called ALERT amplifies layer-, module-, and token-level safety signals to detect unseen jailbreak prompts, achieving top-tier zero-shot performance across multiple benchmarks and LLMs.

ABSTRACT

Despite rich safety alignment strategies, large language models (LLMs) remain highly susceptible to jailbreak attacks, which compromise safety guardrails and pose serious security risks. Existing detection methods mainly detect jailbreak status relying on jailbreak templates present in the training data. However, few studies address the more realistic and challenging zero-shot jailbreak detection setting, where no jailbreak templates are available during training. This setting better reflects real-world scenarios where new attacks continually emerge and evolve. To address this challenge, we propose a layer-wise, module-wise, and token-wise amplification framework that progressively magnifies internal feature discrepancies between benign and jailbreak prompts. We uncover safety-relevant layers, identify specific modules that inherently encode zero-shot discriminative signals, and localize informative safety tokens. Building upon these insights, we introduce ALERT (Amplification-based Jailbreak Detector), an efficient and effective zero-shot jailbreak detector that introduces two independent yet complementary classifiers on amplified representations. Extensive experiments on three safety benchmarks demonstrate that ALERT achieves consistently strong zero-shot detection performance. Specifically, (i) across all datasets and attack strategies, ALERT reliably ranks among the top two methods, and (ii) it outperforms the second-best baseline by at least 10% in average Accuracy and F1-score, and sometimes by up to 40%.

Motivation & Objective

  • Motivate and formalize the zero-shot jailbreak detection task to reflect realistic attack evolution.
  • Identify practical principles—generalizability, efficiency, and innocuousness—for detectors in real-world safety settings.
  • Develop a layer-, module-, and token-wise amplification framework to reveal internal safety signals.
  • Provide a model-agnostic detector (ALERT) that combines amplified representations with lightweight classifiers.

Proposed method

  • Identify safety-sensitive layers by analyzing layer-wise distributions of benign, harmful, and jailbreak prompts using symmetric KL divergence.
  • Within the identified layer, perform module-wise amplification by constructing two classifiers on gating and context features using a Variational Information Bottleneck (VIB) backbone.
  • Introduce token-wise amplification to down-weight noisy tokens in jailbreak templates by weighting token features toward prototype vectors derived from benign and harmful prompts.
  • Combine gating and context classifiers’ outputs to yield a robust prediction via averaging, then apply token-level weighting to refine prompt representations before classification.
  • Ensure single forward-pass detection using a lightweight detector to meet efficiency and innocuousness criteria.

Experimental results

Research questions

  • RQ1Can zero-shot jailbreak detection reliably identify unseen jailbreak prompts without any jailbreak templates in training?
  • RQ2Which internal representations (layers, modules, tokens) contain the strongest zero-shot safety signals in LLMs?
  • RQ3Do amplification mechanisms across layer, module, and token levels improve zero-shot jailbreak detection performance?
  • RQ4Is it possible to achieve effective detection with a lightweight, model-agnostic detector that preserves benign prompt quality?

Key findings

  • Alert consistently ranks among the top two methods across all evaluated datasets and attacks in zero-shot settings.
  • Across all LLMs, Alert achieves over 90% Accuracy and F1-score on average.
  • Alert outperforms the second-best baseline by at least 10% in average Accuracy and F1-score, and sometimes by up to 40%.
  • Three amplification stages (layer-, module-, and token-wise) collectively improve detection performance, with module-wise amplification providing the largest gains.
  • Token-wise amplification reduces interference from noisy jailbreak tokens and enhances discrimination for zero-shot detection.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.