Differentiable Transportation Pruning

Yunqiang Li, Jan C. van Gemert, Torsten Hoefler, Bert Moons, Evangelos Eleftheriou, Bram-Ernst Verhoef

Abstract

Differentiable Transportation Pruning (DTP) re-imagines neural network pruning as an optimal transport problem, enabling precise, differentiable control over a model's final size. By leveraging an efficient, single-step Sinkhorn approach, DTP achieves state-of-the-art accuracy across diverse architectures while strictly adhering to exact sparsity targets without the need for complex penalty term tuning.

Introduction

Deploying deep learning models on resource-constrained edge devices—such as smartphones and IoT sensors—requires aggressive pruning to remove redundant weights and filters. However, pruning is inherently a discrete selection problem. Traditional methods often rely on manual heuristics, while recent differentiable approaches using soft masks and $L_1$ regularization are notoriously difficult to tune. These penalty-based methods frequently fail to meet exact sparsity targets, requiring extensive trial-and-error to achieve a specific model size.

Methodology

The authors propose Differentiable Transportation Pruning (DTP), which frames filter selection as an optimal transport (OT) problem: moving "importance" from a source to a target distribution.

  1. Optimal Transport Formulation: Trainable importance scores for filters are mapped to a target Bernoulli distribution, where the target represents the desired fraction of filters to keep.
  2. Soft Top-k Operator: To maintain differentiability, DTP employs an entropic optimal transport scheme. This generates a "soft mask" that allows gradients to flow through the selection process during training.
  3. Efficiency via Proximal Point Iteration: Standard OT solvers like the Sinkhorn algorithm can be computationally heavy. DTP optimizes this by using a single Sinkhorn iteration per mini-batch, stabilized by a Bregman divergence-based proximal point method. This approach adds negligible overhead (~0.5%) to training time.
  4. Automatic Annealing: The framework includes an automatic temperature schedule. Masks begin "soft," allowing the model to explore which filters are most useful, and gradually "harden" into binary 0/1 selections by the end of training.
Overview of the DTP framework.
Evolution of masks and importance scores during training.

Experimental Results

DTP was evaluated across several benchmarks, including CIFAR-10/100, ImageNet, and MobileNetV2, consistently outperforming previous state-of-the-art (SOTA) methods like GReg and ChipNet.

  • ImageNet (ResNet-50): At a 2.31x speedup (FLOP reduction), DTP achieved 75.55% accuracy, a minimal drop of 0.58% from the baseline, surpassing all compared methods.
  • Extreme Pruning: On CIFAR-10 with ResNet-56, DTP maintained an accuracy of 86.18% even at 95% pruning, significantly higher than the 82.79% achieved by standard $L_1$ pruning.
  • Global Sparsity: On MobileNetV2 (CIFAR-100) with an 80% global sparsity budget, DTP reached 68.90% accuracy, vastly outperforming ChipNet's 52.96%.

Discussion and Conclusion

A key advantage of DTP is its precise sparsity control; the budget is enforced as a structural constraint of the transport problem rather than a loss penalty. This allows for an automated architecture search during training, as filters can "flicker" between being kept or pruned before the masks harden.

While the annealing process is automatic, the initial temperature parameter $\epsilon$ may still require architecture-specific tuning. Future research could integrate hardware-aware latency measurements directly into the transport cost function to further optimize models for specific edge devices.

Summary updated

BibTeX
@inproceedings{li2023differentiable,
  author = {Yunqiang Li and Jan C. van Gemert and Torsten Hoefler and Bert Moons and Evangelos Eleftheriou and Bram-Ernst Verhoef},
  title = {{Differentiable Transportation Pruning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure