Introduction
Deep Neural Networks (CNNs) are typically over-parameterized, leading to high computational costs that hinder deployment on edge devices. While unstructured pruning reduces model size theoretically, structured pruning—removing entire filters or feature maps—is required for real-world hardware speedups. However, existing structured pruning methods often lack direct control over the final model size, requiring tedious hyperparameter tuning. This paper introduces Budget-Aware Regularization (BAR), a framework that incorporates hardware budgets directly into the training process.
Methodology
The BAR framework treats pruning as a constrained optimization problem, building upon Dropout Sparsity Learning (DSL) where learnable masks are applied to feature maps.
Budget-Aware Regularization (BAR)
The core innovation is a modified log-barrier function. In optimization, a log-barrier acts as a mathematical "wall" that penalizes the loss function as the model size approaches a predefined budget. Unlike standard penalties, the BAR function goes to infinity if the budget is exceeded, forcing the optimizer to respect the constraint as a hard limit.
Sigmoidal Budget Schedule
Enforcing a strict budget from the start of training can lead to "accuracy collapse" by pruning filters before they have learned useful features. To mitigate this, the authors employ a sigmoidal budget schedule. The constraint starts loose and gradually tightens over time, allowing the network to identify expendable filters during the middle stages of training.
Architectural and Training Enhancements
To further stabilize training and improve performance, the authors integrate:
- Knowledge Distillation (KD): The original unpruned network acts as a teacher to guide the pruned student network.
- Mixed-Connectivity Blocks: Standard ResNet architectures require matching dimensions for residual and shortcut paths, which often leads to "fatal pruning." The proposed mixed-connectivity block decouples these paths, allowing for more aggressive and flexible pruning.
Experimental Results
The BAR framework was evaluated across several benchmarks, including CIFAR-10/100, TinyImageNet, and the large-scale Mio-TCD vehicle classification dataset.
- Compression and Accuracy: On CIFAR-10, the method achieved 91.62% accuracy even at 16x pruning. Competing methods like MorphNet showed significant performance degradation at similar compression levels.
- FLOP Reduction: The approach demonstrated massive efficiency gains, reducing FLOPs by up to 64x on CIFAR-10 and 200x on Mio-TCD without substantial accuracy loss.
- Automatic Depth Discovery: Interestingly, the algorithm can prune away entire ResNet blocks, effectively discovering the optimal network depth for a specific task and budget automatically.
Conclusion
Budget-Aware Regularization provides a robust mechanism for structured pruning by turning model size into a direct optimization constraint. By combining the barrier method with a sigmoidal schedule and architectural flexibility, BAR achieves state-of-the-art compression ratios while maintaining high accuracy, offering a practical path for deploying efficient CNNs on resource-constrained hardware.
Summary updated