Skip to main content
QUICK REVIEW

[Paper Review] Structural Pruning via Latency-Saliency Knapsack

Maying Shen, Hongxu Yin|arXiv (Cornell University)|Oct 13, 2022
Advanced Neural Network ApplicationsComputer Science10 citations
TL;DR

This paper proposes Hardware-Aware Latency Pruning (HALP), a structural pruning method that formulates network pruning as a latency-constrained resource allocation problem using an augmented knapsack solver. By combining a precomputed latency lookup table with global saliency scores, HALP efficiently identifies optimal filter removals to maximize accuracy under target latency budgets, achieving state-of-the-art accuracy-latency trade-offs on ImageNet and VOC benchmarks across multiple models and hardware platforms.

ABSTRACT

Structural pruning can simplify network architecture and improve inference speed. We propose Hardware-Aware Latency Pruning (HALP) that formulates structural pruning as a global resource allocation optimization problem, aiming at maximizing the accuracy while constraining latency under a predefined budget on targeting device. For filter importance ranking, HALP leverages latency lookup table to track latency reduction potential and global saliency score to gauge accuracy drop. Both metrics can be evaluated very efficiently during pruning, allowing us to reformulate global structural pruning under a reward maximization problem given target constraint. This makes the problem solvable via our augmented knapsack solver, enabling HALP to surpass prior work in pruning efficacy and accuracy-efficiency trade-off. We examine HALP on both classification and detection tasks, over varying networks, on ImageNet and VOC datasets, on different platforms. In particular, for ResNet-50/-101 pruning on ImageNet, HALP improves network throughput by $1.60 imes$/$1.90 imes$ with $+0.3\%$/$-0.2\%$ top-1 accuracy changes, respectively. For SSD pruning on VOC, HALP improves throughput by $1.94 imes$ with only a $0.56$ mAP drop. HALP consistently outperforms prior art, sometimes by large margins. Project page at https://halp-neurips.github.io/.

Motivation & Objective

  • To address the challenge of achieving optimal accuracy-latency trade-offs in structured neural network pruning under real hardware constraints.
  • To overcome the limitations of FLOPs-based pruning by incorporating actual hardware latency measurements, especially for GPU platforms with non-linear latency patterns.
  • To formulate global structural pruning as a constrained optimization problem that maximizes model accuracy while respecting a predefined latency budget on target hardware.
  • To develop an efficient, scalable pruning algorithm that respects layer-wise structural constraints and hardware-specific latency behavior.
  • To outperform existing pruning methods in both accuracy and inference speed across diverse models and datasets.

Proposed method

  • HALP constructs a per-layer latency lookup table on the target hardware to capture the non-monotonic, staircase-shaped latency behavior of convolutional layers under varying channel counts.
  • It computes a global saliency score for each filter to estimate the impact of removal on model accuracy, enabling importance-based ranking.
  • The method formulates pruning as a reward maximization problem under a latency budget, where the reward is the accumulated saliency of retained filters.
  • An augmented knapsack solver is used to select filters, with a greedy approximation that respects layer-wise ordering: only more important filters in a layer can be kept before less important ones.
  • The solver dynamically tracks the best combination of filters to keep under the latency constraint, ensuring optimal accuracy under hardware constraints.
  • The algorithm supports both greedy and non-greedy variants, with the greedy version used in practice due to its efficiency and comparable performance.

Experimental results

Research questions

  • RQ1Can we improve structured pruning by modeling hardware-specific latency behavior instead of relying on FLOPs as a proxy?
  • RQ2How can we jointly optimize for accuracy and latency in a global, end-to-end manner across all layers of a deep network?
  • RQ3What is the impact of layer-wise structural constraints on the pruning process, and how can they be efficiently enforced?
  • RQ4Does a knapsack-based formulation with hardware-aware latency and saliency scores outperform existing pruning methods in accuracy and speed?
  • RQ5How does the pruning performance vary across different models (e.g., ResNet, SSD) and hardware platforms under varying latency budgets?

Key findings

  • For ResNet-50 on ImageNet with a 1G latency budget, HALP achieves 77.45% top-1 accuracy and 1203 FPS, improving throughput by 1.60× with only a +0.3% accuracy change.
  • For ResNet-101 under the same 1G budget, HALP achieves 76.56% top-1 accuracy and 1672 FPS, improving throughput by 1.90× with a -0.2% accuracy change.
  • On VOC for SSD, HALP improves throughput by 1.94× with only a 0.56 mAP drop, demonstrating strong performance in object detection.
  • The non-greedy knapsack solver achieves slightly better accuracy than the greedy version (e.g., 77.51% vs. 77.45% on ResNet-50), but with significantly higher computational cost.
  • HALP consistently outperforms prior state-of-the-art structured pruning methods across all evaluated models, datasets, and hardware platforms.
  • The ablation study confirms that the latency lookup table and saliency-based ranking are both critical for achieving optimal accuracy-latency trade-offs.

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.