TL;DR
FuPruner is a novel pruning framework that targets both parametric (convolutional) and non-parametric (element-wise addition) operators. By aggressively fusing non-parametric layers into convolutions before pruning, it unlocks significant speedups on specialized edge hardware where these "simple" operations are often hidden bottlenecks.
What Problem Does This Paper Address?
Neural network pruning is a standard technique for deploying deep learning models on resource-constrained edge devices. By removing redundant filters, we reduce computation and memory footprints. However, traditional pruning methods have a blind spot: they almost exclusively target parametric operators like convolutions.
On general-purpose hardware like a desktop CPU, this makes sense—convolutions account for over 95% of execution time. But on specialized edge AI accelerators (like the Google Edge TPU or Intel NCS), the story changes. On these devices, "non-parametric" operations—such as the element-wise additions found in ResNet shortcuts—can consume a significant portion of the total inference time.
If these operators are left untouched, Amdahl’s Law dictates a strict cap on the maximum possible speedup, no matter how much you prune the convolutional layers. The authors of this paper ask: Can we optimize these non-parametric operators using the same pruning logic applied to convolutions?
Methods
The authors introduce FuPruner (Fusion-catalyzed Pruner), which uses a three-stage workflow to "catalyze" the pruning of non-parametric layers:
- Aggressive Fusion: Unlike standard fusion (which just combines layers for deployment), FuPruner uses "aggressive fusion" to transform the model's topology. It inserts auxiliary identity-like convolutions (
xconv-Candxconv-F) that mathematically absorb the logic of element-wise additions and concatenations. - Padded Convolutions: To handle shortcut connections with different dimensions (like 1x1 convolutions in ResNet), the framework transforms them into 3x3 "padded" convolutions. This ensures the entire residual block can be fused into a single, larger convolutional structure.
- Dynamic Filter Pruning: Once fused, the resulting convolutions have "dilated" weights (more filters than the original). FuPruner then applies a dynamic filter pruning strategy. During training, it zeroizes unimportant filters based on their $\ell_2$-norm. Crucially, these filters can "recover" during training, which helps maintain higher accuracy than static pruning.
Datasets
The approach was evaluated using state-of-the-art residual networks (ResNet-18, 20, 32, and 34) on two benchmark datasets:
- CIFAR-10: 60,000 images across 10 classes.
- ImageNet (ILSVRC2012): A large-scale dataset with over 1 million images across 1,000 classes.
Testing was performed across five edge platforms: NVIDIA Jetson TX2, Jetson Nano, Google Edge TPU, Intel NCS, and NCS2.
Key Insights and Ideas
- Amdahl’s Law for Pruning: The paper quantifies that on a Jetson Nano, non-parametric ops take up ~40% of the time. Traditional pruning can only ever address the other 60%, whereas FuPruner expands the "optimizable" space to nearly 100%.
- Fusion as an Enabler: Fusion isn't just a backend trick for reducing kernel launches; it's a structural transformation that makes the model's topology more "prunable."
- Regularization Effect: Interestingly, the authors found that their pruning often improved accuracy over the baseline. This suggests that the dynamic pruning acts as a form of regularization, reducing over-fitting in the compressed models.
Key Results
FuPruner consistently outperformed classic filter pruning methods in both speed and accuracy:
- Speedups: The method achieved end-to-end speedups of up to 1.43x on the Edge TPU and 1.34x on the Jetson TX2 for ResNet-18.
- Accuracy Preservation: On ImageNet, ResNet-18 optimized with FuPruner actually saw a 1.21% increase in Top-1 accuracy while significantly reducing inference time.
- Operator Elimination: In detailed analysis on the Jetson TX2, FuPruner reduced the execution time of "Add" operators from 1.24ms to 0.00ms, effectively deleting those operations from the computational graph.
Limitations and Future Work
- Hardware Implementation Details: The authors noted that on some platforms like the Intel NCS, pruning filters to non-standard sizes (e.g., 63 instead of 64) can actually slow down inference because the underlying libraries are optimized for power-of-two data widths.
- Manual Tuning: Currently, users must manually define fusion options and pruning rates. The authors suggest that automating this hyperparameter tuning is a key next step.
- Scope: While highly effective for CNNs, the current auxiliary operators are designed for convolutional patterns. Extending this to Recurrent Neural Networks (RNNs) or Transformers would require designing new sets of auxiliary operators.
Summary updated