Abstract
Hyperparameter optimization (HPO) is essential for maximizing neural network performance, yet it typically neglects hardware constraints such as power consumption and memory footprint. This paper presents HyperPower, a framework that incorporates these constraints directly into the HPO process. By employing predictive hardware models to identify and exclude "illegal" configurations before training, HyperPower accelerates the search for optimal, deployable models by up to 112x compared to standard hardware-unaware methods.
Introduction
The search for optimal neural network hyperparameters—such as learning rates, layer sizes, and filter counts—is traditionally treated as an accuracy-centric task. However, for models destined for mobile or embedded platforms, accuracy is only part of the equation. Strict power and memory budgets often render high-accuracy models unusable if they are discovered without regard for hardware limitations.
The conventional workflow involves finding a high-accuracy model first and then attempting to compress it for target hardware. This approach is inherently inefficient, often resulting in wasted computational resources and electricity on models that ultimately fail to meet deployment criteria. HyperPower solves this by asking: Can we predict if a configuration is hardware-compliant before training begins?
Methods
HyperPower enhances traditional HPO techniques, such as Bayesian Optimization and Random Search, with hardware awareness. The framework consists of three primary components:
- Predictive Hardware Models: The authors developed linear models that estimate a network's power and memory usage based on its structural hyperparameters (e.g., hidden units, kernel sizes). These metrics are "cheap" to calculate because they depend on the architecture's structure rather than its learned weights.
- Constraint-Aware Acquisition: In Bayesian Optimization, the acquisition function determines the next configuration to evaluate. HyperPower modifies this function to include indicator functions that zero out the expected improvement for any configuration predicted to violate hardware budgets.
- Early Termination: To further save resources, HyperPower identifies and terminates "zombie" runs—models that show signs of diverging accuracy—within the first few epochs.
Key Results
The framework was evaluated on MNIST and CIFAR-10 datasets using AlexNet variants on both desktop (GTX 1070) and embedded (Tegra TX1) GPUs.
- Efficiency Gains: HyperPower reached the same number of function evaluations as constraint-unaware methods up to 112.99× faster.
- Improved Accuracy under Constraints: Within a fixed 5-hour time budget, HyperPower evaluated up to 57.20× more valid configurations than standard methods. This efficiency translated to accuracy improvements of up to 67.6%, as the search avoided "invalid" regions of the design space.
- Model Fidelity: The simple linear predictive models maintained a Root Mean Square Percentage Error (RMSPE) of less than 7% across platforms.
- Constraint Adherence: The hardware-aware acquisition method successfully avoided selecting any samples that violated hardware constraints during the search.
Discussion and Future Work
HyperPower demonstrates that hardware metrics can be decoupled from the expensive training process, allowing for a more pruned and efficient search space. While highly effective for the tested AlexNet variants on NVIDIA GPUs, future work will explore:
- Scaling: Testing on larger datasets like ImageNet and more complex architectures like ResNets or Transformers.
- Model Complexity: Developing non-linear predictive models for more heterogeneous hardware or complex branching networks.
- Hardware Diversity: Extending the framework to specialized AI accelerators such as TPUs, NPUs, and FPGAs.
By treating hardware as a first-class citizen in the optimization loop, HyperPower provides a sustainable path for developing high-performance neural networks for resource-constrained environments.
Summary updated