[Paper Review] High-Level Synthesis Performance Prediction using GNNs: Benchmarking, Modeling, and Advancing
This paper proposes a novel graph neural network (GNN)-based framework for high-level synthesis (HLS) performance prediction that enables rapid, accurate, and early-stage circuit quality estimation directly from intermediate representation (IR) graphs of C/C++ programs. By introducing a hierarchical GNN that infers domain-specific knowledge during inference, the method achieves up to 40× faster prediction than HLS tools and outperforms existing predictors by 2× to 5× in accuracy for resource and timing prediction.
Agile hardware development requires fast and accurate circuit quality evaluation from early design stages. Existing work of high-level synthesis (HLS) performance prediction usually needs extensive feature engineering after the synthesis process. To expedite circuit evaluation from as earlier design stage as possible, we propose a rapid and accurate performance modeling, exploiting the representation power of graph neural networks (GNNs) by representing C/C++ programs as graphs. The contribution of this work is three-fold. First, we build a standard benchmark containing 40k C synthesizable programs, which includes both synthetic programs and three sets of real-world HLS benchmarks. Each program is implemented on FPGA to generate ground-truth performance metrics. Second, we formally formulate the HLS performance prediction problem on graphs, and propose multiple modeling strategies with GNNs that leverage different trade-offs between prediction timeliness (early/late prediction) and accuracy. Third, we further propose a novel hierarchical GNN that does not sacrifice timeliness but largely improves prediction accuracy, significantly outperforming HLS tools. We apply extensive evaluations for both synthetic and unseen real-case programs; our proposed predictor largely outperforms HLS by up to 40X and excels existing predictors by 2X to 5X in terms of resource usage and timing prediction.
Motivation & Objective
- To enable fast and accurate performance prediction of high-level synthesis (HLS) circuits at the earliest design stage, before full HLS execution.
- To address the trade-off between prediction timeliness and accuracy by leveraging graph neural networks (GNNs) on intermediate representation (IR) graphs.
- To develop a standardized benchmark with 40k C programs and ground-truth FPGA-implemented metrics for reproducible evaluation.
- To advance GNN modeling in EDA by introducing a novel hierarchical GNN that infers domain knowledge during inference without performance overhead.
- To outperform existing HLS tools and ML-based predictors in both prediction speed and accuracy across synthetic and real-world workloads.
Proposed method
- The method represents C/C++ programs as IR graphs extracted after front-end compilation, forming the input for GNNs.
- It proposes three GNN-based strategies: (1) off-the-shelf GNN on IR graphs for earliest prediction; (2) knowledge-infused GNN that self-inferres domain knowledge during inference; (3) knowledge-rich GNN using HLS auxiliary data for later, more accurate prediction.
- The novel hierarchical GNN performs a two-stage process: node-level classification of resource types (e.g., DSP, LUT, FF) followed by graph-level regression of resource usage and timing.
- The model uses RGCN and PNA architectures, with message-passing mechanisms that capture relational and structural information in dataflow graphs.
- Domain knowledge is infused during training so that the model can generalize to unseen designs without requiring additional feature engineering or runtime computation.
- The framework is evaluated on a benchmark of 40k programs, including synthetic and real-world HLS workloads, with performance measured via MAPE on resource usage and timing.
Experimental results
Research questions
- RQ1Can GNNs predict HLS performance accurately and rapidly from IR graphs without relying on full HLS synthesis?
- RQ2What is the trade-off between prediction timeliness and accuracy when using different levels of domain-specific information in GNNs?
- RQ3Can a hierarchical GNN architecture self-infer domain knowledge during inference to improve accuracy without sacrificing speed?
- RQ4How does the proposed method generalize to unseen real-world applications compared to HLS tools and prior ML predictors?
- RQ5To what extent can GNN-based models outperform traditional analytical models and existing ML predictors in resource and timing prediction?
Key findings
- The proposed hierarchical GNN-based predictor outperforms Vitis HLS by up to 40.6× in prediction accuracy (MAPE) for LUT and FF usage on real-case applications.
- The knowledge-infused approach achieves 2.1× to 5.0× better accuracy than IronMan, a prior state-of-the-art off-the-shelf GCN-based predictor.
- On real-world benchmarks, the PNA-based knowledge-infused model reduces MAPE to 15.20% for DSP, 16.96% for LUT, 17.42% for FF, and 3.97% for timing—significantly below HLS’s 32.09% for timing.
- The hierarchical GNN achieves high accuracy (90.82% for DSP classification) even at the earliest stage, with zero inference overhead.
- The model generalizes well from synthetic to real-world workloads, demonstrating robustness and transferability across diverse circuit designs.
- The benchmark suite of 40k C programs with FPGA-implemented ground-truth metrics provides a standardized foundation for future EDA research.
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.