Learning Sparse Networks Using Targeted Dropout

Aidan N. Gomez, Ivan Zhang, Kevin Swersky, Yarin Gal, Geoffrey E. HintonarXiv 2019

TL;DR

This paper introduces "targeted dropout," a novel training technique that makes neural networks more robust to pruning by selectively dropping less important weights or units during training. This method achieves high sparsity rates with minimal accuracy loss, outperforming existing regularization techniques and offering a simpler, more tunable approach to creating efficient neural networks.

What Problem Does This Paper Address?

Neural networks, despite their power, often have many more parameters than necessary, leading to overfitting and increased computational/storage costs. A common solution is to train a large network and then prune away redundant weights or units. However, standard training methods don't inherently prepare networks for this post-hoc pruning. This means that simply removing the least important weights (e.g., by magnitude) can significantly degrade performance. The challenge is to train networks that are inherently "prunable" – meaning they can withstand significant removal of parameters without a substantial drop in accuracy.

Methods

The core innovation is targeted dropout. Unlike standard dropout, which randomly drops units or weights, targeted dropout first identifies a subset of weights or units deemed "unimportant" based on a simple criterion (like magnitude). Then, it applies dropout only to this identified subset with a specified probability. This process is repeated during training. The hypothesis is that by repeatedly "dropping" these less important elements, the network learns to rely more on the remaining, more important ones, making it more resilient to subsequent pruning. The method uses two hyperparameters: $\gamma$, the proportion of weights to target for dropout, and $\alpha$, the dropout rate applied to these targeted weights.

Datasets

The paper evaluates its method on several standard datasets:

  • CIFAR-10: Used for training and evaluating ResNet and Wide ResNet architectures.
  • ImageNet: Used for evaluating ResNet-102.
  • WMT newstest2014 English-German: Used for evaluating the Transformer architecture.

Key Insights and Ideas

  • Dropout as a Pruning Preparation Tool: The paper reframes dropout not just as an anti-overfitting technique, but as a mechanism to train networks that are inherently robust to pruning.
  • Targeting is Key: Simply dropping random weights isn't enough. By targeting specific weights for dropout based on an importance heuristic, the network learns to rely less on those specific weights, making it more resilient when they are eventually removed.
  • Simplicity and Control: Targeted dropout is presented as a simpler alternative to complex sparsifying regularizers, offering intuitive hyperparameters ($\gamma$ and $\alpha$) that provide fine-grained control over sparsity during training.
  • Reduced Dependence: Targeted dropout effectively reduces the dependence of the "important" subnetwork on the "unimportant" subnetwork, as visualized by analyzing the Hessian matrix.

Key Results

  • High Sparsity, Low Accuracy Drop: Targeted dropout achieves remarkable sparsity rates (e.g., 99% sparsity on ResNet-32 for CIFAR-10 with less than a 4% drop in test accuracy).
  • Outperforms Baselines: It consistently outperforms standard dropout and other regularization methods like L1 and L0 regularization in terms of achieving high sparsity with maintained accuracy.
  • Effective Across Architectures: The method shows strong performance across diverse architectures, including ResNets, Wide ResNets, and Transformers, and on different datasets.
  • Transformer Improvement: For Transformer models, targeted dropout improved BLEU scores by up to 15% at 70% sparsity and 12% at 80% sparsity on the WMT newstest2014 EN-DE task.
  • Ramping TD: A variant called "ramping targeted dropout" (where $\gamma$ is annealed during training) further improves performance at very high pruning rates, achieving 99% sparsity on ResNet32 with 87.03% accuracy on CIFAR-10.

Limitations and Future Work

  • Hyperparameter Tuning: While simpler than some alternatives, finding optimal $\gamma$ and $\alpha$ values might still require some tuning, especially for new architectures or tasks. The paper mentions that L0 regularization, in contrast, requires an "extensive hyperparameter search" to achieve desired sparsity.
  • Importance Heuristic: The paper primarily uses magnitude as the importance criterion. Exploring other heuristics for identifying "unimportant" weights could be a future direction.
  • Prior Structural Assumptions: The authors suggest that dropout can be used to encode prior structural assumptions into neural networks, opening doors for future applications and extensions in this area.
  • Comparison to Scratch Training: While the paper compares against random pruning followed by training from scratch, it acknowledges that other works suggest training smaller networks from scratch can match or outperform pruning. However, the paper's focus is on methods that achieve sparsity during training or as a post-hoc step on a trained network, rather than retraining from scratch.

Summary updated

BibTeX
@misc{gomez2019learning,
  author = {Aidan N. Gomez and Ivan Zhang and Kevin Swersky and Yarin Gal and Geoffrey E. Hinton},
  title = {{Learning Sparse Networks Using Targeted Dropout}},
  year = {2019},
  eprint = {1905.13678},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.13678},
}
Figure