On Characterizing the Evolution of Embedding Space of Neural Networks using Algebraic Topology
Preprint
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.Keywords
All Related Versions
This publication has 17 references indexed in Scilit:
- Activation function design for deep networks: linearity and effective initialisationApplied and Computational Harmonic Analysis, 2022
- Deep Learning for 3D Point Clouds: A SurveyIEEE Transactions on Pattern Analysis and Machine Intelligence, 2021
- Experimental stability analysis of neural networks in classification problems with confidence sets for persistence diagramsNeural Networks, 2021
- Ripser: efficient computation of Vietoris–Rips persistence barcodesJournal of Applied and Computational Topology, 2021
- Ranking Neural Checkpoints2021
- Transferability and Hardness of Supervised Classification Tasks2019
- MobileNetV2: Inverted Residuals and Linear Bottlenecks2018
- Deep Residual Learning for Image Recognition2016
- On the Complexity of Neural Network Classifiers: A Comparison Between Shallow and Deep ArchitecturesIEEE Transactions on Neural Networks and Learning Systems, 2014
- On the Local Behavior of Spaces of Natural ImagesInternational Journal of Computer Vision, 2007