Compacting Neural Network Classifiers via Dropout Training

Yotaro Kubo, George Tucker, Simon WieslerarXiv 2016

Abstract

We introduce dropout compaction, a novel method for training feed-forward neural networks which realizes the performance gains of training a large model with dropout regularization, yet extracts a compact neural network for run-time efficiency. In the proposed method, we introduce a sparsity-inducing prior on the per unit dropout retention probability so that the optimizer can effectively prune hidden units during training. By changing the prior hyperparameters, we can control the size of the resulting network. We performed a systematic comparison of dropout compaction and competing methods on several real-world speech recognition tasks and found that dropout compaction achieved comparable accuracy with fewer than 50% of the hidden units, translating to a 2.5x speedup in run-time.

Introduction

Deep neural networks (DNNs) have become the standard for high-performance classification, particularly in speech recognition. However, the best-performing models are often large and heavily regularized, making them computationally expensive for real-time applications on mobile devices. Traditional solutions like weight sparsification (L1 regularization) often fail to provide actual speedups on modern hardware optimized for dense matrix operations. Similarly, Singular Value Decomposition (SVD) and Knowledge Distillation introduce their own overheads or complex multi-stage training pipelines.

This paper proposes Dropout Compaction, a method to directly reduce the dimensions of weight matrices during training while maintaining the efficiency of dense matrix math.

Dropout Compaction Methodology

The core innovation of dropout compaction is treating the dropout retention probability ($p$) as a learnable parameter ($\pi$) for every individual hidden unit, rather than a fixed layer-wide hyperparameter.

Bimodal Prior and Optimization

To ensure the network actually prunes units, a powered beta distribution is applied as a prior. This bimodal prior forces the retention probabilities toward either 0 (deleting the unit) or 1 (retaining the unit). The training process utilizes a variational approach with control variates to manage the stochastic gradient estimation of these probabilities. The optimization cycles between updating network weights and updating retention probabilities; units with near-zero probabilities are physically removed after each epoch.

Figure 4: Evolution of retention probabilities across layers (left) and the resulting frame error rates during training (right). The bimodal prior successfully pushes probabilities to 0 or 1, allowing for effective structural pruning.

Experimental Results

The researchers evaluated dropout compaction against baselines, standard dropout, and SVD across several datasets, including MNIST and large-scale production speech tasks like VoiceSearch and GenericFarField.

Performance on Speech Tasks

On speech recognition tasks, dropout compaction consistently achieved comparable or superior accuracy to baseline models while using significantly fewer parameters. For instance, a model compacted from 3072 to approximately 1536 hidden units often outperformed a standard 1536-unit baseline. This reduction in hidden units translated to a 2.5x runtime speedup.

Figure 6: Word error rates (WER) across different speech recognition tasks. Dropout compaction (3072 -> ~1536) consistently achieves competitive results compared to larger baselines and SVD alternatives.

Key Findings

  • Hardware Efficiency: By pruning entire rows/columns of weight matrices, the model remains dense, maximizing hardware utilization compared to weight-level sparsity.
  • Regularization Effect: In MNIST trials, compacted models achieved lower test-set loss than standard dropout models, suggesting that the pruning process itself serves as a powerful regularizer.
  • Superiority over SVD: Dropout compaction maintained higher accuracy than SVD-based methods when pushed to high compression levels.

Conclusion

Dropout compaction offers a robust framework for training efficient, high-performance neural networks. By repurposing dropout as a structural selection tool, it enables the extraction of compact models that are optimized for real-time inference without the performance degradation typical of other compression techniques. Future work will explore extending this methodology to Convolutional (CNN) and Recurrent (RNN) architectures.

Summary updated

BibTeX
@misc{kubo2016compacting,
  author = {Yotaro Kubo and George Tucker and Simon Wiesler},
  title = {{Compacting Neural Network Classifiers via Dropout Training}},
  year = {2016},
  eprint = {1611.06148},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.06148},
}
Figure