Abstract
As Moore’s Law slows, the industry is shifting toward custom hardware accelerators tailored for specific neural network architectures. However, the process of "Architecture Exploration"—selecting optimal hardware parameters—is hindered by astronomically large search spaces and slow, cycle-accurate simulations. We present Apollo, a transferable framework for hardware accelerator design that utilizes advanced black-box optimization to navigate these constrained spaces. By leveraging transfer learning between design tasks, Apollo identifies high-performance configurations (achieving up to a 24.6% speedup) while evaluating only ~0.0004% of the possible design points.
The Challenge of Hardware Architecture Exploration
Designing custom hardware like TPUs or NPUs requires picking the right parameters for memory sizes, compute units, and bus widths. This search space often exceeds 500 million combinations. Traditionally, this process relies on manual expert intuition, which is slow and does not easily transfer between different design constraints (e.g., shifting from a 6.8 $mm^2$ chip to a 4.8 $mm^2$ chip). Furthermore, the space is riddled with "infeasible" points—configurations that cannot be physically realized—making automated search difficult.
The Apollo Framework
Apollo treats accelerator design as a black-box optimization problem, comparing several state-of-the-art strategies:
- Evolutionary Search: Uses a population of designs that mutate and recombine.
- Model-Based Optimization (MBO): Fits regression models to past evaluations to predict high-performing new designs.
- P3BO (Population-Based Black-Box Optimization): An ensemble method combining the exploratory creativity of Evolutionary search with the efficiency of MBO.
- Vizier: A Bayesian optimization service using Gaussian processes.
The core innovation of Apollo is its Transfer Learning component. Instead of starting from scratch for every new design constraint, Apollo uses "seeds" or advanced Gaussian process regressors to carry over knowledge from previous successful searches, significantly accelerating the discovery of optimal designs.
Performance and Workload Evaluation
Apollo was evaluated using a cycle-accurate simulator across a diverse set of workloads, including standard models (MobileNetV2, MobileNetEdge) and five in-house models (M3-M7) covering Object Detection, Semantic Segmentation, and OCR.
As illustrated in the figure above, the ensemble approach (P3BO) consistently outperformed individual methods. While MBO is effective at finding feasible points, it often lacks the diversity to find the highest-performing unique configurations. P3BO balances these needs, consistently reaching higher objective values (1/Latency/Area) across all tested models.
Key Insights and Results
- Efficiency: Apollo found optimal configurations by evaluating only 0.0004% of the search space.
- Transfer Gains: Using transfer learning between tasks with different area constraints led to up to 25% improvements in the objective value compared to starting from scratch. Transferring just 100 successful trials from a previous task allowed the optimizers to find better designs much faster.
- Beating the Experts: Apollo identified configurations that were superior to those found through semi-exhaustive manual search, proving that automated tools can find non-obvious optimizations—such as trading off memory for more compute units—that human designers might overlook.
Conclusion and Future Work
Apollo demonstrates the power of automated, transferable optimization in hardware design. Future work will explore "Full-Stack Co-Design," where hardware parameters and software stacks (compilers and schedulers) are optimized simultaneously. Additionally, improving the transfer mechanisms for population-based methods like P3BO remains a key area for development to further reduce the time-to-market for custom silicon.
Summary updated