The Shape of Adversarial Influence: Characterizing LLM Latent Spaces with Persistent Homology
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
Existing interpretability methods for Large Language Models (LLMs) predominantly capture linear directions or isolated features. This overlooks the high-dimensional, relational, and nonlinear geometry of model representations. We apply persistent homology (PH) to characterize how adversarial inputs reshape the geometry and topology of internal representation spaces of LLMs. This phenomenon, especially when considered across operationally different attack modes, remains poorly understood. We analyze six models (3.8B to 70B parameters) under two distinct attacks, indirect prompt injection and backdoor fine--tuning, and show that a consistent topological signature persists throughout. Adversarial inputs induce topological compression, where the latent space becomes structurally simpler, collapsing the latent space from varied, compact, small-scale features into fewer, dominant, large-scale ones. This signature is architecture-agnostic, emerges early in the network, and is highly discriminative across layers. By quantifying the shape of activation point clouds and neuron-level information flow, our framework reveals geometric invariants of representational change that complement existing linear interpretability methods.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 28 of its 44 references that are in the map. First posted on arXiv 26 May 2025.
Builds on
28 of 44 references.
Closest ancestors · 1
Same direction, newest first
Other references · 27
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
- 2016Understanding intermediate layers using linear classifier probescited by 1,353
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
- 2019Adversarial Examples Are Not Bugs, They Are Featurescited by 953
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 860
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Trainingcited by 529
- 2024The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearningcited by 509
- 2015Persistence Images: A Stable Vector Representation of Persistent Homologycited by 236
- 2024Not All Language Model Features Are One-Dimensionally Linearcited by 212
15 more
- 2024AI Sandbagging: Language Models can Strategically Underperform on Evaluationscited by 145
- 2015A roadmap for the computation of persistent homologycited by 127
- 2019Ripser: efficient computation of Vietoris-Rips persistence barcodescited by 117
- 2020Topology of deep neural networkscited by 112
- 2019A Topology Layer for Machine Learningcited by 80
- 2021On the geometry of generalization and memorization in deep neural networkscited by 73
- 2024Get my drift? Catching LLM Task Drift with Activation Deltascited by 72
- 2024The Geometry of Concepts: Sparse Autoencoder Feature Structurecited by 52
- 2024Stress-Testing Capability Elicitation With Password-Locked Modelscited by 46
- 2025Taxonomy, Opportunities, and Challenges of Representation Engineering for Large Language Modelscited by 34
- 2020GPU-Accelerated Computation of Vietoris-Rips Persistence Barcodescited by 27
- 2018The persistence landscape and some of its propertiescited by 19
- 2014Subsampling Methods for Persistent Homologycited by 17
- 2022An Introduction to Multiparameter Persistencecited by 16
- 2024Persistent Topological Features in Large Language Modelscited by 12
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026TopoPrune: Robust Data Pruning via Unified Latent Space Topologycited by 1
- 2026Tracking Representation Dynamics in Large Language Models with Persistent Homologycited by 1
- 2026Measuring What Persists: Conditioning Mechanisms and a Geometric Framework for AI Agent Identitycited by 0
- 2026Topological Attribution Distance (TAD): Revealing Segment-Level RAG Influence on LLM Output Geometry for Incident Log Analysiscited by 0
- 2026The sublevel Flood bifiltration: towards scalable 2-parameter persistent homologycited by 0
- 2026The sublevel Flood bifiltration: towards scalable 2-parameter persistent homology4 Oct 2026
- 2026Topological Attribution Distance (TAD): Revealing Segment-Level RAG Influence on LLM Output Geometry for Incident Log Analysis17 Aug 2026
- 2026Measuring What Persists: Conditioning Mechanisms and a Geometric Framework for AI Agent Identity20 Jun 2026
- 2026Tracking Representation Dynamics in Large Language Models with Persistent Homology17 Jun 2026
- 2026TopoPrune: Robust Data Pruning via Unified Latent Space Topology2 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2025Large Language Models Encode Semantics and Alignment in Linearly Separable Representations
- 2025Probing Latent Subspaces in LLM for AI Security: Identifying and Manipulating Adversarial States
- 2026Do Large Language Models Play Six Degrees of Separation? Measuring Topological Compression in Long-Context Manifolds
- 2025Bridging the Dimensional Chasm: Uncover Layer-wise Dimensional Reduction in Transformers through Token Correlation
- 2026A Geometric Perspective on Next-Token Prediction in Large Language Models: Three Emerging Phases
- 2025Spectral Insights into Data-Oblivious Critical Layers in Large Language Models
- 2025The Origins of Representation Manifolds in Large Language Models
- 2025The Geometry of Refusal in Large Language Models: Concept Cones and Representational Independence