Abstract
Optimizing Deep Neural Networks (DNNs) for the vast ecosystem of edge devices is a significant bottleneck due to the need for device-specific profiling. This paper introduces two strategies to scale this process: leveraging performance monotonicity to reuse predictors across devices and a "learning to optimize" meta-framework that generalizes to unseen hardware. These methods reduce the time required to support new devices from over 40 hours to just minutes or even near-instantaneous generation.
Introduction
As deep learning shifts toward edge computing on smartphones, wearables, and IoT devices, the "one-size-fits-all" model approach fails to deliver optimal performance. Neural Architecture Search (NAS) and model compression are used to find the best accuracy-to-latency trade-offs, but these methods are typically device-specific. Building a latency predictor for a single new System-on-Chip (SoC) can require profiling thousands of architectures, taking upwards of 40 hours. Given the thousands of SoCs on the market, this approach is unscalable.
Methodology
The authors propose two primary approaches to overcome the "one-predictor-per-device" bottleneck.
1. Reusing Performance Predictors via Monotonicity
This approach is based on the observation of performance monotonicity: if a DNN architecture is faster than another on one device, it is likely to remain faster on a different device, even if absolute latencies change. By using a high-quality predictor from a "proxy" device and performing a bi-section search on a weight parameter ($t$) that balances accuracy and latency, the system can find optimal configurations for new devices with minimal real-world measurements (approximately 10 samples).
2. Learning to Optimize (Meta-Optimizer)
To achieve "zero-shot" optimization, the authors developed a meta-optimizer. This involves:
- Scalable Predictors: Latency predictors that take both DNN architecture features and hardware specifications (CPU, RAM, GPU) as inputs, allowing generalization to unseen hardware.
- Automated Optimizer Network: A neural network trained to directly output the optimal DNN design given device features and optimization targets. This allows for near-instant custom model generation for new hardware.
Results and Key Insights
The core of the proposed scalability lies in the insight that relative ranking is more critical than absolute latency values for optimization.
As shown in the experimental results, the latency trends across different devices (e.g., Google Pixel 1 vs. Pixel 2) are remarkably consistent. This validates the monotonicity assumption even across different OS versions and chipsets.
Key results include:
- Efficiency: Reducing the overhead of supporting new devices from 40+ hours to minutes.
- Speed: Near-instant generation of optimal designs via the meta-optimizer.
- Generalization: Successful estimation of latency for devices not seen during training by using hardware feature embeddings.
Conclusion and Future Work
By decoupling weight training from architectural search and leveraging hardware-agnostic performance trends, this work provides a path toward truly scalable edge AI. Future challenges include addressing the "monotonicity gap" that may occur between vastly different hardware architectures (e.g., CPU vs. specialized NPU) and the need for larger, public datasets mapping architecture and device features to performance metrics.
Summary updated