paper-with-me

Papers

Persistent Topological Features in Large Language Models

2024-10-14 · Yuri Gardinazzi, Karthik Viswanathan, Giada Panerai, Alessio Ansuini, Alberto Cazzaniga, Matteo Biagetti

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.

📄 PDF Abstract BibTeX arXiv:2410.11042

Code (1)

RitAreaSciencePark/ZigZagLLMs 공식 구현 pytorch

Tasks

Decision MakingTopological Data Analysis

Similar Papers 제목 키워드 기반

Topology-Preserving Image Segmentation with Spatial-Aware Persistent Feature Matching

2024-12-03 · Bo Wen, Haochen Zhang, Dirk-Uwe G. Bartsch, William R. Freeman 외

Topological correctness is critical for segmentation of tubular structures. Existing topological segmentation loss functions are primarily based on the persistent homology of the image. They match the persistent features…

Image SegmentationSegmentationSemantic Segmentation

Confidence sets for persistence diagrams

2013-03-28 · Brittany Terese Fasy, Fabrizio Lecci, Alessandro Rinaldo, Larry Wasserman 외

Persistent homology is a method for probing topological properties of point clouds and functions. The method involves tracking the birth and death of topological features (2000) as one varies a tuning parameter. Features…

Persistent homology analysis of type 2 diabetes genome-wide association studies in protein-protein interaction networks

2023-07-31 · Euijun Song

Genome-wide association studies (GWAS) involving increasing sample sizes have identified hundreds of genetic variants associated with complex diseases, such as type 2 diabetes (T2D); however, it is unclear how GWAS hits …

Topological Data Analysis of Neural Network Layer Representations

2022-07-01 · Archie Shahidullah

This paper is a cursory study on how topological features are preserved within the internal representations of neural network layers. Using techniques from topological data analysis, namely persistent homology, the topol…

Topological Data Analysis

Classification of Histopathology Slides with Persistent Homology Convolutions

2025-07-18 · Shrunal Pothagoni, Benjamin Schweinhart arxiv

Convolutional neural networks (CNNs) are a standard tool for computer vision tasks such as image classification. However, typical model architectures may result in the loss of topological information. In specific domains…

Image Classification