Assessing Neural Network Representations During Training Using Noise-Resilient Diffusion Spectral Entropy

Danqi Liao, Chen Liu, Benjamin W. Christensen, Alexander Tong, Guillaume Huguet, Guy Wolf, Maximilian Nickel, Ian Adelstein, Smita Krishnaswamy

TL;DR

This paper introduces Diffusion Spectral Entropy (DSE) and Mutual Information (DSMI), novel metrics that use manifold learning to measure how information flows through deep neural networks. Unlike traditional methods that fail in high dimensions, these tools are noise-resilient and can reliably track learning, detect overfitting, and even predict a model's final accuracy without full evaluation.

What Problem Does This Paper Address?

Information theory is the "holy grail" for understanding neural networks. Ideally, we want to measure how much information a layer keeps about the input (compression) versus the labels (prediction). However, calculating these values (Entropy and Mutual Information) in modern networks is notoriously difficult due to the "curse of dimensionality."

Standard methods rely on "binning"—dividing the space into a grid and counting samples. In a 2048-dimensional ResNet layer, the number of bins required would exceed the number of atoms in the universe. Furthermore, high-dimensional data is often "noisy," causing traditional estimators to see maximum entropy everywhere. The authors aim to bypass these ambient dimensions and look at the intrinsic manifold—the actual underlying structure where the data lives.

Methods

The authors leverage Diffusion Geometry to create a more robust lens for viewing representations:

  1. The Diffusion Operator ($P$): Instead of looking at raw coordinates, they build a graph where nodes are data points and edges represent similarity. They use an anisotropic kernel to ensure the geometry isn't distorted by how densely the data is sampled.
  2. Spectral Entropy: They perform an eigendecomposition of this operator. The "Diffusion Spectral Entropy" (DSE) is calculated using the von Neumann entropy of the resulting eigenvalues. Essentially, DSE counts the number of "meaningful" dimensions or clusters in the representation.
  3. Mutual Information (DSMI): This is defined as the difference between the total DSE of a representation and the average DSE when conditioned on a variable (like a class label).
  4. Noise Resilience: By "powering" the diffusion matrix (raising it to $t$), they can effectively low-pass filter the data, ignoring small-scale noise and focusing on the major structural components of the representation.

Datasets

The researchers validated their approach across a wide range of scales:

  • Toy Data: Simulated Gaussian blobs and hierarchical trees to prove the math works where others fail.
  • Standard Vision Benchmarks: MNIST, CIFAR-10, and STL-10.
  • ImageNet: They analyzed a massive suite of 962 pre-trained models (including various ConvNets and Vision Transformers) from the popular timm library to test cross-model correlations.

Key Insights and Ideas

  • The "Aha" Moment on Overfitting: The authors found that while DSE (the complexity of the representation) increases during both learning and overfitting, DSMI with labels ($I(Z;Y)$) tells a different story. It climbs during healthy learning but stays stagnant or drops during overfitting. This provides a clear mathematical signature for when a model stops learning general patterns and starts memorizing noise.
  • Intrinsic vs. Ambient: Traditional Shannon entropy saturates almost immediately in high dimensions. DSE remains descriptive, capturing the "branching" or "clustering" of data as the network learns to separate classes.
  • Initialization as a Predictor: They discovered that how a network is initialized significantly impacts its starting DSE. Networks that start in a "low DSE" state (more organized/compressed) tend to converge faster and reach higher final accuracy than those starting in a "high DSE" (chaotic) state.

Key Results

  • Scaling to the Moon: DSMI successfully measured mutual information in 10,000+ dimensions, a regime where standard estimators like MINE (Mutual Information Neural Estimation) or NPEET completely failed or became computationally unfeasible.
  • Predicting Performance: Across nearly 1,000 different ImageNet models, DSMI showed a strong positive correlation ($p < 0.001$) with downstream classification accuracy. This suggests we can estimate how good a model is just by looking at its internal representations on a small subset of data.
  • Training Dynamics: In self-supervised learning (like SimCLR), DSMI with labels increases even though the model never sees the labels during training, proving that good self-supervision naturally aligns with the underlying geometry of the classes.

Limitations and Future Work

  • Computational Complexity: While more efficient than binning, calculating eigenvalues still scales at $O(n^3)$ relative to the number of data points ($n$). For massive datasets, the authors rely on subsampling, which requires careful tuning to avoid underestimating entropy.
  • The "t" Parameter: The diffusion time $t$ is a powerful tool for noise filtering, but choosing the optimal $t$ for different architectures remains somewhat heuristic.
  • Future Directions: The authors suggest using DSE and DSMI as regularization terms in the loss function. Imagine a training process that explicitly penalizes representations that don't increase their mutual information with the target labels.

Summary updated

BibTeX
@inproceedings{liao2024assessing,
  author = {Danqi Liao and Chen Liu and Benjamin W. Christensen and Alexander Tong and Guillaume Huguet and Guy Wolf and Maximilian Nickel and Ian Adelstein and Smita Krishnaswamy},
  title = {{Assessing Neural Network Representations During Training Using Noise-Resilient Diffusion Spectral Entropy}},
  booktitle = {CISS},
  year = {2024},
  doi = {10.1109/ciss59072.2024.10480166},
}

Loading related content...

Figure