On Characterizing the Evolution of Embedding Space of Neural Networks using Algebraic Topology

Suryaka Suresh, Bishshoy Das, Vinayak Abrol, Sumantra Dutta Roy
11/8/2023
cs.LGcs.CV

Official code: Cross-Caps/DNNTopology (4 stars, GPL-3.0, last commit 2025-05-21).

Abstract

We study how the topology of feature embedding space changes as it passes through the layers of a well-trained deep neural network (DNN) through Betti numbers. Motivated by existing studies using simplicial complexes on shallow fully connected networks (FCN), we present an extended analysis using Cubical homology instead, with a variety of popular deep architectures and real image datasets. We demonstrate that as depth increases, a topologically complicated dataset is transformed into a simple one, resulting in Betti numbers attaining their lowest possible value. The rate of decay in topological complexity (as a metric) helps quantify the impact of architectural choices on the generalization ability. Interestingly from a representation learning perspective, we highlight several invariances such as topological invariance of (1) an architecture on similar datasets; (2) embedding space of a dataset for architectures of variable depth; (3) embedding space to input resolution/size, and (4) data sub-sampling. In order to further demonstrate the link between expressivity \& the generalization capability of a network, we consider the task of ranking pre-trained models for downstream classification task (transfer learning). Compared to existing approaches, the proposed metric has a better correlation to the actually achievable accuracy via fine-tuning the pre-trained model.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Categorising Topology of DNN Feature Embedding Space

40Python, Jupyter NotebookAug 21, 20231 years agoGPL-3.0

Similar Papers

Cite this paper

@article{suresh2023characterizing,
  title  = {On Characterizing the Evolution of Embedding Space of Neural Networks using Algebraic Topology},
  author = {Suryaka Suresh and Bishshoy Das and Vinayak Abrol and Sumantra Dutta Roy},
  year   = {2023},
  eprint = {2311.04592},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.04592v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.04592.svg)](https://codeofpaper.com/paper/2311.04592)

Discussion