Skip to main content
QUICK REVIEW

[Paper Review] A Closer Look at Deep Learning Heuristics: Learning rate restarts, Warmup and Distillation

Akhilesh Deepak Gotmare, Nitish Shirish Keskar|arXiv (Cornell University)|Oct 29, 2018
Neural Networks and ApplicationsComputer Science107 citations
TL;DR

The paper empirically analyzes cosine learning rate restarts, learning rate warmup, and knowledge distillation using mode connectivity and SVCCA to understand training dynamics and representations in deep networks.

ABSTRACT

The convergence rate and final performance of common deep learning models have significantly benefited from heuristics such as learning rate schedules, knowledge distillation, skip connections, and normalization layers. In the absence of theoretical underpinnings, controlled experiments aimed at explaining these strategies can aid our understanding of deep learning landscapes and the training dynamics. Existing approaches for empirical analysis rely on tools of linear interpolation and visualizations with dimensionality reduction, each with their limitations. Instead, we revisit such analysis of heuristics through the lens of recently proposed methods for loss surface and representation analysis, viz., mode connectivity and canonical correlation analysis (CCA), and hypothesize reasons for the success of the heuristics. In particular, we explore knowledge distillation and learning rate heuristics of (cosine) restarts and warmup using mode connectivity and CCA. Our empirical analysis suggests that: (a) the reasons often quoted for the success of cosine annealing are not evidenced in practice; (b) that the effect of learning rate warmup is to prevent the deeper layers from creating training instability; and (c) that the latent knowledge shared by the teacher is primarily disbursed to the deeper layers.

Motivation & Objective

  • Motivate understanding of widely used deep learning heuristics beyond empirical success.
  • Investigate cosine annealing / SGDR, learning rate warmup, and knowledge distillation with modern analysis tools.
  • Assess how these heuristics affect loss surfaces and representations across network layers.
  • Provide insights into where and how these heuristics exert their influence during training.

Proposed method

  • Apply mode connectivity to connect optima found under different training schemes and analyze the resulting curves and barriers.
  • Use SVCCA (with SVD/DFT preprocessing for efficiency) to measure representational similarity between activations across networks and training iterations.
  • Characterize SGDR through learning rate schedules and compare against standard SGD with/without restarts.
  • Employ CCA to study layer-wise activation evolution under warmup and distillation scenarios.
  • Perform controlled experiments on VGG-16/ResNet variants with CIFAR-10 to observe dynamics across layers.

Experimental results

Research questions

  • RQ1Do cosine annealing / SGDR restarts create or cross barriers in the loss landscape, and is this essential to their success?
  • RQ2How does learning rate warmup influence stability and which network layers are most affected?
  • RQ3Where does the knowledge transferred in distillation manifest within the student network’s representations?
  • RQ4What do mode connectivity and SVCCA reveal about training dynamics under these heuristics?

Key findings

  • Cosine annealing benefits are not consistently evidenced as escaping barriers; iterates move across barriers after restarts, but this may not fully explain the benefit.
  • Learning rate warmup primarily limits weight changes in the deeper layers, and freezing those layers can achieve similar stability.
  • The latent knowledge from the teacher in distillation is predominantly disbursed to the deeper (discriminative) layers of the student.
  • Representational similarity analyses show that shallow-layer activations are more alike post-training, with deeper layers carrying differentiated representations.
  • Mode connectivity reveals robust high-accuracy connecting curves between diverse optima, suggesting connected loss landscapes across training choices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.