Abstract
Deploying state-of-the-art deep learning models on mobile devices involves a critical trade-off between inference speed and predictive accuracy. Traditional approaches typically employ either channel pruning (removing entire filters) or weight pruning (removing individual connections) in a sequential or isolated manner. This paper presents Joint Channel and Weight pruning (JCW), a unified framework that optimizes both pruning granularities simultaneously. By utilizing a multi-objective evolutionary algorithm, JCW identifies models on the Pareto-frontier of the accuracy-latency space. Our approach incorporates a trilinear latency predictor for efficient on-device estimation and a diversity-preserving selection strategy. Experimental results on ImageNet demonstrate that JCW achieves up to a 2.74× speedup on ResNet18 and a 2.42× speedup on MobileNetV1 without accuracy loss, significantly outperforming existing state-of-the-art methods.
Introduction: The Granularity Gap
The deployment of deep neural networks on mobile hardware is often hindered by the "granularity gap" between different pruning strategies. Channel pruning is a coarse-grained method that reduces the number of filters, resulting in standard dense tensors that are easily accelerated by mobile CPUs. However, it often leads to significant accuracy degradation as it removes entire feature maps. Conversely, weight pruning is a fine-grained method that preserves accuracy by surgically removing individual weights, but it creates sparse matrices that are difficult to accelerate without specialized hardware or software support.
Existing research often treats these methods as independent steps, typically pruning channels first and then weights. However, these dimensions are deeply entangled; the optimal channel configuration for a model depends heavily on the target weight sparsity. By treating them separately, researchers often arrive at sub-optimal architectures. JCW addresses this by searching the joint space of channel counts and layer-wise weight sparsity simultaneously.
The JCW Framework
The JCW framework employs a Multi-Objective Optimization (MOO) approach to discover the Pareto-frontier of models that balance latency and accuracy. The framework consists of four main components:
1. Joint Search Space and Evolutionary Search
JCW searches for the optimal number of channels ($C$) and layer-wise weight sparsity ($S$) simultaneously. It uses an evolutionary algorithm where a population of candidate architectures undergoes crossover and mutation to explore the search space.
2. Trilinear Latency Predictor
Real-world latency on mobile devices does not always correlate with FLOPs due to memory access patterns and computation intensity. To avoid the prohibitive cost of measuring every candidate on-device, JCW uses a trilinear interpolation method. By measuring a sparse set of real-world data points (varying input channels $i_c$, output channels $o_c$, and sparsity $r$), the system can accurately predict the latency of any configuration in the search space.
3. Accuracy Estimation via Super-nets
To evaluate candidates without full retraining, JCW utilizes a "super-net" with shared weights. To mitigate the "coupling" effect where shared weights become unreliable for diverse architectures, the framework reconstructs and retrains a smaller, more focused super-net in each generation.
4. Uniform Non-dominated Sorting
Evolutionary searches can often collapse toward extremely fast but inaccurate models. JCW introduces a selection strategy that forces the algorithm to maintain a diverse population across the entire latency spectrum, preventing the search from getting trapped in local minima.
Experimental Results and Insights
JCW was evaluated on the ImageNet dataset using popular architectures like ResNet18, MobileNetV1, and MobileNetV2 across different mobile CPUs (ARM Cortex-A72 and A53).
- Performance Gains: JCW consistently outperformed state-of-the-art methods such as AMC, DMCP, and AutoSlim. Notably, it achieved a 2.74× speedup on ResNet18 and a 1.93× speedup on MobileNetV2 with no loss in accuracy.
- The Entanglement Effect: The results confirm that joint optimization is necessary. The "best" architecture for a purely channel-pruned model is rarely the best starting point for subsequent weight pruning.
- FLOPs are a Lie: The authors highlight that FLOPs do not always correlate with real-world latency. Factors like memory access and computation intensity matter more, which is why their device-specific latency predictor is so effective.
- Cross-Platform Robustness: Architectures optimized for one CPU (e.g., A72) maintained high performance when deployed on different hardware (e.g., A53), demonstrating the generalizability of the discovered models.
Conclusion
JCW demonstrates that the simultaneous optimization of channel and weight pruning is essential for maximizing model performance on mobile devices. By bridging the granularity gap, the framework provides a robust path for deploying high-accuracy models in resource-constrained environments. Future work may extend this joint optimization approach to more complex vision tasks such as object detection and semantic segmentation.
Summary updated