mlsanityData to 14 Oct 2026

The Shape of Adversarial Influence: Characterizing LLM Latent Spaces with Persistent Homology

arXiv 2505.20435 ↗First posted 26 May 2025cs.LG cs.AI cs.CGcited by 5

On the map: LLM safety and security → Jailbreaking

also in 1 more
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

  1. 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models28 Mar

Other references · 27

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  2. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
  3. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
  4. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
  5. 2016Understanding intermediate layers using linear classifier probescited by 1,353
  6. 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
  7. 2019Adversarial Examples Are Not Bugs, They Are Featurescited by 953
  8. 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 860
  9. 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Trainingcited by 529
  10. 2024The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearningcited by 509
  11. 2015Persistence Images: A Stable Vector Representation of Persistent Homologycited by 236
  12. 2024Not All Language Model Features Are One-Dimensionally Linearcited by 212
15 more
  1. 2024AI Sandbagging: Language Models can Strategically Underperform on Evaluationscited by 145
  2. 2015A roadmap for the computation of persistent homologycited by 127
  3. 2019Ripser: efficient computation of Vietoris-Rips persistence barcodescited by 117
  4. 2020Topology of deep neural networkscited by 112
  5. 2019A Topology Layer for Machine Learningcited by 80
  6. 2021On the geometry of generalization and memorization in deep neural networkscited by 73
  7. 2024Get my drift? Catching LLM Task Drift with Activation Deltascited by 72
  8. 2024The Geometry of Concepts: Sparse Autoencoder Feature Structurecited by 52
  9. 2024Stress-Testing Capability Elicitation With Password-Locked Modelscited by 46
  10. 2025Taxonomy, Opportunities, and Challenges of Representation Engineering for Large Language Modelscited by 34
  11. 2020GPU-Accelerated Computation of Vietoris-Rips Persistence Barcodescited by 27
  12. 2018The persistence landscape and some of its propertiescited by 19
  13. 2014Subsampling Methods for Persistent Homologycited by 17
  14. 2022An Introduction to Multiparameter Persistencecited by 16
  15. 2024Persistent Topological Features in Large Language Modelscited by 12

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Large Language Models Encode Semantics and Alignment in Linearly Separable Representations
  2. 2025Probing Latent Subspaces in LLM for AI Security: Identifying and Manipulating Adversarial States
  3. 2026Do Large Language Models Play Six Degrees of Separation? Measuring Topological Compression in Long-Context Manifolds
  4. 2025Bridging the Dimensional Chasm: Uncover Layer-wise Dimensional Reduction in Transformers through Token Correlation
  5. 2026A Geometric Perspective on Next-Token Prediction in Large Language Models: Three Emerging Phases
  6. 2025Spectral Insights into Data-Oblivious Critical Layers in Large Language Models
  7. 2025The Origins of Representation Manifolds in Large Language Models
  8. 2025The Geometry of Refusal in Large Language Models: Concept Cones and Representational Independence