[Paper Review] Learned Hardware/Software Co-Design of Neural Accelerators
This paper proposes a constrained Bayesian optimization framework for joint hardware/software co-design of neural accelerators, automatically exploring the vast, semi-discrete design space of hardware architectures and software mappings to minimize energy-delay product. It achieves 18% to 40% improvement in energy-delay product over hand-tuned state-of-the-art systems across multiple models including ResNet and DQN.
The use of deep learning has grown at an exponential rate, giving rise to numerous specialized hardware and software systems for deep learning. Because the design space of deep learning software stacks and hardware accelerators is diverse and vast, prior work considers software optimizations separately from hardware architectures, effectively reducing the search space. Unfortunately, this bifurcated approach means that many profitable design points are never explored. This paper instead casts the problem as hardware/software co-design, with the goal of automatically identifying desirable points in the joint design space. The key to our solution is a new constrained Bayesian optimization framework that avoids invalid solutions by exploiting the highly constrained features of this design space, which are semi-continuous/semi-discrete. We evaluate our optimization framework by applying it to a variety of neural models, improving the energy-delay product by 18% (ResNet) and 40% (DQN) over hand-tuned state-of-the-art systems, as well as demonstrating strong results on other neural network architectures, such as MLPs and Transformers.
Motivation & Objective
- To address the limitations of traditional bifurcated hardware and software optimization, which fail to explore profitable joint design points.
- To enable automated, systematic exploration of the highly constrained, semi-continuous/semi-discrete design space of DNN accelerator hardware and software configurations.
- To develop a scalable, principled optimization framework that jointly co-designs hardware accelerators and software mappings for improved energy-delay product (EDP).
- To demonstrate that learned co-design can produce novel, high-performance architectures and outperform heuristic-based optimizers across diverse neural network models.
Proposed method
- Formalizes the hardware and software design space using parameterized configurations, including PE array layout, buffer sizes, loop tiling, and dataflow patterns.
- Introduces a nested, bilevel Bayesian optimization framework: outer loop optimizes hardware architecture, inner loop optimizes software mappings for a given architecture.
- Employs constrained Bayesian optimization with surrogate models and acquisition functions (e.g., LCB) to efficiently navigate the design space while avoiding infeasible solutions.
- Uses a constrained formulation that accounts for hard constraints such as area, energy budget, and unknown feasibility until evaluation, reducing the 90% invalid design ratio.
- Leverages machine learning to model performance (e.g., latency, energy) and guide search toward high-performing, valid configurations.
- Extends the approach to be modular and extensible across different DNN architectures, including CNNs, MLPs, and Transformers.
Experimental results
Research questions
- RQ1Can a joint, automated hardware/software co-design framework outperform traditional, separate optimization of hardware and software?
- RQ2How can Bayesian optimization be adapted to handle the semi-discrete, highly constrained design space of neural accelerator configurations?
- RQ3What performance improvements in energy-delay product can be achieved through end-to-end co-design compared to hand-tuned state-of-the-art systems?
- RQ4Can the proposed framework discover novel, non-intuitive hardware and software configurations that improve efficiency?
- RQ5How robust is the co-design approach across diverse neural network architectures such as ResNet, DQN, MLPs, and Transformers?
Key findings
- The proposed constrained Bayesian optimization framework achieves a 40.2% improvement in energy-delay product over hand-tuned state-of-the-art systems on DQN, and 18% on ResNet.
- The framework reduces the number of invalid design points explored by over 90%, significantly improving search efficiency in a highly constrained design space.
- The learned co-design approach discovers novel hardware configurations, such as optimized PE array shapes and buffer utilization strategies, that outperform existing designs like Eyeriss.
- When the learned hardware configuration is used with a heuristic software optimizer (e.g., Timeloop), it achieves better results than the optimizer can find on its own, demonstrating robustness across architectures.
- The method achieves strong performance across diverse models, including MLPs and Transformers, confirming its extensibility beyond CNNs.
- The use of surrogate models and acquisition functions like LCB enables efficient, scalable exploration of the joint design space, even with expensive simulation costs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.