Escaping Random Teacher Initialization Enhances Signal Propagation and Representation

Felix Sarnthein, Sidak Pal Singh, Antonio Orvieto, Thomas HofmannM3L @ NeurIPS 2023

TL;DR

This paper investigates a surprising phenomenon where student neural networks, initialized near a random "teacher" network, learn better representations by diverging from the teacher's optimum. They discover that extremely large learning rates are the key driver, leading to a two-stage process: initial representational collapse followed by a beneficial reorganization that improves signal propagation and data separability.

What Problem Does This Paper Address?

The field of deep learning often relies on pre-trained models or complex initialization strategies to achieve good performance. However, recent work has shown that even when a student network is initialized close to a randomly initialized "teacher" network, it can learn better representations than the teacher itself. This is counter-intuitive, as one might expect the student to simply converge to the teacher's (suboptimal) solution. This paper aims to understand how this "escaping" phenomenon occurs and what properties of the learned representations make them superior. They frame this as a more general study of teacher-student dynamics beyond just distillation.

Methods

The authors simplify the teacher-student setup to isolate key dynamics. They use a VGG11 encoder with a single linear layer, initialized randomly. The student is initialized very close to the teacher ($\epsilon \approx 10^{-10}$). Instead of standard cross-entropy loss, they use Mean Squared Error (MSE) and a normalized MSE (N-MSE) variant, which helps stabilize training with very large step sizes. They investigate the role of step size by performing an LR-Range-Test and then using large step sizes (up to $10^4$ or $10^5$). They also explore the impact of gradient noise by comparing full-batch gradient descent (GD) with mini-batch SGD. To analyze the learned representations, they measure:

  • Effective Rank: A measure of the dimensionality of the representation space.
  • Dead Neurons: The proportion of neurons that output zero for all inputs.
  • Condition Number: A metric for how well-conditioned the feature space is.
  • Separability: Using metrics like between-cluster variance and separability discriminant to assess how well classes are distinguished.

Datasets

The experiments were conducted on CIFAR10. For full-batch experiments, a reduced version of CIFAR10 was used.

Key Insights and Ideas

  • Large Step Sizes are Crucial: The "escape" from the teacher's initialization is primarily driven by extremely large learning rates, not just gradient noise from mini-batching.
  • Two-Stage Escape: The process isn't a direct improvement. It involves an initial "representational collapse" where representations become highly degenerate, followed by a recovery and reorganization into a more beneficial state.
  • Beyond Signal Propagation: While improved signal propagation (higher effective rank, better conditioning) is a consequence, it doesn't fully explain the gain. The organization and separability of representations are also key.
  • Label-Independent Dynamics: The initial escape phase seems to occur without relying on explicit labels, aligning with ideas of label-independent training dynamics.
  • Data-Dependent Initialization: The escaping process can be viewed as a form of data-dependent initialization, leading to better downstream performance.

Key Results

  • Using step sizes as large as $10^4$ or $10^5$ (with N-MSE loss) allows the student to escape the teacher's initialization and achieve superior linear probing accuracy.
  • During the escape, the effective rank of representations initially drops significantly (to single digits) before recovering.
  • The number of "dead neurons" increases dramatically during the collapsed phase (up to 60%) but is then reduced as the network recovers.
  • The condition number of the representations improves after the escape, indicating better-conditioned features.
  • The student network's representations become more separable, leading to higher linear probing accuracy compared to the teacher.
  • Full-batch gradient descent with large step sizes can achieve this escape, suggesting that gradient noise is not strictly necessary, but large step sizes are.

Limitations and Future Work

  • Theoretical Characterization: While the paper provides empirical insights into the phenomenon, a formal theoretical characterization of these training dynamics is suggested as a future direction.
  • Connection to Edge of Stability: The authors propose that the escaping process might be related to the "catapult mechanism" or the "edge of stability" phenomenon, warranting further investigation.
  • Finetuning Behavior: The paper mentions that finetuning behavior was explored in prior work [19] and suggests further investigation into this aspect.
  • Generalizability: While demonstrated on VGG11 and CIFAR10, exploring this phenomenon with different architectures and datasets would be valuable.

Summary updated

BibTeX
@inproceedings{sarnthein2023escaping,
  author = {Felix Sarnthein and Sidak Pal Singh and Antonio Orvieto and Thomas Hofmann},
  title = {{Escaping Random Teacher Initialization Enhances Signal Propagation and Representation}},
  booktitle = {M3L @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=ClCrg213JS},
}
Figure