TL;DR
The Progressive Channel-Shrinking (PCS) network introduces a more stable and hardware-friendly way to prune neural networks. By gradually "shrinking" unimportant channels during training rather than abruptly cutting them off, and using a "running" policy to fix the pruning mask for inference, the authors achieve state-of-the-art compression with significant real-world speedups on both GPUs and mobile CPUs.
What Problem Does This Paper Address?
Deep learning models are notoriously resource-hungry. Channel pruning—removing entire filters from convolutional layers—is a popular way to slim them down. There are two main flavors:
- Static Pruning: Pruning is done once, and the model is retrained. It's fast at inference but inflexible.
- Dynamic Pruning: The model decides which channels to skip on-the-fly based on the input. This is flexible but has two major flaws:
- Training Instability: Most dynamic methods use "gating" or "truncation" functions that abruptly zero out channels. This creates discontinuities that make the network hard to train.
- The Indexing Bottleneck: Because the pruning mask changes for every single image, the hardware has to constantly "look up" which weights to use. This high Memory Access Cost (MAC) often negates the speed gains from having fewer computations (MAdds).
Methods
The authors propose two core innovations to bridge the gap between dynamic flexibility and static efficiency:
1. Progressive Shrinking (PS)
Instead of using a hard threshold (e.g., "if salience < 0.1, set to 0"), PCS uses a shrinking loss. During training, the network identifies the $K$ least important channels. A specialized loss function gradually pushes their salience values toward zero over many iterations. This "milder" approach allows the rest of the network to adapt smoothly to the disappearing information, preventing the accuracy drops seen with abrupt truncation.
2. Running Shrinking Policy (RSP)
To solve the indexing bottleneck, the authors track the Exponential Moving Average (EMA) of channel salience across the entire training set.
- During Training: The pruning is dynamic and adaptive.
- During Testing: The pruning mask becomes static, based on the "consensus" reached by the running average. This allows the pruned channels to be physically removed before deployment, eliminating the need for expensive per-sample indexing and significantly reducing MAC.
Salience Generator
The importance of each channel is determined by a lightweight module: Global Average Pooling $\to$ FC $\to$ ReLU $\to$ FC $\to$ Hard Sigmoid.
Datasets
The method was evaluated on standard computer vision benchmarks:
- ImageNet-1K: Using ResNet-18, ResNet-34, and VGG16.
- CIFAR-10: Using ResNet-20 and ResNet-32.
- Generalization tests: Also performed on MobileNetV2 and Transformer architectures (T2T-ViT and Swin Transformer).
Key Insights and Ideas
- Smoothness Matters: The "aha moment" here is that differentiability isn't just a mathematical requirement; it's a stability requirement. By making the pruning process continuous, the network avoids the "shock" of losing features suddenly.
- FLOPs $\neq$ Speed: The paper highlights that reducing Multiply-Add operations (MAdds) doesn't always lead to faster models if the Memory Access Cost (MAC) remains high. Their Running Shrinking Policy specifically targets MAC.
- Residual Coupling: The authors observed that "even" layers in ResNets are pruned more aggressively than "odd" layers. This is because odd layers are directly coupled to residual connections; keeping them wider allows for better gradient flow through the skip connections.
Key Results
PCS consistently outperformed SOTA dynamic pruning methods (like FBS, ManiDP, and DGC) across all metrics:
- ResNet-18 (ImageNet): Achieved a ~50% reduction in MAdds and a ~55% reduction in MAC with only a 0.2% drop in Top-1 accuracy.
- VGG16 (ImageNet): Reduced MAdds by 5.5x and MAC by 3x, while actually increasing accuracy by 0.1% compared to the baseline.
- Real-world Latency: On an NVIDIA 1080Ti, PCS-ResNet18 was ~30% faster than the baseline. On an ARM-based mobile SoC (Apple M1), it was nearly 40% faster.
- Transformers: On Swin-Transformer, PCS reduced MAdds by 2.0G with zero loss in accuracy.
Limitations and Future Work
- Hyperparameter $K$: The user still needs to pre-define $K$ (the number of channels to prune). While the authors provide a heuristic ($K = \frac{1}{2}C_{out}$), an automated way to determine the optimal $K$ per layer would be a natural next step.
- Hybrid Optimization: The authors suggest that future work could involve a more complex loss function that jointly optimizes for both MAC and FLOPs simultaneously, rather than treating them as secondary results of the shrinking process.
Summary updated