1. ECTD
  2. AI News
  3. News
  4. Jailbreak Detection on Large Language Models via Contrastive Prototype Structures

arXiv cs.CL · 19 Nov 2026, 04:56 AEST

Jailbreak Detection on Large Language Models via Contrastive Prototype Structures

normalaitech

JDPI is a jailbreak detection method for large language models that builds harmful and benign prototypes from binary safety labels and predicts using relative prototype distances. In the reported experiments, contrastive fine-tuning raises its accuracy by 9.1-18.0 points across four benchmarks, and with dataset-specific adaptation it exceeds the Llama Guard 3-8B baseline in ROC-AUC.

Key facts

  • We propose Jailbreak Detection with Prototype Inference (JDPI), which uses binary safety labels to construct harmful and benign prototypes and makes predictions from relative prototype distances.
  • Across four benchmarks covering different input formats, contrastive fine-tuning improves JDPI's detection accuracy by 9.1-18.0 percentage points.
  • With dataset-specific adaptation, JDPI exceeds the released Llama Guard 3-8B baseline by 0.173-0.310 in ROC-AUC across the four benchmarks.
  • Across 12 directed transfers, JDPI outperforms the classifier by an average of 1.59 percentage points in accuracy, demonstrating stronger cross-dataset robustness.

Read aloud

JDPI is a jailbreak detection method for large language models that builds harmful and benign prototypes from binary safety labels and predicts using relative prototype distances. In the reported experiments, contrastive fine-tuning raises its accuracy by nine point one-eighteen point zero points across four benchmarks, and with dataset-specific adaptation it exceeds the Llama Guard three-8B baseline in ROC-AUC. We propose Jailbreak Detection with Prototype Inference JDPI, which uses binary safety labels to construct harmful and benign prototypes and makes predictions from relative prototype distances. Across four benchmarks covering different input formats, contrastive fine-tuning improves JDPI's detection accuracy by nine point one-eighteen point zero percentage points. With dataset-specific adaptation, JDPI exceeds the released Llama Guard three-8B baseline by zero point one seven three-zero point three one zero in ROC-AUC across the four benchmarks. Across twelve directed transfers, JDPI outperforms the classifier by an average of one point five nine percentage points in accuracy, demonstrating stronger cross-dataset robustness.

Sources in this cluster

Free daily email

Get AI news, checked against sources

One short email each morning with the day's model launches, price changes and research. Unsubscribe any time.

We email a confirmation link first. Pro and API plans