Geometry-Guided Adversarial Prompt Detection via Curvature and Local Intrinsic Dimension
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
- 2025Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teaming31 Jan
- 2024Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMs22 Jul
- 2024SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Manner8 Jun
- 2024PARDEN, Can You Repeat That? Defending against Jailbreaks via Repetition13 May
- 2024AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMs11 Apr
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks2 Apr
- 2024Gradient Cuff: Detecting Jailbreak Attacks on Large Language Models by Exploring Refusal Loss Landscapes1 Mar
- 2024DrAttack: Prompt Decomposition and Reconstruction Makes Powerful LLM Jailbreakers25 Feb
- 2024Round Trip Translation Defence against Large Language Model Jailbreaking Attacks21 Feb
- 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models21 Feb
- 2024Play Guessing Game with LLM: Indirect Jailbreak Attack with Implicit Clues14 Feb
- 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decoding14 Feb
17 more
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs12 Jan
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automatically4 Dec
- 2023Token-Level Adversarial Prompt Detection Based on Perplexity Measures and Contextual Information20 Nov
- 2023Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulation6 Nov
- 2023DeepInception: Hypnotize Large Language Model to Be Jailbreaker6 Nov
- 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
- 2023Multilingual Jailbreak Challenges in Large Language Models10 Oct
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrations10 Oct
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks5 Oct
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models3 Oct
- 2023Low-Resource Languages Jailbreak GPT-43 Oct
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts19 Sep
- 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLM18 Sep
- 2023Detecting Language Model Attacks with Perplexity27 Aug
- 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher12 Aug
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
- 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul
Other references · 47
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2013Intriguing properties of neural networkscited by 5,155
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
35 more
- 2023PaLM 2 Technical Reportcited by 1,162
- 2019Adversarial Examples Are Not Bugs, They Are Featurescited by 953
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 729
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 642
- 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 505
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 472
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
- 2024Humans or LLMs as the Judge? A Study on Judgement Biasescited by 323
- 2024Improving Alignment and Robustness with Circuit Breakerscited by 322
- 2021The Intrinsic Dimension of Images and Its Impact on Learningcited by 315
- 2018Characterizing Adversarial Subspaces Using Local Intrinsic Dimensionalitycited by 282
- 2019Intrinsic dimension of data representations in deep neural networkscited by 282
- 2018Estimating the intrinsic dimension of datasets by a minimal neighborhood informationcited by 250
- 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 244
- 2024OR-Bench: An Over-Refusal Benchmark for Large Language Modelscited by 244
- 2019Visualizing and Measuring the Geometry of BERTcited by 216
- 2023How Robust is Google's Bard to Adversarial Image Attacks?cited by 183
- 2024Is LLM-as-a-Judge Robust? Investigating Universal Adversarial Attacks on Zero-shot LLM Assessmentcited by 126
- 2023Intrinsic Dimension Estimation for Robust Detection of AI-Generated Textscited by 112
- 2023Attack Prompt Generation for Red Teaming and Defending Large Language Modelscited by 76
- 2023Adversarial Demonstration Attacks on Large Language Modelscited by 63
- 2022Adversarial Training for High-Stakes Reliabilitycited by 60
- 2018On the Intrinsic Dimensionality of Image Representationscited by 57
- 2023Adversarial Attacks and Defenses in Large Language Models: Old and New Threatscited by 49
- 2024Characterizing Truthfulness in Large Language Model Generations with Local Intrinsic Dimensioncited by 45
- 2023MathAttack: Attacking Large Language Models Towards Math Solving Abilitycited by 32
- 2022LIDL: Local Intrinsic Dimension Estimation Using Approximate Likelihoodcited by 30
- 2015Measuring Word Significance using Distributed Representations of Wordscited by 21
- 2025Detecting Backdoor Samples in Contrastive Language Image Pretrainingcited by 19
- 2024LDReg: Local Dimensionality Regularized Self-Supervised Learningcited by 11
- 2023Stay on Track: A Frenet Wrapper to Overcome Off-road Trajectories in Vehicle Motion Predictioncited by 10
- 2024DDA: Dimensionality Driven Augmentation Search for Contrastive Learning in Laparoscopic Surgerycited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026PsychoPass: Geometric Profiling of Multi-Turn Adversarial LLM Conversations
- 2023PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Prompts
- 2026GeoDetect: Geometric Adversarial Detection for VLPs
- 2026Disentangling Adversarial Prompts: A Semantic-Graph Defense for Robust LLM Security
- 2025CoCoTen: Detecting Adversarial Inputs to Large Language Models through Latent Space Features of Contextual Co-occurrence Tensors
- 2025AdversariaL attacK sAfety aLIgnment(ALKALI): Safeguarding LLMs through GRACE: Geometric Representation-Aware Contrastive Enhancement- Introducing Adversarial Vulnerability Quality Index (AVQI)
- 2025The Intrinsic Dimension of Prompts in Internal Representations of Large Language Models
- 2026Harnessing Hyperbolic Geometry for Harmful Prompt Detection and Sanitization