JDPI detects jailbreaks with contrastively learned prototypes

Paper / preprint arXiv cs.CL · Reported findings, not independently verified by us.

A new research paper presents JDPI, a method for detecting jailbreak attempts and harmful prompts in large language models. Rather than training an additional classifier, JDPI compares an input representation with prototypes for harmful and benign content. This could simplify how labeled examples are divided for the detection setup.

The method uses binary safety labels to adapt its encoder, build prototypes, and validate them. In the reported setup, it requires fewer labeled examples than the classifier baseline because it does not reserve a separate data split to train a downstream classifier. Across four benchmarks covering different input formats, contrastive fine-tuning raised JDPI’s detection accuracy by 9.1 to 18.0 percentage points.

With the same encoder, JDPI achieved slightly higher ROC-AUC on one benchmark than the comparison method, and remained within 0.017 of it across all four. With dataset-specific adaptation, the paper reports ROC-AUC scores 0.173 to 0.310 above the released Llama Guard 3-8B baseline. In multi-turn tests on TomGibbs, JDPI achieved higher conversation-level accuracy when it used accumulated user history than when it evaluated only the current turn.

Across 12 directed dataset transfers, its accuracy exceeded the classifier’s by an average of 1.59 percentage points. These findings describe the tested benchmarks and experimental conditions; by themselves, they do not establish performance in arbitrary real-world deployments. The original paper provides further details on the method and evaluations: arXiv: Jailbreak Detection on Large Language Models via Contrastive Prototype Structures

🇬🇧 https://arxiv.org/abs/2611.24936v1

Leave a Comment

The weekly brief: selected developments, projects and videos