mlsanityData to 14 Oct 2026

Geometry-Guided Adversarial Prompt Detection via Curvature and Local Intrinsic Dimension

arXiv 2503.03502 ↗First posted 5 Mar 2025cs.CL cs.AIcited by 1

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Adversarial prompts are capable of jailbreaking frontier large language models (LLMs) and inducing undesirable behaviours, posing a significant obstacle to their safe deployment. Current mitigation strategies primarily rely on activating built-in defence mechanisms or fine-tuning LLMs, both of which are computationally expensive and can sacrifice model utility. In contrast, detection-based approaches are more efficient and practical for deployment in real-world applications. However, the fundamental distinctions between adversarial and benign prompts remain poorly understood. In this work, we introduce CurvaLID, a novel defence framework that efficiently detects adversarial prompts by leveraging their geometric properties. It is agnostic to the type of LLM, offering a unified detection framework across diverse adversarial prompts and LLM architectures. CurvaLID builds on the geometric analysis of text prompts to uncover their underlying differences. We theoretically extend the concept of curvature via the Whewell equation into an n-dimensional word embedding space, enabling us to quantify local geometric properties, including semantic shifts and curvature in the underlying manifolds. To further enhance our solution, we leverage Local Intrinsic Dimensionality (LID) to capture complementary geometric features of text prompts within adversarial subspaces. Our findings show that adversarial prompts exhibit distinct geometric signatures from benign prompts, enabling CurvaLID to achieve near-perfect classification and outperform state-of-the-art detectors in adversarial prompt detection. CurvaLID provides a reliable and efficient safeguard against malicious queries as a model-agnostic method that generalises across multiple LLMs and attack families.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 76 of its 105 references that are in the map. First posted on arXiv 5 Mar 2025.

Builds on

76 of 105 references.

Closest ancestors · 29

Same direction, newest first

  1. 2025Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teaming31 Jan
  2. 2024Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMs22 Jul
  3. 2024SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Manner8 Jun
  4. 2024PARDEN, Can You Repeat That? Defending against Jailbreaks via Repetition13 May
  5. 2024AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMs11 Apr
  6. 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks2 Apr
  7. 2024Gradient Cuff: Detecting Jailbreak Attacks on Large Language Models by Exploring Refusal Loss Landscapes1 Mar
  8. 2024DrAttack: Prompt Decomposition and Reconstruction Makes Powerful LLM Jailbreakers25 Feb
  9. 2024Round Trip Translation Defence against Large Language Model Jailbreaking Attacks21 Feb
  10. 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models21 Feb
  11. 2024Play Guessing Game with LLM: Indirect Jailbreak Attack with Implicit Clues14 Feb
  12. 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decoding14 Feb
17 more
  1. 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs12 Jan
  2. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automatically4 Dec
  3. 2023Token-Level Adversarial Prompt Detection Based on Perplexity Measures and Contextual Information20 Nov
  4. 2023Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulation6 Nov
  5. 2023DeepInception: Hypnotize Large Language Model to Be Jailbreaker6 Nov
  6. 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
  7. 2023Multilingual Jailbreak Challenges in Large Language Models10 Oct
  8. 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrations10 Oct
  9. 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks5 Oct
  10. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models3 Oct
  11. 2023Low-Resource Languages Jailbreak GPT-43 Oct
  12. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts19 Sep
  13. 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLM18 Sep
  14. 2023Detecting Language Model Attacks with Perplexity27 Aug
  15. 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher12 Aug
  16. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
  17. 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul

Other references · 47

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  5. 2013Intriguing properties of neural networkscited by 5,155
  6. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
  7. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  8. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
  9. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  10. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
  11. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
  12. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
35 more
  1. 2023PaLM 2 Technical Reportcited by 1,162
  2. 2019Adversarial Examples Are Not Bugs, They Are Featurescited by 953
  3. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
  4. 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 729
  5. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
  6. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
  7. 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 642
  8. 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 505
  9. 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 472
  10. 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
  11. 2024Humans or LLMs as the Judge? A Study on Judgement Biasescited by 323
  12. 2024Improving Alignment and Robustness with Circuit Breakerscited by 322
  13. 2021The Intrinsic Dimension of Images and Its Impact on Learningcited by 315
  14. 2018Characterizing Adversarial Subspaces Using Local Intrinsic Dimensionalitycited by 282
  15. 2019Intrinsic dimension of data representations in deep neural networkscited by 282
  16. 2018Estimating the intrinsic dimension of datasets by a minimal neighborhood informationcited by 250
  17. 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 244
  18. 2024OR-Bench: An Over-Refusal Benchmark for Large Language Modelscited by 244
  19. 2019Visualizing and Measuring the Geometry of BERTcited by 216
  20. 2023How Robust is Google's Bard to Adversarial Image Attacks?cited by 183
  21. 2024Is LLM-as-a-Judge Robust? Investigating Universal Adversarial Attacks on Zero-shot LLM Assessmentcited by 126
  22. 2023Intrinsic Dimension Estimation for Robust Detection of AI-Generated Textscited by 112
  23. 2023Attack Prompt Generation for Red Teaming and Defending Large Language Modelscited by 76
  24. 2023Adversarial Demonstration Attacks on Large Language Modelscited by 63
  25. 2022Adversarial Training for High-Stakes Reliabilitycited by 60
  26. 2018On the Intrinsic Dimensionality of Image Representationscited by 57
  27. 2023Adversarial Attacks and Defenses in Large Language Models: Old and New Threatscited by 49
  28. 2024Characterizing Truthfulness in Large Language Model Generations with Local Intrinsic Dimensioncited by 45
  29. 2023MathAttack: Attacking Large Language Models Towards Math Solving Abilitycited by 32
  30. 2022LIDL: Local Intrinsic Dimension Estimation Using Approximate Likelihoodcited by 30
  31. 2015Measuring Word Significance using Distributed Representations of Wordscited by 21
  32. 2025Detecting Backdoor Samples in Contrastive Language Image Pretrainingcited by 19
  33. 2024LDReg: Local Dimensionality Regularized Self-Supervised Learningcited by 11
  34. 2023Stay on Track: A Frenet Wrapper to Overcome Off-road Trajectories in Vehicle Motion Predictioncited by 10
  35. 2024DDA: Dimensionality Driven Augmentation Search for Contrastive Learning in Laparoscopic Surgerycited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026PsychoPass: Geometric Profiling of Multi-Turn Adversarial LLM Conversations
  2. 2023PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Prompts
  3. 2026GeoDetect: Geometric Adversarial Detection for VLPs
  4. 2026Disentangling Adversarial Prompts: A Semantic-Graph Defense for Robust LLM Security
  5. 2025CoCoTen: Detecting Adversarial Inputs to Large Language Models through Latent Space Features of Contextual Co-occurrence Tensors
  6. 2025AdversariaL attacK sAfety aLIgnment(ALKALI): Safeguarding LLMs through GRACE: Geometric Representation-Aware Contrastive Enhancement- Introducing Adversarial Vulnerability Quality Index (AVQI)
  7. 2025The Intrinsic Dimension of Prompts in Internal Representations of Large Language Models
  8. 2026Harnessing Hyperbolic Geometry for Harmful Prompt Detection and Sanitization