mlsanityData to 14 Oct 2026

Persistent Topological Features in Large Language Models

arXiv 2410.11042 ↗First posted 14 Oct 2024cs.CL cs.CG cs.LGcited by 12

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

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  2. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  3. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  4. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  5. 2023Mistral 7Bcited by 3,164
  6. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  7. 2013Visualizing and Understanding Convolutional Networkscited by 2,290
  8. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  9. 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 650
  10. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
  11. 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 383
  12. 2021The Intrinsic Dimension of Images and Its Impact on Learningcited by 315
38 more
  1. 2019Intrinsic dimension of data representations in deep neural networkscited by 282
  2. 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 226
  3. 2024Not All Language Model Features Are One-Dimensionally Linearcited by 212
  4. 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 170
  5. 2024The Remarkable Robustness of LLMs: Stages of Inference?cited by 146
  6. 2023Similarity of Neural Network Models: A Survey of Functional and Representational Measurescited by 131
  7. 2023AI Transparency in the Age of LLMs: A Human-Centered Research Roadmapcited by 123
  8. 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
  9. 2020Topology of deep neural networkscited by 112
  10. 2023The geometry of hidden representations of large transformer modelscited by 112
  11. 2023Intrinsic Dimension Estimation for Robust Detection of AI-Generated Textscited by 112
  12. 2020Accelerating Training of Transformer-Based Language Models with Progressive Layer Droppingcited by 93
  13. 2024What Matters in Transformers? Not All Attention is Neededcited by 84
  14. 2018Neural Persistence: A Complexity Measure for Deep Neural Networks Using Algebraic Topologycited by 73
  15. 2024Beyond Efficiency: A Systematic Survey of Resource-Efficient Large Language Modelscited by 67
  16. 2021Representation Topology Divergence: A Method for Comparing Neural Network Representationscited by 66
  17. 2024Emergence of a High-Dimensional Abstraction Phase in Language Transformerscited by 56
  18. 2013Stochastic Convergence of Persistence Landscapes and Silhouettescited by 43
  19. 2024Investigating Layer Importance in Large Language Modelscited by 36
  20. 2020Hierarchical nucleation in deep neural networkscited by 31
  21. 2024FinerCut: Finer-grained Interpretable Layer Pruning for Large Language Modelscited by 27
  22. 2023Bridging Information-Theoretic and Geometric Compression in Language Modelscited by 26
  23. 2024Attend First, Consolidate Later: On the Importance of Attention in Different LLM Layerscited by 25
  24. 2024A deeper look at depth pruning of LLMscited by 23
  25. 2021Topological Uncertainty: Monitoring trained neural networks through persistence of activation graphscited by 20
  26. 2021Layer-wise Model Pruning based on Mutual Informationcited by 19
  27. 2022Topology and geometry of data manifold in deep learningcited by 12
  28. 2022Temporal Network Analysis Using Zigzag Persistencecited by 9
  29. 2020Using Zigzag Persistent Homology to Detect Hopf Bifurcations in Dynamical Systemscited by 7
  30. 2020Capturing Dynamics of Time-Varying Data via Topologycited by 7
  31. 2022Fast Computation of Zigzag Persistencecited by 6
  32. 2017Extracting Persistent Clusters in Dynamic Data via M"obius inversioncited by 5
  33. 2018Spatio-temporal Persistent Homology for Dynamic Metric Spacescited by 5
  34. 2023Just CHOP: Embarrassingly Simple LLM Compressioncited by 5
  35. 2023On Characterizing the Evolution of Embedding Space of Neural Networks using Algebraic Topologycited by 5
  36. 2021Computing Generalized Rank Invariant for 2-Parameter Persistence Modules via Zigzag Persistence and its Applicationscited by 4
  37. 2022Topological Data Analysis for Multivariate Time Series Datacited by 3
  38. 2022The Generalized Rank Invariant: M"obius invertibility, Discriminating Power, and Connection to Other Invariantscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 4; 2026: 7.

12 papers.