Introduction
Deploying deep learning models on edge devices like mobile phones or autonomous drones presents a unique challenge: available resources such as battery life and memory fluctuate constantly. Traditional model compression techniques produce static models that cannot adapt to these "moving targets." While "anytime networks" exist, they often rely on structured pruning, which sacrifices accuracy, or require significant reconfiguration overhead.
DRESS (Dynamic REal-time Sparse Subnets) addresses these issues through a novel training framework that enables a single backbone network to support multiple sparsity levels simultaneously with zero reconfiguration cost.
The DRESS Framework
The DRESS framework is built on three technical pillars designed to balance hardware efficiency with high accuracy:
- Row-Based Unstructured Sparsity: Instead of random pruning, DRESS prunes weights within each row. This allows the use of efficient storage formats like Compressed Sparse Row (CSR) and acceleration libraries like XNNPACK, maintaining the accuracy of unstructured pruning with the hardware friendliness of structured methods.
- Weight Reusing (Nested Subnets): Subnets are nested such that a high-sparsity model's weights are a strict subset of a lower-sparsity model's weights. This ensures that only the least-sparse model needs to be stored on the device.
- Parallel Training with Weighted Loss: Rather than iterative pruning, DRESS trains $K$ subnets in parallel. The backbone is updated using a weighted sum of losses, preventing the model from over-optimizing for a single sparsity level.
Key Insights
A critical discovery in the development of DRESS was that the loss gradients of different subnets are positively correlated, as shown in the cosine similarity plots in Figure 1. This correlation justifies the joint optimization approach. To handle the fact that weights in high-sparsity subnets receive more frequent updates, the authors introduced a correction factor ($\gamma$) to balance the gradient steps across the weight spectrum. Additionally, subnet-specific Batch Normalization (BN) is used to account for changing internal activation statistics across different sparsity levels.
Experimental Results
The researchers evaluated DRESS using ResNet20 on CIFAR-10 and ResNet50 on ImageNet, comparing it against baselines like Slimmable Networks, MSDNet, and standard pruning methods.
DRESS consistently achieved superior Top-1 accuracy compared to other "anytime" baselines at similar FLOP counts. Notably, it provides significant storage efficiency, requiring 40-50% less disk space than traditional pruning because it avoids storing separate masks or weight sets for every target sparsity.
Conclusion
DRESS offers a robust solution for dynamic resource constraints on edge devices. By combining row-based sparsity with parallel training and weight reuse, it maintains high accuracy across a wide range of sparsity levels. Future research may extend this approach to Transformer architectures and automated layer-wise sparsity allocation.
Summary updated