[Paper Review] Enabling Automated FPGA Accelerator Optimization Using Graph Neural Networks
This paper proposes GNN-DSE, a graph neural network (GNN)-based surrogate model that predicts FPGA high-level synthesis (HLS) performance in milliseconds, enabling fast design space exploration (DSE). By modeling programs as graphs incorporating control, data, call, and pragma flows, the GNN learns to estimate latency, resource usage, and other objectives with high accuracy, achieving near-optimal results on unseen kernels with minimal training data.
High-level synthesis (HLS) has freed the computer architects from developing their designs in a very low-level language and needing to exactly specify how the data should be transferred in register-level. With the help of HLS, the hardware designers must describe only a high-level behavioral flow of the design. Despite this, it still can take weeks to develop a high-performance architecture mainly because there are many design choices at a higher level that requires more time to explore. It also takes several minutes to hours to get feedback from the HLS tool on the quality of each design candidate. In this paper, we propose to solve this problem by modeling the HLS tool with a graph neural network (GNN) that is trained to be used for a wide range of applications. The experimental results demonstrate that by employing the GNN-based model, we are able to estimate the quality of design in milliseconds with high accuracy which can help us search through the solution space very quickly.
Motivation & Objective
- Address the long feedback loop in FPGA high-level synthesis (HLS) due to minutes-to-hours per design evaluation.
- Overcome the exponential growth of the design space from numerous pragma combinations in HLS optimization.
- Enable automated, scalable design space exploration (DSE) without relying on slow HLS tool invocations.
- Develop a transferable model that generalizes knowledge from trained kernels to new, unseen applications.
- Create a tool-agnostic framework that accelerates DSE while maintaining high prediction accuracy for Pareto-optimal design points.
Proposed method
- Represent FPGA designs as heterogeneous graphs encoding control flow, data flow, call graph, and pragma annotations.
- Train a GNN with Jumping Knowledge Networks (JKN), node attention, and multi-head prediction to capture complex, non-linear interactions between design parameters.
- Use the GNN as a surrogate model to predict key HLS objectives (e.g., latency, resource usage) in milliseconds per design.
- Implement a heuristic-driven DSE framework that iteratively expands the training database using high-quality designs from HLS tool evaluation.
- Leverage transfer learning by fine-tuning the GNN on new kernels not in the original training set, enabling generalization across domains.
- Integrate the GNN model into a DSE pipeline that searches for Pareto-optimal designs by ranking candidates based on predicted performance.
Experimental results
Research questions
- RQ1Can a GNN-based surrogate model accurately predict HLS performance metrics (latency, resource usage) in milliseconds, replacing slow HLS tool invocations?
- RQ2To what extent can a GNN model trained on a limited set of kernels generalize to new, unseen kernels in different domains?
- RQ3How effective is the proposed DSE framework in finding Pareto-optimal designs compared to brute-force or heuristic-based exploration?
- RQ4Can the model efficiently handle the non-monotonic and correlated effects of pragma parameters like unroll factors and pipelining?
- RQ5Does the integration of transfer learning significantly reduce the number of required HLS evaluations for new applications?
Key findings
- The GNN-DSE model predicts HLS performance in under a millisecond with high accuracy, reducing evaluation time from minutes to milliseconds.
- After three rounds of database expansion, GNN-DSE achieved an average speedup of 1.8× over the best initial design, with all kernels improving or matching baseline performance.
- For the 2mm kernel, GNN-DSE explored 78,676 out of 492 million design points in 60 minutes—achieving a speedup of 0.98× compared to AutoDSE after 21 hours of exploration.
- On unseen kernels (gesummv, bicg, 2mm), GNN-DSE achieved nearly identical performance to AutoDSE (18×, 26×, 350× speedup) despite not being in the training set, demonstrating strong generalization.
- The bicg kernel achieved a 1.05× speedup, outperforming AutoDSE’s 1.05× due to full exploration of the design space, highlighting the efficiency of GNN-DSE’s DSE.
- The model generalized effectively to new kernels with only a few training examples, showing that transfer learning significantly reduces the need for expensive HLS evaluations on new applications.
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.