Abstract
EDCompress is a novel model compression framework that shifts the focus from merely reducing model size to optimizing for actual hardware energy consumption. By using reinforcement learning to account for specific hardware "dataflows"—the movement of data between memory and processors—it achieves up to 37X energy efficiency improvements with negligible accuracy loss.
Introduction
Deploying deep learning models on "edge" devices, such as smartphones or IoT sensors, requires balancing high performance with strict power constraints. Traditional model compression techniques like pruning and quantization focus on reducing the number of parameters or bit-width. However, a smaller model does not inherently guarantee lower energy consumption. In architectures like VGG-16, approximately 72% of energy is consumed by data movement rather than computation. EDCompress addresses this by incorporating hardware-specific dataflows into the optimization process.
Hardware-Aware Methodology
The core innovation of EDCompress lies in its hardware-aware modeling. It explicitly considers four popular hardware dataflow types ($X:Y$, $F_X:F_Y$, $X:F_X$, and $C_I:C_O$), which represent different strategies for unrolling convolutional loops onto hardware processing elements to maximize data reuse.
To navigate the complex design space of pruning rates and quantization depths across layers, EDCompress employs a Soft Actor-Critic (SAC) reinforcement learning agent. The agent treats compression as a multi-step optimization problem, performing sequential pruning and quantization steps followed by fine-tuning to preserve accuracy. This multi-step approach prevents the accuracy "collapse" often seen in single-step aggressive compression. The reward function is carefully balanced between model accuracy and energy consumption, enabling the discovery of optimal configurations that minimize energy without compromising performance.
Key Insights: Logic vs. Memory
EDCompress optimizes for two primary energy sinks:
- Logic Energy: Pruning saves energy by allowing hardware to skip multipliers in logic circuits.
- Memory Energy: Quantization reduces the number of bits moved from memory, lowering the cost of data transfers.
The framework also reveals that the "best" dataflow for a network can change after compression. Furthermore, it highlights that compressing early layers—which handle large feature maps—is often more beneficial for energy reduction than compressing later, larger layers with fewer activations.
Experimental Results
The framework was evaluated on ImageNet (MobileNet), CIFAR-10 (VGG-16), and MNIST (LeNet-5). EDCompress significantly outperformed existing state-of-the-art methods like Deep Compression (DC) and HAQ.
Key findings include:
- Energy Efficiency: Improvements of 20X for VGG-16, 17X for MobileNet, and 37X for LeNet-5.
- Area Efficiency: Enhancements of up to 8X in hardware area utilization.
- Accuracy Preservation: Gains were achieved with minimal impact on accuracy (e.g., maintaining ~91.3% on CIFAR-10 for VGG-16).
Conclusion
EDCompress demonstrates that hardware dataflow is a critical factor in model compression. By automating the search for energy-efficient configurations using reinforcement learning, it provides a powerful tool for deploying high-performance AI on resource-constrained edge devices. Future work will explore additional constraints such as latency, thermal design power, and specialized ASIC implementations.
Summary updated