TL;DR
This paper tackles the challenge of optimizing deep neural networks (DNNs) for both accuracy and hardware efficiency (like speed and memory usage) simultaneously. They propose a novel multi-objective evolutionary algorithm (MOEA) called HAMP that can find a diverse set of "Pareto-optimal" pruned networks, offering users a range of trade-offs rather than a single, potentially suboptimal, solution.
What Problem Does This Paper Address?
Deep neural networks (DNNs) are incredibly powerful but also computationally expensive and memory-intensive. This makes deploying them on resource-constrained devices like smartphones or embedded systems difficult. Network pruning is a common technique to reduce DNN complexity by removing redundant parameters. However, traditional pruning methods often rely on simplified "proxy metrics" (like FLOPs or parameter counts) that don't accurately reflect real-world hardware performance (latency, memory consumption, energy). Furthermore, these methods typically optimize for a single objective, ignoring the inherent conflict between accuracy and hardware efficiency. This paper addresses the need for "hardware-aware" pruning that directly considers hardware characteristics and acknowledges the multi-objective nature of the problem, where improving one metric might degrade another.
Methods
The core of this paper is the development of a new algorithm, HAMP (Hardware-Aware Multi-objective evolutionary network Pruning). HAMP is a memetic Multi-Objective Evolutionary Algorithm (MOEA). Here's what makes it novel:
- Multi-Objective Formulation: Instead of trying to find a single "best" solution, HAMP frames the problem as finding a set of Pareto-optimal solutions. This means for any solution in the set, you can't improve one objective (e.g., reduce latency) without worsening another (e.g., decreasing accuracy). This provides users with a spectrum of trade-offs.
- Portfolio-Based Selection: Traditional MOEAs like NSGA-II struggle with the imbalanced nature of the objectives in hardware-aware pruning. HAMP addresses this by dividing the objective space into two subspaces: one for highly conflicting objectives (accuracy and latency) and another for less conflicting ones (latency and memory). It then applies different selection principles to each subspace, aiming for better convergence and diversity.
- Surrogate-Assisted Local Search (RLP Operator): Training DNNs is time-consuming. To speed up the search process, HAMP uses a surrogate model (a simplified approximation) to estimate accuracy changes during pruning. This surrogate is integrated into a Restricted Layer-wise Pruning (RLP) operator, which performs local search by iteratively pruning filters within each layer, guided by the surrogate. This avoids expensive full network re-evaluations for every small change.
Datasets
The experiments were conducted using two well-known neural network architectures:
- AlexNet
- MobileNet
These networks were evaluated on the CIFAR-10 image classification dataset. The hardware evaluation was performed on an NVIDIA Jetson Nano platform.
Key Insights and Ideas
- The Multi-Objective Nature is Crucial: The paper strongly argues that treating hardware-aware pruning as a single-objective problem is fundamentally flawed due to the inherent trade-offs between accuracy and hardware metrics. MOEAs are a natural fit for this.
- Hardware Metrics are Complex and Conflicting: The paper highlights that direct hardware feedback (latency, memory) is essential and that these metrics often conflict with each other and with network accuracy in non-trivial ways.
- Imbalanced Objective Spaces Require Specialized Handling: Standard MOEA selection mechanisms can struggle when objective functions have vastly different impacts on the dominance structure. HAMP's portfolio-based selection is designed to address this imbalance.
- Surrogate Models Can Accelerate Pruning: The RLP operator demonstrates that using a low-cost surrogate for accuracy estimation can significantly speed up the search for pruned networks without sacrificing too much performance.
- Flexibility for Users: The ability of MOEAs to provide a set of Pareto-optimal solutions is a major advantage, allowing end-users to select the pruned network that best fits their specific deployment constraints and priorities.
Key Results
- HAMP Outperforms State-of-the-Art: HAMP consistently achieved better results than the state-of-the-art single-objective hardware-aware pruning method, NetAdapt, across all objectives (accuracy, latency, and memory).
- Diverse Set of Solutions: HAMP successfully generated a set of alternative pruned networks, offering users a range of trade-offs. For example, on AlexNet, HAMP found solutions with memory reductions of up to 22.6% and latency reductions of up to 38.2%, while maintaining competitive accuracy.
- Superior to Other MOEAs: Compared to standard MOEAs like NSGA-II and MOEA/D, HAMP found more feasible solutions and achieved better convergence towards the Pareto front, especially in terms of latency and memory.
- Efficacy of Novel Components: Ablation studies showed that both the portfolio-based selection and the surrogate-assisted RLP operator contributed significantly to HAMP's performance.
Limitations and Future Work
- Computational Overhead: While HAMP improves efficiency, evaluating solutions (especially acquiring direct hardware feedback) remains computationally intensive. Future work aims to further reduce this overhead.
- Generalizability: The authors suggest applying HAMP to other learning tasks (e.g., video tracking, NLP) and different network architectures to assess its broader applicability.
- Algorithm Design: Exploring other MOEA frameworks (e.g., decomposition-based, indicator-based) and refining search strategies are suggested for further improvements.
- Automatic Portfolio Construction: The current portfolio-based selection requires manual tuning. Future research could focus on automatically constructing these selection principles.
Summary updated