[Paper Review] A Graph Deep Learning Framework for High-Level Synthesis Design Space Exploration
This paper proposes gnn4hls, a graph neural network framework that predicts performance and hardware cost in High-Level Synthesis (HLS) design space exploration (DSE) by modeling C/C++ behavioral descriptions as hybrid control and data flow graphs. It enables fast, accurate Pareto-optimal configuration discovery—outperforming traditional DSE methods and achieving simulator-level accuracy up to 1000x faster, with strong transferability to unseen applications via fine-tuning.
The design of efficient hardware accelerators for high-throughput data-processing applications, e.g., deep neural networks, is a challenging task in computer architecture design. In this regard, High-Level Synthesis (HLS) emerges as a solution for fast prototyping application-specific hardware starting from a behavioural description of the application computational flow. This Design-Space Exploration (DSE) aims at identifying Pareto optimal synthesis configurations whose exhaustive search is often unfeasible due to the design-space dimensionality and the prohibitive computational cost of the synthesis process. Within this framework, we effectively and efficiently address the design problem by proposing, for the first time in the literature, graph neural networks that jointly predict acceleration performance and hardware costs of a synthesized behavioral specification given optimization directives. The learned model can be used to rapidly approach the Pareto curve by guiding the DSE, taking into account performance and cost estimates. The proposed method outperforms traditional HLS-driven DSE approaches, by accounting for arbitrary length of computer programs and the invariant properties of the input. We propose a novel hybrid control and data flow graph representation that enables training the graph neural network on specifications of different hardware accelerators; the methodology naturally transfers to unseen data-processing applications too. Moreover, we show that our approach achieves prediction accuracy comparable with that of commonly used simulators without having access to analytical models of the HLS compiler and the target FPGA, while being orders of magnitude faster. Finally, the learned representation can be exploited for DSE in unexplored configuration spaces by fine-tuning on a small number of samples from the new target domain.
Motivation & Objective
- Address the challenge of high-dimensional, computationally expensive HLS design space exploration (DSE) for hardware accelerators.
- Reduce reliance on exhaustive synthesis runs by replacing costly simulations with learned performance and cost predictions.
- Enable transfer learning to new, unseen applications with minimal retraining using fine-tuning.
- Develop a generalizable, architecture-agnostic framework that supports arbitrary-length programs and preserves program invariants.
- Bridge the gap between machine learning and EDA by enabling data-driven, automated DSE without human-in-the-loop.
Proposed method
- Represent C/C++ behavioral descriptions as hybrid control and data flow graphs to capture both structural and semantic program properties.
- Design a novel graph neural network (GNN) architecture that jointly predicts performance (e.g., latency) and hardware cost (e.g., LUTs, BRAMs) from the graph representation.
- Train the GNN on diverse HLS configurations across multiple applications to learn transferable representations of optimization behavior.
- Use a hybrid graph representation that preserves program invariants and supports generalization across different program structures and lengths.
- Enable domain adaptation via fine-tuning on a small number of new application samples, achieving strong performance with minimal data.
- Leverage the GNN’s inductive bias to generalize beyond training data, supporting zero-shot or few-shot DSE for new workloads.
Experimental results
Research questions
- RQ1Can a graph neural network effectively predict both performance and hardware cost in HLS DSE without access to analytical compiler models or FPGA target details?
- RQ2How well does the proposed GNN framework generalize to unseen applications and design spaces compared to existing transfer learning or model-based DSE approaches?
- RQ3To what extent can the GNN replace costly synthesis runs in DSE while maintaining prediction accuracy comparable to full simulation?
- RQ4How does the model’s performance vary across different application classes, especially in computationally intensive domains like deep learning?
- RQ5Can the learned GNN representation be effectively fine-tuned on new target domains with minimal data, enabling rapid deployment in new design contexts?
Key findings
- The gnn4hls framework achieves prediction accuracy comparable to full-cycle HLS simulators, with inference speeds up to 1000x faster.
- The model demonstrates strong generalization across diverse applications, including linear algebra kernels critical for deep learning, with lower ADRS (Average Distance to the Pareto frontier) than state-of-the-art baselines.
- Transfer learning via fine-tuning on just a few new application samples yields high performance, confirming the framework’s adaptability to unseen design spaces.
- The hybrid control and data flow graph representation enables effective modeling of arbitrary-length programs and preserves semantic invariants crucial for accurate prediction.
- The GNN-based approach outperforms traditional model-based and refinement-based DSE strategies in both convergence speed and Pareto frontier approximation.
- Empirical evaluation shows lower variance in performance predictions and higher mean accuracy across benchmarks, especially in neural processing workloads.
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.