Abstract
Trained Rank Pruning (TRP) is a novel training framework that embeds low-rank approximation directly into the stochastic gradient descent (SGD) loop. By alternating between standard training and rank-constrained projection, TRP produces models that are inherently optimized for edge deployment. This approach achieves up to 4.5x speedups with minimal accuracy loss, eliminating the need for intensive post-training fine-tuning typically required by traditional decomposition methods.
Introduction
Deep Neural Networks (DNNs) are notoriously resource-hungry, making them difficult to deploy on mobile and edge devices. A popular solution is low-rank approximation, which decomposes large weight matrices into smaller, more efficient ones. However, traditional approaches suffer from a "decoupling" problem: they typically take a pre-trained, full-rank model and decompose it after the fact. This creates a sudden jump in parameter error that "ripples" through the network, causing a massive drop in accuracy that requires extensive fine-tuning to recover. Conversely, training low-rank models from scratch is difficult because they lack the initial "capacity" to learn complex features. TRP seeks to bridge this gap by making low-rank constraints a fundamental part of the training process itself.
Methodology
The authors introduce two primary mechanisms to create efficient models:
1. Trained Rank Pruning (TRP)
Instead of decomposing at the end of training, TRP applies a low-rank tensor approximation operator every $m$ iterations during the training process. As illustrated in the comparison between standard training and the TRP framework, the network "sees" the low-rank version during the forward pass, while gradients are updated on the original weights. This allows the model to gradually "push" its weight distribution into a low-rank form while maintaining the capacity of the original architecture during the optimization process.
2. Nuclear Norm Regularization
To further encourage the weights to become low-rank, the authors add a nuclear norm penalty to the loss function. They optimize this using stochastic sub-gradient descent, which effectively "nudges" the singular values of the weight matrices toward zero. The combination of TRP projection and nuclear norm regularization (TRP+Nu) proved more effective than either method alone, as the regularization "prepares" the weights to be low-rank, making the subsequent pruning step much less disruptive.
Experimental Results
The method was rigorously tested on standard computer vision benchmarks, including CIFAR-10 (ResNet-20/56) and ImageNet (ResNet-18/50). TRP consistently outperformed previous state-of-the-art compression methods by maintaining higher accuracy at higher speedup rates.
Key performance highlights include:
- ResNet-56 (CIFAR-10): Achieved a 4.5x speedup with only a ~1.5% drop in Top-1 accuracy, significantly outperforming basic decomposition methods.
- ResNet-50 (ImageNet): Achieved a 2.3x speedup while maintaining 72.69% Top-1 accuracy.
- Real-world Latency: On a standard CPU, TRP reduced the inference time of ResNet-18 from 118ms per image to just 49.88ms, a more than 2x practical improvement.
Conclusion
TRP offers a robust solution to the decoupling problem in model compression. By integrating low-rank constraints into the SGD loop and utilizing nuclear norm regularization, it produces highly efficient models without the need for exhaustive post-hoc fine-tuning. While current GPU software optimizations (like cuDNN) are sometimes bottlenecked by the specific kernel shapes produced by spatial decomposition, TRP sets a new benchmark for training-aware model pruning. Future work may involve developing specialized kernels to better leverage these specific low-rank structures.
Summary updated