TL;DR
Traditional filter-level pruning reduces theoretical computational cost (FLOPs) but fails to deliver proportional real-world speedups due to hardware parallelism. This paper introduces Discrimination-based Block-level Pruning (DBP), a method that removes entire sequential blocks of layers based on their feature discrimination capacity, achieving superior wall-clock acceleration and accuracy compared to state-of-the-art pruning and knowledge distillation techniques.
What Problem Does This Paper Address?
To deploy deep convolutional neural networks (CNNs) on resource-constrained devices like mobile phones, researchers use network pruning to reduce computational overhead. The dominant paradigm, filter-level pruning, focuses on removing individual filters within a layer.
However, the authors point out a major flaw: filter-level pruning assumes that reducing FLOPs directly translates to faster inference times. On modern parallel hardware (GPUs and multi-core CPUs), operations within a single layer run simultaneously. Thinning a layer often leaves the actual execution time unchanged because the hardware bottleneck lies in the serial execution across the network's depth (layer after layer). To achieve true wall-clock acceleration, we must prune entire blocks of layers rather than individual filters.
Methods
The authors propose Discrimination-based Block-level Pruning (DBP), which treats a sequence of consecutive layers (e.g., Conv-BN-ReLU) as a single block and prunes redundant blocks.
- Discrimination Evaluation: To find out which blocks are redundant, the authors insert a temporary linear classifier (a simple fully-connected layer) after each block of a pre-trained network. Keeping the network's core weights frozen, they train these classifiers. The accuracy of each classifier serves as a proxy for how "discriminative" (useful for classification) that block's features are.
- Pruning Criterion: A block’s contribution is defined as the difference in accuracy between its classifier and the previous block's classifier ($ACC_{B_i} - ACC_{B_{i-1}}$). Blocks with the lowest or negative contributions are targeted for removal.
- Performance Recovery: Pruning entire blocks initially hurts network performance. DBP recovers accuracy through two strategies:
- Iterative Pruning: Instead of dropping all redundant blocks at once, the network is pruned gradually over multiple cycles.
- Mimic Loss: During fine-tuning, an $\ell_2$-based distillation loss forces the pruned model's outputs (logits) to match those of the original, unpruned network, ensuring stable and fast convergence.
Because architectures like ResNet and DenseNet feature complex routing (e.g., residual connections), the authors introduce structural customizations to ensure the network remains valid after blocks are removed.
Datasets
The method was evaluated on three standard image classification benchmarks:
- CIFAR-10: 50,000 training and 10,000 testing images across 10 classes.
- CIFAR-100: The same image split as CIFAR-10, but distributed across 100 classes.
- ImageNet (I1000): A large-scale dataset containing 1.28 million training images and 50,000 validation images across 1,000 categories.
Key Insights and Ideas
- The Parallelism Paradox: Reducing FLOPs by removing filters within a layer yields diminishing returns on modern hardware because remaining filters are processed in parallel anyway. True acceleration requires shortening the serial execution path (network depth).
- Feature Degradation: Counter-intuitively, feature discrimination does not strictly increase with network depth. The authors discovered "degraded blocks"—layers where the linear classifier's accuracy actually drops compared to the preceding layer.
- The "Slowness" of Deep Models: As networks get deeper, the rate at which they accumulate feature discrimination slows down significantly. This indicates massive structural redundancy in very deep networks, making them ideal candidates for block-level pruning.
- Pruning Degraded Blocks is Safe: Removing a degraded block has a significantly lower impact on final accuracy than removing an "upgraded" block, confirming that these layers contribute little to the overall network performance.
Key Results
DBP consistently outperforms state-of-the-art block-level pruning, filter-level pruning, and knowledge distillation methods.
- Real-World Speedups: On CIFAR-10 using ResNet-56, DBP-0.5 achieves 93.39% accuracy with a 2.17x wall-clock speedup, outperforming the state-of-the-art block-pruning method GAL (which achieved a 1.34x speedup at 93.38% accuracy).
- ImageNet Performance: On ImageNet with ResNet-50, DBP achieved 74.74% accuracy with a 1.39x speedup, maintaining higher accuracy than competing structural selection methods (like SSS and GAL) at similar compression rates.
- Macro-Micro Synergy: Because DBP operates at the block level, it can be seamlessly combined with filter-level pruning algorithms. Combining DBP with COP on ResNet-164 resulted in a massive 6.01x wall-clock acceleration on CIFAR-10 while retaining a high accuracy of 92.76%.
Limitations and Future Work
The paper does not include a dedicated limitations section. However, an apparent challenge is that DBP requires manually designed structural customizations for networks with complex topologies (like ResNet's bottlenecks or DenseNet's dense blocks) to ensure that block removal does not break channel compatibility or information flow. Automating these structural adaptations for arbitrary, novel architectures remains an open direction for future work.
Summary updated