Abstract
Compressing Deep Neural Networks (DNNs) is critical for real-world applications on resource-constrained devices. However, performance typically deteriorates drastically when changing model size after training. Consequently, retraining is often required to adapt models for different hardware. We propose Decomposable-Net, a network architecture that can be decomposed into any size without retraining. By decomposing weight matrices via Singular Value Decomposition (SVD) and adjusting ranks according to target constraints, Decomposable-Net allows flexible scaling. We introduce a novel backpropagation scheme that jointly minimizes losses for both full- and low-rank networks, maintaining full-rank performance while improving low-rank accuracy across multiple sizes. In experiments on ImageNet, Decomposable-Net achieves 73.2% top-1 accuracy with 0.27× MACs using ResNet-50, outperforming Tucker decomposition (67.4%), Trained Rank Pruning (70.6%), and universally slimmable networks (71.4%).
Introduction
Deploying DNNs on edge devices like smartphones or robots is a constant balancing act between performance and resource constraints. Traditional compression techniques like pruning and low-rank approximation suffer from the "retraining trap": once a model is compressed, it requires extensive fine-tuning to recover accuracy. Furthermore, these methods lack scalability; a model optimized for a high-end GPU cannot be easily adapted for a low-power microcontroller without training a separate version. Decomposable-Net addresses these challenges by enabling a single trained model to be scaled to any size at inference time without additional retraining.
Methodology
The core of Decomposable-Net is the application of Singular Value Decomposition (SVD) to weight matrices ($W = USV^T$). By adjusting the ranks of these matrices, the model's size and computational cost (MACs) can be flexibly controlled.
Joint Loss Minimization
During the learning phase, the network is trained to be robust across various ranks. A novel backpropagation scheme jointly minimizes a weighted loss for both the full-rank network and a randomly sampled low-rank version. This dual-path optimization ensures that the most critical features are preserved even when the model is "slimmed" down at inference time.
Global Rank Selection
Rather than uniform rank reduction, Decomposable-Net employs a "global rank selection" (sv) criterion. By sorting all singular values across the entire network, the method identifies the most important bases globally. This allows for an adaptive allocation of parameters, prioritizing layers that contribute most to the overall performance.
Key Insights and Results
A fundamental advantage of Decomposable-Net over width-based "Slimmable Networks" is its focus on principal components. While slimmable networks reduce the number of channels, Decomposable-Net reduces the rank, preserving the most significant mathematical directions in the weight space.
As shown in the singular value analysis, Decomposable-Net effectively concentrates the network's energy into a smaller number of basis indices compared to the baseline. This concentration allows for high accuracy even at low ranks. Empirical results show a smooth accuracy-to-size trade-off, with Decomposable-Net consistently outperforming existing state-of-the-art scalable and low-rank methods. On ImageNet with ResNet-50, it achieved 73.2% top-1 accuracy at only 0.27× MACs, providing a 2.26× speedup over the baseline on a CPU.
Conclusion
Decomposable-Net provides a unified framework for scalable DNNs, eliminating the need for costly retraining when deploying models across diverse hardware. By leveraging low-rank factorization and joint loss optimization, it achieves a superior balance between accuracy and computational efficiency. Future work may explore combining this rank-based scalability with channel pruning or neural architecture search for even greater compression.
Summary updated