Abstract
Many DNN-enabled vision applications constantly operate under severe energy constraints such as unmanned aerial vehicles, Augmented Reality headsets, and smartphones. Designing DNNs that can meet a stringent energy budget is becoming increasingly important. This paper proposes ECC, a framework that compresses DNNs to meet a given energy constraint while minimizing accuracy loss. The key idea of ECC is to model the DNN energy consumption via a novel bilinear regression function. The energy estimate model allows us to formulate DNN compression as a constrained optimization that minimizes the DNN loss function over the energy constraint. The optimization problem, however, has nontrivial constraints. Therefore, existing deep learning solvers do not apply directly. We propose an optimization algorithm that combines the essence of the Alternating Direction Method of Multipliers (ADMM) framework with gradient-based learning algorithms. The algorithm decomposes the original constrained optimization into several subproblems that are solved iteratively and efficiently. ECC is also portable across different hardware platforms without requiring hardware knowledge. Experiments show that ECC achieves higher accuracy under the same or lower energy budget compared to state-of-the-art resource-constrained DNN compression techniques.
Introduction
Deep Neural Networks (DNNs) have transformed computer vision, yet their deployment on edge devices like drones and smartphones is often limited by high energy consumption. Traditionally, researchers have used weight sparsity as a proxy for efficiency. However, network sparsity does not correlate linearly with actual energy savings; a model with 50% fewer weights might only yield marginal energy reductions due to hardware-specific overheads.
Existing "resource-constrained" methods typically rely on heuristic, layer-by-layer search approaches. These methods are often sub-optimal as they ignore complex inter-layer interactions and hardware-specific characteristics. This paper introduces ECC (Energy-Constrained Compression), a framework that directly targets energy consumption through a differentiable global optimization approach.
Methodology
ECC operates in two distinct phases: an offline modeling phase and an online optimization phase.
Bilinear Energy Modeling (Offline)
To maintain platform independence, ECC treats hardware as a "black box." By measuring the energy consumption of various network configurations on a target device, the framework constructs a bilinear regression model. This model predicts energy consumption based on the number of channels in adjacent layers. Because this model is differentiable, it allows for gradient-based optimization of the network structure.
Constrained Optimization (Online)
Compression is formulated as a mathematical optimization problem: minimizing the network's loss function subject to the constraint that predicted energy remains below a specified budget. ECC employs a hybrid algorithm combining the Alternating Direction Method of Multipliers (ADMM) with standard stochastic gradient descent (SGD). This enables the simultaneous update of network weights and layer-wise sparsity targets, avoiding the pitfalls of greedy, local search methods.
Experimental Results
The authors evaluated ECC using ImageNet (AlexNet, MobileNet) and Cityscapes (ERFNet) across diverse hardware, including the NVIDIA GTX 1080 Ti and the Jetson TX2 embedded platform.
Performance and Efficiency
ECC demonstrated significant advantages over state-of-the-art methods like NetAdapt and AMC. On the Jetson TX2, ECC achieved 2.6% higher accuracy than NetAdapt under identical energy budgets. Furthermore, ECC achieved 37% energy savings on MobileNet with less than 1% loss in accuracy compared to the original dense model.
Key Insights
- Global Optimization: By optimizing all layers concurrently, ECC can trade off sparsity between layers to find more efficient global configurations.
- Robustness: The performance gap between ECC and other methods widens as energy budgets become stricter, where search-based methods often fail to find valid configurations.
- The "Spike" Phenomenon: Analysis revealed that ECC often prunes certain layers heavily while leaving others dense, effectively discovering efficient low-rank factorizations within the network architecture.
Conclusion
ECC provides a portable, platform-independent framework for energy-constrained DNN compression. By replacing heuristic searches with a differentiable bilinear energy model and ADMM-based optimization, ECC consistently finds models with higher accuracy and lower energy footprints than existing techniques. Future work may extend this framework to include quantization and weight bit-width optimization.
Summary updated