Learning Sparse Neural Networks Through Mixture-Distributed Regularization

Chang-Ti Huang, Jun-Cheng Chen, Ja-Ling WuWorkshops @ CVPR 2020

Introduction

Modern Deep Neural Networks (DNNs), such as ResNet, have achieved remarkable performance across various tasks. However, these models are often over-parameterized, containing millions of redundant weights that lead to high memory consumption and computational costs. This "heaviness" poses a significant challenge for deploying state-of-the-art models on mobile and edge devices. To address this, network pruning—specifically $L_0$ regularization—is employed to create "slim" networks.

The Challenge of $L_0$ Regularization

The $L_0$ norm, which counts the number of non-zero weights, is the ideal objective for pruning. However, it is a non-differentiable step function, making it incompatible with standard gradient-based optimization. While previous methods like "Concrete relaxation" attempted to smooth this function, they often suffered from high-variance gradients and were restricted to specific distribution families.

Mixture-Distributed Regularization (MDR)

The authors propose Mixture-Distributed Regularization (MDR), a flexible framework that replaces the $L_0$ norm with a differentiable mixture of distributions. MDR emulates binary "gates" (on/off switches) for neurons using a mixture of two distributions: one centered at 0 (representing a pruned state) and one at 1 (representing an active state).

The MDR framework applies gates to neurons or feature maps to achieve structured sparsity.

Technical Innovations

  • Generalized Framework: MDR supports various distribution families, including Exponential, Exponential-Uniform, and Power-Law mixtures, offering more flexibility than prior Concrete-based methods.
  • Novel Reparameterization: To enable stable training, the authors derived a new gradient formulation that allows backpropagation through these gates using only the PDF and CDF. This bypasses the need for an analytical inverse CDF, which is unavailable for many complex distributions.
  • Structured Sparsity: Instead of pruning individual weights, MDR applies gates to entire neurons or convolutional feature maps. This results in structured sparsity, which is more easily accelerated by hardware.

Experimental Results

The researchers evaluated MDR on standard benchmarks, including MNIST (LeNet), CIFAR-10, and CIFAR-100 (Wide-ResNet and ResNet-110).

Training dynamics on CIFAR-10 and CIFAR-100 showing FLOPs reduction (a, b) and error rates (c, d) over training steps.

Key findings include:

  • Efficiency Gains: On MNIST, the MDR-ExpUni variant achieved a 27x reduction in FLOPs while retaining only 3.8% of weights. On CIFAR-10, it achieved a 4x greater FLOP reduction than previous $L_0$ relaxation baselines without sacrificing accuracy.
  • Stability: Power-Law and Exponential-Uniform mixtures provided lower-variance gradient estimates, leading to more stable training compared to standard relaxation techniques.
  • Joint Optimization: MDR successfully learns sparsity patterns and network weights simultaneously, eliminating the need for a pre-trained model.

Discussion and Future Work

While MDR shows significant promise, it introduces sensitivity to hyperparameters such as the "temperature" ($\beta$) and the sparsity penalty ($\lambda$). Additionally, strict clamping of mixture weights is necessary for convergence. Future research could explore extending MDR to multivariate distributions or applying it to Natural Language Processing (NLP) tasks where model size remains a critical bottleneck.

Summary updated

BibTeX
@inproceedings{huang2020learning,
  author = {Chang-Ti Huang and Jun-Cheng Chen and Ja-Ling Wu},
  title = {{Learning Sparse Neural Networks Through Mixture-Distributed Regularization}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00355},
}
Figure