Persistent Topological Features in Large Language Models
Not on the map. Why?
Abstract (arXiv)
Understanding the decision-making processes of large language models is critical given their widespread applications. To achieve this, we aim to connect a formal mathematical framework - zigzag persistence from topological data analysis - with practical and easily applicable algorithms. Zigzag persistence is particularly effective for characterizing data as it dynamically transforms across model layers. Within this framework, we introduce topological descriptors that measure how topological features, p-dimensional holes, persist and evolve throughout the layers. Unlike methods that assess each layer individually and then aggregate the results, our approach directly tracks the full evolutionary path of these features. This offers a statistical perspective on how prompts are rearranged and their relative positions changed in the representation space, providing insights into the system's operation as an integrated whole. To demonstrate the expressivity and applicability of our framework, we highlight how sensitive these descriptors are to different models and a variety of datasets. As a showcase application to a downstream task, we use zigzag persistence to establish a criterion for layer pruning, achieving results comparable to state-of-the-art methods while preserving the system-level perspective.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 50 of its 82 references that are in the map. First posted on arXiv 14 Oct 2024.
Builds on
50 of 82 references.
References · 50
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2023Mistral 7Bcited by 3,164
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2013Visualizing and Understanding Convolutional Networkscited by 2,290
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 650
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
- 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 383
- 2021The Intrinsic Dimension of Images and Its Impact on Learningcited by 315
38 more
- 2019Intrinsic dimension of data representations in deep neural networkscited by 282
- 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 226
- 2024Not All Language Model Features Are One-Dimensionally Linearcited by 212
- 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 170
- 2024The Remarkable Robustness of LLMs: Stages of Inference?cited by 146
- 2023Similarity of Neural Network Models: A Survey of Functional and Representational Measurescited by 131
- 2023AI Transparency in the Age of LLMs: A Human-Centered Research Roadmapcited by 123
- 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
- 2020Topology of deep neural networkscited by 112
- 2023The geometry of hidden representations of large transformer modelscited by 112
- 2023Intrinsic Dimension Estimation for Robust Detection of AI-Generated Textscited by 112
- 2020Accelerating Training of Transformer-Based Language Models with Progressive Layer Droppingcited by 93
- 2024What Matters in Transformers? Not All Attention is Neededcited by 84
- 2018Neural Persistence: A Complexity Measure for Deep Neural Networks Using Algebraic Topologycited by 73
- 2024Beyond Efficiency: A Systematic Survey of Resource-Efficient Large Language Modelscited by 67
- 2021Representation Topology Divergence: A Method for Comparing Neural Network Representationscited by 66
- 2024Emergence of a High-Dimensional Abstraction Phase in Language Transformerscited by 56
- 2013Stochastic Convergence of Persistence Landscapes and Silhouettescited by 43
- 2024Investigating Layer Importance in Large Language Modelscited by 36
- 2020Hierarchical nucleation in deep neural networkscited by 31
- 2024FinerCut: Finer-grained Interpretable Layer Pruning for Large Language Modelscited by 27
- 2023Bridging Information-Theoretic and Geometric Compression in Language Modelscited by 26
- 2024Attend First, Consolidate Later: On the Importance of Attention in Different LLM Layerscited by 25
- 2024A deeper look at depth pruning of LLMscited by 23
- 2021Topological Uncertainty: Monitoring trained neural networks through persistence of activation graphscited by 20
- 2021Layer-wise Model Pruning based on Mutual Informationcited by 19
- 2022Topology and geometry of data manifold in deep learningcited by 12
- 2022Temporal Network Analysis Using Zigzag Persistencecited by 9
- 2020Using Zigzag Persistent Homology to Detect Hopf Bifurcations in Dynamical Systemscited by 7
- 2020Capturing Dynamics of Time-Varying Data via Topologycited by 7
- 2022Fast Computation of Zigzag Persistencecited by 6
- 2017Extracting Persistent Clusters in Dynamic Data via M"obius inversioncited by 5
- 2018Spatio-temporal Persistent Homology for Dynamic Metric Spacescited by 5
- 2023Just CHOP: Embarrassingly Simple LLM Compressioncited by 5
- 2023On Characterizing the Evolution of Embedding Space of Neural Networks using Algebraic Topologycited by 5
- 2021Computing Generalized Rank Invariant for 2-Parameter Persistence Modules via Zigzag Persistence and its Applicationscited by 4
- 2022Topological Data Analysis for Multivariate Time Series Datacited by 3
- 2022The Generalized Rank Invariant: M"obius invertibility, Discriminating Power, and Connection to Other Invariantscited by 1
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 7.
12 papers.
- 2025The Intrinsic Dimension of Prompts in Internal Representations of Large Language Modelscited by 17
- 2025The Shape of Adversarial Influence: Characterizing LLM Latent Spaces with Persistent Homologycited by 5
- 2025From Topology to Retrieval: Decoding Embedding Spaces with Unified Signaturescited by 5
- 2026Large Vision-Language Models Get Lost in Attentioncited by 5
- 2024Topological Data Analysis Applications in Natural Language Processing: A Surveycited by 2
- 2025CURing Large Models: Compression via CUR Decompositioncited by 1
- 2026From Persistence to Survival: Hypothesis Testing, Effect Sizes and Vectorisation for Topological Featurescited by 1
- 2026Optimizing Soft Prompt Tuning via Structural Evolutioncited by 0
- 2026TIPS: Topological Ill-Posedness Probing and Steering in Large Language Modelscited by 0
- 2026Topological Signatures of Context-Level Reliability in TabPFNcited 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
- 2026Topological Signatures of Context-Level Reliability in TabPFN20 Jul 2026
- 2026TIPS: Topological Ill-Posedness Probing and Steering in Large Language Models22 Jun 2026
- 2026From Persistence to Survival: Hypothesis Testing, Effect Sizes and Vectorisation for Topological Features10 Jun 2026
- 2026Large Vision-Language Models Get Lost in Attention7 May 2026
- 2026Optimizing Soft Prompt Tuning via Structural Evolution18 Feb 2026
- 2025From Topology to Retrieval: Decoding Embedding Spaces with Unified Signatures27 Nov 2025
- 2025The Shape of Adversarial Influence: Characterizing LLM Latent Spaces with Persistent Homology26 May 2025
- 2025The Intrinsic Dimension of Prompts in Internal Representations of Large Language Models17 Jan 2025
- 2025CURing Large Models: Compression via CUR Decomposition8 Jan 2025
- 2024Topological Data Analysis Applications in Natural Language Processing: A Survey15 Nov 2024