mlsanityData to 24 Nov 2026

Jailbreak Detection on Large Language Models via Contrastive Prototype Structures

arXiv 2611.24936 ↗Submitted 18 Nov 2026Announced 19 Nov 2026cs.CLcited by 0

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Jailbreak attempts and harmful prompts remain a challenge for the safe deployment of large language models. We study whether contrastively learned representations can support safety detection without training an additional downstream classifier. 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. JDPI uses only binary safety labels for encoder adaptation, prototype construction, and validation. In our setup, it uses fewer labeled examples than the classifier baseline (Method A) by avoiding the separate split used to train the downstream classifier. Across four benchmarks covering different input formats, contrastive fine-tuning improves JDPI's detection accuracy by 9.1-18.0 percentage points. Using the same encoder, JDPI achieves slightly higher ROC-AUC on one benchmark and stays within 0.017 of the baseline across all four. 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. In multi-turn replay on TomGibbs, JDPI uses accumulated user history as the conversation unfolds, achieving higher conversation-level accuracy than when it uses the current turn alone. Across 12 directed transfers, JDPI outperforms the classifier by an average of 1.59 percentage points in accuracy, demonstrating stronger cross-dataset robustness.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 24 of its 43 references that are in the map. Submitted 18 Nov 2026, announced 19 Nov 2026.

Builds on

24 of 43 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025JBShield: Defending Large Language Models from Jailbreak Attacks through Activated Concept Analysis and Manipulation11 Feb
  2. 2024Emerging Vulnerabilities in Frontier Models: Multi-Turn Jailbreak Attacks29 Aug
  3. 2024Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMs22 Jul
  4. 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks5 Oct
  5. 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul

Other references · 19

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 41,272
  2. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,277
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,559
  4. 2017Prototypical Networks for Few-shot Learningcited by 3,087
  5. 2020Supervised Contrastive Learningcited by 2,929
  6. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,231
  7. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,584
  8. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,337
  9. 2022Red Teaming Language Models with Language Modelscited by 1,093
  10. 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 1,028
  11. 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 908
  12. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 693
7 more
  1. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 568
  2. 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 566
  3. 2024Improving Alignment and Robustness with Circuit Breakerscited by 350
  4. 2022Efficient Few-Shot Learning Without Promptscited by 144
  5. 2021A Prototype-Oriented Framework for Unsupervised Domain Adaptationcited by 63
  6. 2026LLM Safety From Within: Detecting Harmful Content with Internal Representationscited by 17
  7. 2025Rethinking Jailbreak Detection of Large Vision Language Models with Representational Contrastive Scoringcited by 13

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025JailDAM: Jailbreak Detection with Adaptive Memory for Vision-Language Model
  2. 2026SAFEGuard: Detect Optimization-Based Jailbreak Attacks Through Harmful Semantic Analysis and Fluency Measurement
  3. 2026An Empirical Study of Multi-Generation Sampling for Jailbreak Detection in Large Language Models
  4. 2025Behind the Mask: Benchmarking Camouflaged Jailbreaks in Large Language Models
  5. 2025Learning to Detect Unseen Jailbreak Attacks in Large Vision-Language Models
  6. 2025STShield: Single-Token Sentinel for Real-Time Jailbreak Detection in Large Language Models
  7. 2026Defending Large Language Models Against Jailbreak Attacks via In-Decoding Safety-Awareness Probing
  8. 2026AISA: Awakening Intrinsic Safety Awareness in Large Language Models against Jailbreak Attacks