[Paper Review] Graph-Adaptive Pruning for Efficient Inference of Convolutional Neural Networks
This paper proposes Graph-Adaptive Pruning (GAP), a topology-aware weight pruning method for efficient inference in convolutional neural networks. By modeling CNNs as computational graphs and pruning non-essential vertices and edges based on articulation points and bridges, GAP enables direct, post-processing-free model compression at both vertex- and edge-level, achieving up to 13× model compression and 4.3× practical speed-up on CIFAR-10 with minimal accuracy loss, enhanced by a self-taught knowledge distillation finetuning strategy.
In this work, we propose a graph-adaptive pruning (GAP) method for efficient inference of convolutional neural networks (CNNs). In this method, the network is viewed as a computational graph, in which the vertices denote the computation nodes and edges represent the information flow. Through topology analysis, GAP is capable of adapting to different network structures, especially the widely used cross connections and multi-path data flow in recent novel convolutional models. The models can be adaptively pruned at vertex-level as well as edge-level without any post-processing, thus GAP can directly get practical model compression and inference speed-up. Moreover, it does not need any customized computation library or hardware support. Finetuning is conducted after pruning to restore the model performance. In the finetuning step, we adopt a self-taught knowledge distillation (KD) strategy by utilizing information from the original model, through which, the performance of the optimized model can be sufficiently improved, without introduction of any other teacher model. Experimental results show the proposed GAP can achieve promising result to make inference more efficient, e.g., for ResNeXt-29 on CIFAR10, it can get 13X model compression and 4.3X practical speed-up with marginal loss of accuracy.
Motivation & Objective
- To address the inefficiency of existing pruning methods in handling complex CNN architectures with cross-connections and multi-path flows.
- To eliminate the need for post-processing after pruning by adapting pruning to the network's computational graph topology.
- To achieve practical inference speed-up beyond FLOPs reduction by minimizing memory access and computation through vertex- and edge-level pruning.
- To improve pruned model performance without external teacher models by introducing a self-taught knowledge distillation finetuning strategy.
- To enable deployment-ready, compact models using standard deep learning libraries without custom hardware or software support.
Proposed method
- The CNN is modeled as a computational graph G = {V, E}, where vertices V represent computation operations and edges E represent information flow.
- Pruning is guided by graph theory: only non-articulation points (non-bridges) can be removed to preserve connectivity and information flow.
- Vertex-level pruning uses group sparsity regularization to jointly prune filters in cross-connections (e.g., 1-to-n or n-to-1), avoiding isolated or redundant paths.
- Edge-level pruning targets multi-path data flows, reducing both computation and memory access costs by removing low-significance edges based on learned scaling parameters.
- A self-taught knowledge distillation strategy is applied during finetuning, using the original model as the teacher to improve accuracy without additional inference cost.
- Sparsity regularization is applied during training to encourage structured sparsity, followed by pruning and finetuning to restore performance.
Experimental results
Research questions
- RQ1Can graph-theoretic analysis of CNNs enable pruning that preserves network topology and avoids post-processing in models with cross-connections?
- RQ2How does vertex-level pruning based on articulation points and bridges compare to channel-level pruning in terms of model compression and inference speed-up?
- RQ3Can edge-level pruning effectively reduce memory access and improve practical inference speed-up, even with higher accuracy degradation?
- RQ4To what extent can a self-taught knowledge distillation strategy restore performance after pruning without requiring an external teacher model?
- RQ5What is the trade-off between theoretical and practical speed-up in vertex- and edge-level pruning across different network architectures?
Key findings
- On CIFAR-10 with ResNeXt-29, GAP achieved 13× model compression and 4.3× practical speed-up with only 0.4% accuracy drop.
- Vertex-level pruning achieved 12× model compression, 15× theoretical speed-up, and 4.3× practical speed-up with near-identical accuracy to the original model.
- Edge-level pruning achieved higher practical speed-up than channel-level pruning at the same theoretical speed-up level, due to reduced memory access.
- In ResNeXt-50, the practical speed-up exceeded theoretical speed-up, indicating that reduced memory access significantly accelerates inference.
- The self-taught knowledge distillation finetuning strategy significantly improved accuracy recovery compared to naive finetuning, with no additional inference cost.
- In DenseNet-BC, edge-level pruning was limited to 1×1 convolutions, resulting in lower model compression but still effective in reducing memory access and improving inference efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.