Probing Latent Subspaces in LLM for AI Security: Identifying and Manipulating Adversarial States
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
Large Language Models (LLMs) have demonstrated remarkable capabilities across various tasks, yet they remain vulnerable to adversarial manipulations such as jailbreaking via prompt injection attacks. These attacks bypass safety mechanisms to generate restricted or harmful content. In this study, we investigated the underlying latent subspaces of safe and jailbroken states by extracting hidden activations from a LLM. Inspired by attractor dynamics in neuroscience, we hypothesized that LLM activations settle into semi stable states that can be identified and perturbed to induce state transitions. Using dimensionality reduction techniques, we projected activations from safe and jailbroken responses to reveal latent subspaces in lower dimensional spaces. We then derived a perturbation vector that when applied to safe representations, shifted the model towards a jailbreak state. Our results demonstrate that this causal intervention results in statistically significant jailbreak responses in a subset of prompts. Next, we probed how these perturbations propagate through the model's layers, testing whether the induced state change remains localized or cascades throughout the network. Our findings indicate that targeted perturbations induced distinct shifts in activations and model responses. Our approach paves the way for potential proactive defenses, shifting from traditional guardrail based methods to preemptive, model agnostic techniques that neutralize adversarial states at the representation level.
Key facts. Cited by 8 papers in the map (data through 13 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 15 of its 20 references that are in the map. First posted on arXiv 12 Mar 2025.
Builds on
15 of 20 references.
Closest ancestors · 3
Same direction, newest first
- 2024Jailbreaking and Mitigation of Vulnerabilities in Large Language Models20 Oct
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models7 Aug
- 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Study23 May
Other references · 12
- 2022Locating and Editing Factual Associations in GPTcited by 2,650
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 750
- 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 693
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 529
- 2025Layer by Layer: Uncovering Hidden Representations in Language Modelscited by 298
- 2024Safety Layers in Aligned Large Language Models: The Key to LLM Securitycited by 132
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 85
- 2021Attractor and integrator networks in the braincited by 61
- 2024garak: A Framework for Security Probing Large Language Modelscited by 48
- 2024Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language Modelscited by 44
- 2023Decoding In-Context Learning: Neuroscience-inspired Analysis of Representations in Large Language Modelscited by 7
- 2023Trace and Edit Relation Associations in GPTcited by 4
Built on by
Citing papers per year: 2025: 3; 2026: 5.
8 papers.
- 2025The Rogue Scalpel: Activation Steering Compromises LLM Safetycited by 21
- 2026TRACES: Proactive Safety Auditing for Multi-Turn LLM Agents via Trajectory-State Modelingcited by 7
- 2025Probing the Robustness of Large Language Models Safety to Latent Perturbationscited by 4
- 2026Do All LLMs Know When They're Being Harmful? A Reproducibility Study of Latent-Space Safety Probes Across Model Familiescited by 2
- 2025Multi-Agent Framework for Threat Mitigation and Resilience in AI-Based Systemscited by 1
- 2026Safety Beyond the Interface: Detecting Harm via Latent States in Large Language Modelscited by 1
- 2026HyperLens: Quantifying Cognitive Effort in LLMs with Fine-grained Confidence Trajectorycited by 0
- 2026Probing the Prefill: Detecting Code Vulnerabilities via Latent Activationscited by 0
- 2026Safety Beyond the Interface: Detecting Harm via Latent States in Large Language Models16 Sep 2026
- 2026Probing the Prefill: Detecting Code Vulnerabilities via Latent Activations17 Aug 2026
- 2026Do All LLMs Know When They're Being Harmful? A Reproducibility Study of Latent-Space Safety Probes Across Model Families8 Aug 2026
- 2026TRACES: Proactive Safety Auditing for Multi-Turn LLM Agents via Trajectory-State Modeling26 May 2026
- 2026HyperLens: Quantifying Cognitive Effort in LLMs with Fine-grained Confidence Trajectory7 May 2026
- 2025Multi-Agent Framework for Threat Mitigation and Resilience in AI-Based Systems29 Dec 2025
- 2025The Rogue Scalpel: Activation Steering Compromises LLM Safety26 Sep 2025
- 2025Probing the Robustness of Large Language Models Safety to Latent Perturbations19 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2026Jailbreaking Leaves a Trace: Understanding and Detecting Jailbreak Attacks from Internal Representations of Large Language Models
- 2026Mechanistic Interpretability of LLM Jailbreaks via Internal Attribution Graphs
- 2025Do Internal Layers of LLMs Reveal Patterns for Jailbreak Detection?
- 2025SoK: a Comprehensive Causality Analysis Framework for Large Language Model Security
- 2025Latent Fusion Jailbreak: Blending Harmful and Harmless Representations to Elicit Unsafe LLM Outputs
- 2024Defending against Jailbreak through Early Exit Generation of Large Language Models
- 2025Exploiting Latent Space Discontinuities for Building Universal LLM Jailbreaks and Data Extraction Attacks
- 2024JailbreakLens: Interpreting Jailbreak Mechanism in the Lens of Representation and Circuit