Table of Contents
Fetching ...

An unsupervised tour through the hidden pathways of deep neural networks

Diego Doimo

TL;DR

The thesis tackles understanding deep neural networks through unsupervised analysis of hidden representations and generalization. It introduces Gride, a scale-aware intrinsic-dimension estimator, and combines it with density-based methods to map how semantic structure emerges across layers, revealing hierarchical nucleation of density peaks that mirror category relations. It also uncovers a generalization mechanism in wide networks: redundant representations (clones) in the final layer interpolate training data and enable error decay as a $W^{-1/2}$ power law, contingent on regularization and interpolation. The work provides tools and empirical evidence linking intrinsic dimension, probability-density topology, and semantic organization across architectures (ResNet, ViT, iGPT), offering new insights for transfer learning, robustness, and interpretability. Collectively, the results advance unsupervised characterizations of representation geometry and illuminate practical implications for training, architecture design, and generalization limits in deep learning.

Abstract

The goal of this thesis is to improve our understanding of the internal mechanisms by which deep artificial neural networks create meaningful representations and are able to generalize. We focus on the challenge of characterizing the semantic content of the hidden representations with unsupervised learning tools, partially developed by us and described in this thesis, which allow harnessing the low-dimensional structure of the data. Chapter 2. introduces Gride, a method that allows estimating the intrinsic dimension of the data as an explicit function of the scale without performing any decimation of the data set. Our approach is based on rigorous distributional results that enable the quantification of uncertainty of the estimates. Moreover, our method is simple and computationally efficient since it relies only on the distances among nearest data points. In Chapter 3, we study the evolution of the probability density across the hidden layers in some state-of-the-art deep neural networks. We find that the initial layers generate a unimodal probability density getting rid of any structure irrelevant to classification. In subsequent layers, density peaks arise in a hierarchical fashion that mirrors the semantic hierarchy of the concepts. This process leaves a footprint in the probability density of the output layer, where the topography of the peaks allows reconstructing the semantic relationships of the categories. In Chapter 4, we study the problem of generalization in deep neural networks: adding parameters to a network that interpolates its training data will typically improve its generalization performance, at odds with the classical bias-variance trade-off. We show that wide neural networks learn redundant representations instead of overfitting to spurious correlation and that redundant neurons appear only if the network is regularized and the training error is zero.

An unsupervised tour through the hidden pathways of deep neural networks

TL;DR

The thesis tackles understanding deep neural networks through unsupervised analysis of hidden representations and generalization. It introduces Gride, a scale-aware intrinsic-dimension estimator, and combines it with density-based methods to map how semantic structure emerges across layers, revealing hierarchical nucleation of density peaks that mirror category relations. It also uncovers a generalization mechanism in wide networks: redundant representations (clones) in the final layer interpolate training data and enable error decay as a power law, contingent on regularization and interpolation. The work provides tools and empirical evidence linking intrinsic dimension, probability-density topology, and semantic organization across architectures (ResNet, ViT, iGPT), offering new insights for transfer learning, robustness, and interpretability. Collectively, the results advance unsupervised characterizations of representation geometry and illuminate practical implications for training, architecture design, and generalization limits in deep learning.

Abstract

The goal of this thesis is to improve our understanding of the internal mechanisms by which deep artificial neural networks create meaningful representations and are able to generalize. We focus on the challenge of characterizing the semantic content of the hidden representations with unsupervised learning tools, partially developed by us and described in this thesis, which allow harnessing the low-dimensional structure of the data. Chapter 2. introduces Gride, a method that allows estimating the intrinsic dimension of the data as an explicit function of the scale without performing any decimation of the data set. Our approach is based on rigorous distributional results that enable the quantification of uncertainty of the estimates. Moreover, our method is simple and computationally efficient since it relies only on the distances among nearest data points. In Chapter 3, we study the evolution of the probability density across the hidden layers in some state-of-the-art deep neural networks. We find that the initial layers generate a unimodal probability density getting rid of any structure irrelevant to classification. In subsequent layers, density peaks arise in a hierarchical fashion that mirrors the semantic hierarchy of the concepts. This process leaves a footprint in the probability density of the output layer, where the topography of the peaks allows reconstructing the semantic relationships of the categories. In Chapter 4, we study the problem of generalization in deep neural networks: adding parameters to a network that interpolates its training data will typically improve its generalization performance, at odds with the classical bias-variance trade-off. We show that wide neural networks learn redundant representations instead of overfitting to spurious correlation and that redundant neurons appear only if the network is regularized and the training error is zero.
Paper Structure (83 sections, 33 equations, 47 figures, 1 table)

This paper contains 83 sections, 33 equations, 47 figures, 1 table.

Figures (47)

  • Figure 1: Comparison between Gride and TwoNN:
  • Figure 2: Density landscape of the hidden representations of ResNet152:
  • Figure 3: Redundant representations in wide neural networks.:
  • Figure 4: A comparison between the scale analysis of TwoNN and Gridea: Schematic representation of the TwoNN nearest neighbors for three data points sampled from a 2-dimensional uniform distribution; b: one dimensional noisy spiral. The spiral coordinates are parametrized by $t$ as $(t \cdot \text{cos}(6t); t \cdot \text{sin}(6t))$. We generate N = 20 thousand data points sampling $t$ uniformly on the unit interval and add to each coordinate of the points a Gaussian noise with standard deviation $\sigma = 10^{-3}$. c-d-e: scale analysis of the ID with the decimation approach. c: nearest neighbors on the decimated data set, d: ID profile as a function of the neighborhood size, shown on the x-axis in $\sigma$ units, e: probability ID = 2 as a function of the neighborhood size. f-g-h: scale analysis of the ID with the Gride approach.
  • Figure 5: Gride likelihood functions for different orders of $k$. We show the shape of the Gride likelihood functions for a $k_1=1$ ( a), $k_1=16$ ( b), and $k_1=256$ ( c). Inside each panel, we illustrate the distributions for increasing intrinsic dimensions equal to $(1, 2, 5, 10)$. When k=1 $p(\mu_k|d)$ coincides with the TwoNN Pareto likelihood (see Eq. \ref{['eq:pareto']}). Increasing $k$ (panels b-c), the likelihoods of different IDs are less and less overlapped.
  • ...and 42 more figures

Theorems & Definitions (1)

  • proof