Introduction
Deep Neural Networks (DNNs) are notoriously resource-hungry, often requiring significant computational power and memory. Structured Compression (SC) aims to mitigate this by either removing entire filters (filter pruning) or approximating weight matrices with smaller ones (low-rank decomposition). While both techniques are effective individually, combining them into a "hybrid compression" scheme is a complex challenge.
The core difficulty lies in the fact that selecting which filters to prune and determining the optimal rank for each layer is a Constrained Combinatorial Optimization Problem (CCOP). In large networks, the number of possible configurations is astronomical. Previous approaches typically relied on "greedy" heuristics or expensive iterative searches that often failed to find the global optimum. This research introduces a mathematically principled, gradient-based approach to replace these methods.
The Differentiable Framework (DF)
The authors propose a Differentiable Framework (DF) that reparameterizes the discrete selection process into a continuous latent space, allowing for end-to-end learning of the optimal network architecture under a specific resource budget.
Methodology
The framework consists of three key components:
- Differentiable Mask Learning (DML-S): To select filters, the authors use a mask function with a "scheduled" sigmoid. By gradually increasing the sigmoid's steepness during training, the model can explore various configurations early on before "locking in" binary (0 or 1) decisions.
- Differentiable Threshold Learning (DTL-S): To determine the optimal rank for low-rank decomposition, the framework utilizes a Singular Value Thresholding (SVT) operator. This allows the network to learn which singular values are critical via backpropagation.
- Differentiable Budget Function: Resource constraints, such as FLOPs or parameter counts, are formulated as a differentiable penalty term using Lagrangian relaxation. This enables the optimizer to balance accuracy and model size simultaneously.
Experimental Results
The DF was evaluated on standard computer vision benchmarks, including CIFAR-10, CIFAR-100, and ImageNet-1k, using architectures like ResNet56, VGG16, ResNet50, and MobileNetV2.
The results consistently outperformed existing state-of-the-art (SoTA) methods:
- ResNet56 (CIFAR-10): The framework reduced FLOPs by 40% while increasing accuracy by 1.6% compared to the baseline.
- ResNet50 (ImageNet): At a 44% FLOP reduction, it improved accuracy by 1.0%.
- MobileNetV2 (ImageNet): Even on this compact architecture, the framework increased accuracy to 72.16% while reducing FLOPs by 35%.
Key Insights
A major finding is the synergy between pruning and decomposition. Pruning is highly effective at low compression rates for removing redundant filters. However, at higher compression rates where pruning typically hurts accuracy, low-rank decomposition excels by allowing for finer-grained dimension reduction without deleting entire channels. The "scheduled sigmoid" in DML-S was also identified as a critical factor in avoiding sub-optimal configurations during gradient-based optimization.
Conclusion and Future Work
The Differentiable Framework demonstrates that joint optimization of pruning and decomposition can lead to compressed models that are both smaller and more accurate than their uncompressed counterparts. Future research could extend this framework to large-scale models in Natural Language Processing (e.g., Transformers) and incorporate direct hardware-latency constraints to further improve real-world performance.
Summary updated