mlsanityData to 7 Oct 2026

Improved Large Language Model Jailbreak Detection via Pretrained Embeddings

arXiv 2412.01547 ↗First posted 2 Dec 2024cs.CR cs.AI cs.LGcited by 10

On the map: LLM agents and tool use → Agent threats, guardrails and governance

also in 1 more
Abstract (arXiv)

The adoption of large language models (LLMs) in many applications, from customer service chat bots and software development assistants to more capable agentic systems necessitates research into how to secure these systems. Attacks like prompt injection and jailbreaking attempt to elicit responses and actions from these models that are not compliant with the safety, privacy, or content policies of organizations using the model in their application. In order to counter abuse of LLMs for generating potentially harmful replies or taking undesirable actions, LLM owners must apply safeguards during training and integrate additional tools to block the LLM from generating text that abuses the model. Jailbreaking prompts play a vital role in convincing an LLM to generate potentially harmful content, making it important to identify jailbreaking attempts to block any further steps. In this work, we propose a novel approach to detect jailbreak prompts based on pairing text embeddings well-suited for retrieval with traditional machine learning classification algorithms. Our approach outperforms all publicly available methods from open source LLM security applications.

Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 14 of its 18 references that are in the map. First posted on arXiv 2 Dec 2024.

Builds on

14 of 18 references.

References · 14

  1. 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,120
  2. 2013Intriguing properties of neural networkscited by 5,114
  3. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  4. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
  5. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
  6. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
  7. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
  8. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 619
  9. 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 466
  10. 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 347
  11. 2024Improving Alignment and Robustness with Circuit Breakerscited by 302
  12. 2024Defending LLMs against Jailbreaking Attacks via Backtranslationcited by 65
2 more
  1. 2023Summon a Demon and Bind it: A Grounded Theory of LLM Red Teamingcited by 20
  2. 2024Embedding And Clustering Your Data Can Improve Contrastive Pretrainingcited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 7; 2026: 3.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey
  2. 2024Efficient LLM-Jailbreaking via Multimodal-LLM Jailbreak
  3. 2024JailBreakV: A Benchmark for Assessing the Robustness of MultiModal Large Language Models against Jailbreak Attacks
  4. 2024textitMMJ-Bench: A Comprehensive Study on Jailbreak Attacks and Defenses for Multimodal Large Language Models
  5. 2026Jailbreaking Leaves a Trace: Understanding and Detecting Jailbreak Attacks from Internal Representations of Large Language Models
  6. 2025Do Internal Layers of LLMs Reveal Patterns for Jailbreak Detection?
  7. 2024Token Highlighter: Inspecting and Mitigating Jailbreak Prompts for Large Language Models
  8. 2024Defensive Prompt Patch: A Robust and Interpretable Defense of LLMs against Jailbreak Attacks