EDCompress: Energy-Aware Model Compression with Dataflow

Zhehui Wang, Tao Luo, Joey Tianyi Zhou, Rick Siow Mong Goh

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.

Visualization of different hardware dataflow types modeled by EDCompress to optimize data movement.

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:

  1. Logic Energy: Pruning saves energy by allowing hardware to skip multipliers in logic circuits.
  2. 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.

Comparison of EDCompress (EDC) against Deep Compression (DC) in terms of compression rate, energy efficiency, and area efficiency.

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

BibTeX
@misc{wang2020edcompress,
  author = {Zhehui Wang and Tao Luo and Joey Tianyi Zhou and Rick Siow Mong Goh},
  title = {{EDCompress: Energy-Aware Model Compression with Dataflow}},
  year = {2020},
  eprint = {2006.04588},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.04588},
}
Figure