Skip to main content
QUICK REVIEW

[Paper Review] Structured Model Pruning of Convolutional Networks on Tensor Processing Units

Kongtao Chen, Ken Franko|arXiv (Cornell University)|Jul 9, 2021
Advanced Neural Network ApplicationsComputer Science20 references21 citations
TL;DR

This paper proposes structured channel-level pruning of VGG-16 on TPUs using TensorFlow 2 to improve inference efficiency without accuracy loss. By pruning channels based on scaling factors or L1 norms and reloading original weights, the method achieves significant memory and speed gains—especially on small datasets like CIFAR-10—demonstrating that structured pruning effectively leverages TPU optimizations via XLA layout and auto-tuning.

ABSTRACT

The deployment of convolutional neural networks is often hindered by high computational and storage requirements. Structured model pruning is a promising approach to alleviate these requirements. Using the VGG-16 model as an example, we measure the accuracy-efficiency trade-off for various structured model pruning methods and datasets (CIFAR-10 and ImageNet) on Tensor Processing Units (TPUs). To measure the actual performance of models, we develop a structured model pruning library for TensorFlow2 to modify models in place (instead of adding mask layers). We show that structured model pruning can significantly improve model memory usage and speed on TPUs without losing accuracy, especially for small datasets (e.g., CIFAR-10).

Motivation & Objective

  • To evaluate the accuracy-efficiency trade-off of structured model pruning on TPUs for real-world deployment.
  • To investigate whether structured pruning improves inference speed and memory usage on TPUs despite XLA’s zero-padding for unstructured pruned weights.
  • To compare different pruning strategies—scaling factor-based and L1-norm-based—on both CIFAR-10 and ImageNet datasets.
  • To assess the impact of reloading pre-trained weights from the original model on pruned model performance.
  • To determine the extent to which VGG-16 is over-parameterized for small datasets like CIFAR-10, enabling higher pruning ratios without accuracy degradation.

Proposed method

  • Used a TensorFlow 2 implementation of VGG-16 trained on CIFAR-10 and ImageNet to evaluate pruning effects.
  • Applied channel-level structured pruning using two importance criteria: scaling factors from batch normalization layers (Liu et al., 2017) and L1 norm of channel weights (Li et al., 2017).
  • Constructed pruned models in-place by modifying layer structures and reloading corresponding weights from the original model, avoiding additional mask layers.
  • Maintained consistent hyperparameters (batch size 128, 100 epochs, SGD with momentum 0.9 and initial LR 0.01) across all models to isolate pruning effects.
  • Measured performance on Google Borg using TPU inference, including accuracy, memory usage, and step time during the final training epoch.
  • Leveraged XLA auto-tuner and layout algorithms to ensure realistic TPU performance evaluation, accounting for zero-padding of pruned weights.

Experimental results

Research questions

  • RQ1Can structured model pruning improve inference speed and memory efficiency on TPUs without sacrificing accuracy?
  • RQ2How does the accuracy-efficiency trade-off vary between small datasets (CIFAR-10) and large datasets (ImageNet) under structured pruning?
  • RQ3Does reloading weights from the original model improve the accuracy of pruned models on TPUs?
  • RQ4Which pruning criterion—scaling factor or L1 norm—yields better accuracy for pruned models on TPUs?
  • RQ5To what extent is VGG-16 over-parameterized for CIFAR-10, enabling higher pruning ratios without accuracy loss?

Key findings

  • On CIFAR-10, VGG-16 can be pruned by up to 30% in channel count without significant accuracy loss, while on ImageNet, accuracy drops sharply beyond 10% pruning.
  • At a 30% pruning ratio, CIFAR-10 accuracy remains nearly unchanged, whereas ImageNet accuracy decreases by approximately 20%, indicating greater over-parameterization in VGG-16 for smaller datasets.
  • Reloading weights from the original model consistently improves pruned model accuracy across all pruning methods and datasets.
  • Scaling factor-based pruning (Liu et al., 2017) outperforms L1-norm-based pruning (Li et al., 2017) in maintaining accuracy under equivalent pruning ratios.
  • Memory usage and step time on TPUs decrease proportionally with pruning ratio, though not linearly due to XLA’s zero-padding of pruned weights based on layout constraints.
  • Structured pruning leads to significant improvements in model memory usage and inference speed on TPUs, especially for small datasets like CIFAR-10, due to effective utilization of TPU hardware and XLA optimizations.

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.