Training deep neural networks often involves a paradox: we train massive, over-parameterized models only to prune away 50-90% of their weights to enable deployment on resource-constrained devices. While "pruning from scratch"—training a small model directly—is theoretically more efficient, it frequently leads to significant accuracy drops. This is because overly aggressive pruning in the early stages of training can create information bottlenecks, "choking" the flow of gradients.
The paper "LAPP: Layer Adaptive Progressive Pruning for Compressing CNNs from Scratch" introduces a framework to bypass this bottleneck. LAPP automatically identifies and trains highly compressed models that can actually outperform their uncompressed counterparts.
The Challenge of Pruning from Scratch
Structured pruning, which removes entire filters or channels, is essential for hardware acceleration. However, it faces two primary hurdles:
- The "Goldilocks" Problem: Determining the optimal pruning rate for each layer is difficult. Some layers are redundant, while others are critical. Manual tuning is tedious, and automated methods often lack precise control over final FLOPs.
- Information Bottlenecks: Aggressive pruning at the start of training can make layers so narrow that they block feature propagation, preventing the model from ever reaching peak performance.
The LAPP Framework
LAPP addresses these issues through a combination of architectural innovation and a dynamic optimization strategy. The process transitions from a baseline CNN to a compressed model through iterative training and pruning.
1. The SBC Module (Sparse module with Bypass Compensation)
LAPP replaces standard convolutional layers with a Sparse module with Bypass Compensation (SBC). This module features two parallel paths:
- The Sparse Path: Contains the original convolutional layer, which is progressively pruned.
- The Lightweight Bypass: A tiny block (typically 1x1 conv, depthwise conv, 1x1 conv) that acts as a "safety valve."
The bypass ensures that even if the main path is heavily pruned, information and gradients can still flow through the network, maintaining the rank of feature maps and allowing the model to converge effectively.
2. Layer Adaptive Progressive Pruning
Instead of fixed pruning rates, LAPP treats the pruning threshold ($\delta$) as a learnable parameter for every layer.
During the initial training epochs, the model optimizes a multi-part loss function:
- Task Loss: Standard loss for the target task (e.g., cross-entropy for classification).
- Regularization: Encourages sparsity in the weights.
- FLOPs Constraint: A dedicated term that penalizes deviations from the target compression rate.
The learnable thresholds compete with filter weights; filters that fall below the threshold are masked out. Once the target compression rate is met, the masks are frozen, bypasses are integrated, and the model undergoes final training as a standard compact CNN.
Key Results and Insights
LAPP was evaluated on CIFAR-10 and ImageNet, consistently outperforming state-of-the-art methods like Hrank and SFP.
- ResNet-18 (ImageNet): Achieved a 55.6% reduction in FLOPs with a 0.21% increase in Top-1 accuracy over the baseline.
- VGG-16 (CIFAR-10): Reduced FLOPs by 73.8% while maintaining a high Top-1 accuracy of 93.79%.
- ResNet-20 (CIFAR-10): Compressed to 40.3% of its original size with no loss in accuracy.
The core "aha moment" of LAPP is prioritizing trainability over prunability. By using the bypass to maintain feature map rank, LAPP avoids the vanishing gradient issues common in highly compressed models trained from scratch. Furthermore, the explicit FLOPs regularization allows engineers to target specific hardware budgets with high precision.
Conclusion
LAPP effectively treats pruning as a form of automated architecture search occurring during the first ~10% of training. While the bypass adds a small overhead during training, it is removed for final inference, resulting in a lean, high-performance model. Future work may extend this "bypass compensation" concept to other areas like quantization or broader neural architecture search.
Summary updated