JDPI
An LLM jailbreak detection method based on contrastive learned representations and prototype-based reasoning. It requires no training of an additional classifier and discriminates by comparing the distance between an input representation and harmful versus benign prototypes.
Timeline (last 90 days)
JDPI (Jailbreak Detection with Prototype Inference) is a method that achieves jailbreak detection through contrastive learned representations and prototype inference without training an additional downstream classifier.
JDPI constructs harmful prototypes and benign prototypes using binary safety labels, and predicts by comparing the relative distance of an input representation to the two prototypes: if it is closer to the harmful prototype, it is judged a jailbreak attempt.
On four benchmarks covering different input formats, contrastive fine-tuning improves JDPI's detection accuracy by 9.1 to 18.0 percentage points.
Even with the same encoder, JDPI's ROC-AUC is slightly higher than the classifier baseline on one benchmark, and the gap is within 0.017 on all four benchmarks.
In multi-turn replay experiments on the TomGibbs dataset, JDPI uses accumulated user history as context, and its conversation-level accuracy is higher than methods that use only the current turn.
On 12 targeted transfer tasks, JDPI's accuracy is on average 1.59 percentage points higher than the classifier baseline.
All Facts (6)
JDPI (Jailbreak Detection with Prototype Inference) is a method that achieves jailbreak detection through contrastive learned representations and prototype inference without training an additional downstream classifier.
50%UnverifiedJDPI constructs harmful prototypes and benign prototypes using binary safety labels, and predicts by comparing the relative distance of an input representation to the two prototypes: if it is closer to the harmful prototype, it is judged a jailbreak attempt.
50%UnverifiedOn four benchmarks covering different input formats, contrastive fine-tuning improves JDPI's detection accuracy by 9.1 to 18.0 percentage points.
50%UnverifiedEven with the same encoder, JDPI's ROC-AUC is slightly higher than the classifier baseline on one benchmark, and the gap is within 0.017 on all four benchmarks.
50%UnverifiedIn multi-turn replay experiments on the TomGibbs dataset, JDPI uses accumulated user history as context, and its conversation-level accuracy is higher than methods that use only the current turn.
50%UnverifiedOn 12 targeted transfer tasks, JDPI's accuracy is on average 1.59 percentage points higher than the classifier baseline.
50%