Entropy and mutual information in models of deep neural networks

Marylou Gabrié, Andre Manoel, Clément Luneau, Jean Barbier, Nicolas Macris, Florent Krzakala, Lenka Zdeborová · DOI

Abstract

We examine a class of deep learning models with a tractable method to compute information-theoretic quantities. Our contributions are three-fold: (i) We show how entropies and mutual informations can be derived from heuristic statistical physics methods, under the assumption that weight matrices are independent and orthogonally-invariant. (ii) We extend particular cases in which this result is known to be rigorously exact by providing a proof for two-layers networks with Gaussian random weights, using the recently introduced adaptive interpolation method. (iii) We propose an experiment framework with generative models of synthetic datasets, on which we train deep neural networks with a weight constraint designed so that the assumption in (i) is verified during learning. We study the behavior of entropies and mutual informations throughout learning and conclude that, in the proposed setting, the relationship between compression and generalization remains elusive.

Introduction

A central question in deep learning research is why high-dimensional neural networks generalize so effectively. The Information Bottleneck (IB) theory posits that networks learn by compressing input data—retaining only label-relevant information while discarding noise. However, verifying this hypothesis is computationally challenging because calculating mutual information for high-dimensional hidden layers is notoriously difficult. This work introduces a mathematical framework based on statistical physics to compute these values for deep, non-linear networks at scale.

Theoretical Framework

The authors utilize the replica method from statistical physics to derive a formula for entropy in multi-layer networks. To ensure mathematical tractability, they introduce USV-layers, where weight matrices $W$ are decomposed as $W = USV^T$. In this setup, $U$ and $V$ are fixed orthogonal matrices, and only the diagonal singular values in $S$ are learned.

Key components of this framework include:

  • The Replica Formula: Enables computation of information-theoretic quantities in the high-dimensional limit.
  • Adaptive Interpolation: Provides a rigorous proof that the formula is exact for two-layer Gaussian networks.
  • Fixed-Point Iteration: An algorithm to solve the saddle-point equations inherent in the replica method.

Experimental Setup

The study employs synthetic datasets to maintain control over the data distribution and facilitate comparison with theoretical predictions.

Architectural models used for synthetic data generation.

The primary models used are:

  • Teacher-Student Models: A teacher network generates labels for i.i.d. Gaussian inputs, which a student network then attempts to learn.
  • Generative-Recognition Models: Correlated data is generated from a latent code (similar to a VAE), and the network must recover this code.
  • MNIST: Used to demonstrate that the constrained USV-layers can still learn complex real-world patterns, achieving ~99% accuracy.

Key Results and Insights

The replica-based estimator proves significantly more accurate in high dimensions than standard non-parametric methods like the Kraskov or Kolchinsky estimators, which often overestimate entropy.

Comparison of entropy estimators in a linear network.

Key findings include:

  • Activation Function Impact: Compression behavior varies by activation. "Hardtanh" shows significant information loss as weights grow, while ReLU behaves differently.
  • The Compression-Generalization Link: While compression (decreasing mutual information between input and hidden layers) was observed, it often occurred after the network reached high accuracy, suggesting the link to generalization is complex.
  • Validation: In linear settings, the replica formula's predictions matched exact values with extremely low error (down to $10^{-13}$).

Discussion and Limitations

The main limitation is the USV-layer constraint and the absence of biases ($+b$) in the current formulation. While USV-layers are expressive enough for MNIST, they are more restrictive than standard layers. Future research will focus on incorporating biases and exploring whether the replica method can identify optimal weight learning strategies. The study concludes that the relationship between compression and generalization remains an open question requiring further rigorous exploration.

Summary updated

BibTeX
@inproceedings{gabrie2018entropy,
  author = {Marylou Gabrié and Andre Manoel and Clément Luneau and Jean Barbier and Nicolas Macris and Florent Krzakala and Lenka Zdeborová},
  title = {{Entropy and mutual information in models of deep neural networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure