Skip to main content
QUICK REVIEW

[Paper Review] Go Wide, Then Narrow: Efficient Training of Deep Thin Networks

Denny Zhou, Mao Ye|arXiv (Cornell University)|Jul 1, 2020
Stochastic Gradient Optimization TechniquesComputer Science5 citations
TL;DR

This paper proposes a three-stage training method—widen, distill, fine-tune—to efficiently train deep thin networks with theoretical guarantees. By first training a wide network and using its intermediate activations to initialize a narrow network via layer-wise distillation with dimension-preserving linear projections, the method achieves superior performance: ResNet50 outperforms ResNet101, and BERT_BASE matches BERT_LARGE, all while avoiding the need for large-scale pretraining or compression.

ABSTRACT

For deploying a deep learning model into production, it needs to be both accurate and compact to meet the latency and memory constraints. This usually results in a network that is deep (to ensure performance) and yet thin (to improve computational efficiency). In this paper, we propose an efficient method to train a deep thin network with a theoretic guarantee. Our method is motivated by model compression. It consists of three stages. First, we sufficiently widen the deep thin network and train it until convergence. Then, we use this well-trained deep wide network to warm up (or initialize) the original deep thin network. This is achieved by layerwise imitation, that is, forcing the thin network to mimic the intermediate outputs of the wide network from layer to layer. Finally, we further fine tune this already well-initialized deep thin network. The theoretical guarantee is established by using the neural mean field analysis. It demonstrates the advantage of our layerwise imitation approach over backpropagation. We also conduct large-scale empirical experiments to validate the proposed method. By training with our method, ResNet50 can outperform ResNet101, and BERT Base can be comparable with BERT Large, when ResNet101 and BERT Large are trained under the standard training procedures as in the literature.

Motivation & Objective

  • To address the challenge of efficiently training compact, deep, and thin neural networks that are suitable for deployment on resource-limited devices.
  • To overcome the difficulty of training deep thin networks from scratch, which suffer from poor optimization due to non-convexity and vanishing gradients.
  • To provide a theoretically grounded alternative to model compression that avoids the inefficiency of training large models first and pruning them.
  • To establish a provably more efficient training process for deep thin networks using mean field analysis.

Proposed method

  • The method first widens the target deep thin network into a deep wide network and trains it to convergence.
  • In the second stage, the narrow network is initialized by mimicking the intermediate layer outputs of the wide network using a layer-wise distillation process with dimension-preserving linear transformations.
  • The linear transformations include an expansion layer to match the wide network's output dimension and a reduction layer to restore the original narrow network dimension.
  • After distillation, the linear layers in the narrow network are merged, restoring its original architecture while preserving the improved initialization.
  • The final stage involves standard fine-tuning of the well-initialized narrow network to achieve optimal performance.
  • Theoretical analysis uses mean field theory to show that the training error bound grows linearly with depth under the proposed method, unlike the exponential growth in standard training from scratch.

Experimental results

Research questions

  • RQ1Can a deep thin network be trained more efficiently by first training a wide version and using it to initialize the narrow one?
  • RQ2Does layer-wise distillation with dimension-preserving projections lead to better optimization and generalization than random or heuristic initialization?
  • RQ3Can the proposed method achieve performance comparable to larger models without requiring large-scale pretraining or compression?
  • RQ4Is there a theoretical justification for why the proposed method avoids the exponential error growth seen in standard training of deep thin networks?

Key findings

  • ResNet50 trained with the proposed method outperforms ResNet101 trained via standard backpropagation on ImageNet.
  • BERT_BASE trained with the proposed method achieves performance comparable to BERT_LARGE, which is typically trained with significantly more parameters and compute.
  • The method reduces the training error bound from exponential to linear growth with respect to network depth, as proven via mean field analysis.
  • The layer-wise distillation with dimension-preserving linear projections enables effective knowledge transfer from wide to thin networks, even when layer dimensions differ.
  • Empirical results show consistent improvements across multiple benchmarks, including image classification and natural language processing tasks.

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.