Abstract
AdaSpring is a novel framework for deep neural network (DNN) compression designed to handle the volatile resource constraints of mobile devices, such as fluctuating battery levels and memory availability, in real-time. By employing a "self-evolutionary" network architecture and a high-speed search algorithm, AdaSpring achieves up to 3.1× latency reduction and 4.2× energy efficiency improvements without requiring offline retraining during deployment.
Introduction
Deep learning models are increasingly deployed on mobile and wearable devices for tasks like speech recognition and activity sensing. However, mobile environments are inherently dynamic: battery levels drop, other apps compete for memory (cache contention), and latency requirements change based on user needs.
Existing compression techniques, such as pruning or quantization, are typically "static"—once the model is compressed and deployed, its configuration remains fixed. If the device's environment changes, a static model becomes either too computationally heavy, draining the battery, or too light, sacrificing accuracy unnecessarily. While Neural Architecture Search (NAS) can find optimized models, it usually requires hours of offline retraining or massive search overhead, making it impossible to adapt "on-the-fly" as a user moves through their day.
Methods
The AdaSpring framework consists of two main components:
- Retraining-free Self-evolutionary Network: During an offline phase, a "super-net" is trained to integrate multiple compression operators, including multi-branch merging, low-rank factorization, channel scaling, and depth scaling. The authors utilize parameter recycling and knowledge distillation to ensure that different sub-networks within this super-net can share weights without "catastrophic interference," where training one configuration ruins the performance of another.
- Runtime3C Search Strategy: At runtime, the system monitors the "dynamic context" (battery, cache, etc.). To find the best model configuration quickly, AdaSpring uses a Progressive Shortest Encoding method that reduces search space complexity from exponential $O(M^N)$ to $O(N^2)$.
- Hardware-Efficiency Metrics: Instead of relying solely on FLOPs or parameter counts, AdaSpring uses arithmetic intensity (the ratio of computation to memory access) to guide its search. This metric more accurately predicts actual energy consumption and latency on real hardware.
Key Insights and Ideas
The core innovation of AdaSpring is the decoupling of training from adaptation. By moving the heavy lifting of retraining to a one-time offline phase, the device only needs to "select" the optimal parts of the pre-trained model at runtime.
Unlike standard NAS, which selects a single model, AdaSpring "evolves" the model dynamically. It can scale the model up to increase accuracy when the device is plugged in or scale it down to save power when the battery is low, with the entire process occurring in milliseconds. Furthermore, the authors found that balancing Computation/Parameter and Computation/Activation ratios (arithmetic intensity) is crucial, as reducing parameter size can sometimes inadvertently increase energy consumption due to higher activation memory movement.
Key Results
AdaSpring was evaluated across five diverse tasks (CIFAR-100, ImageNet, UbiSound, Har, and StateFarm) on hardware including a Xiaomi Redmi 3S, Raspberry Pi 4B, and NVIDIA Jetbot.
- Efficiency: Compared to hand-crafted compression methods like SqueezeNet or MobileNetV2, AdaSpring achieved up to 3.1× latency reduction and 4.2× energy efficiency improvements.
- Speed: The runtime search and weight evolution process is extremely fast, incurring less than 6.2ms of latency, allowing it to happen seamlessly in the background.
- Accuracy: The system maintains high performance, with accuracy losses typically staying below 2.1% even under tight resource constraints.
Conclusion
While AdaSpring offers significant advantages for mobile deployment, the initial offline ensemble training of the self-evolutionary network remains computationally expensive. Future work could extend this approach to Transformers or Recurrent Neural Networks (RNNs) and explore more automated ways to define granular compression operators without increasing search time.
Summary updated