[Paper Review] IronMan: GNN-assisted Design Space Exploration in High-Level Synthesis via Reinforcement Learning
IronMan is an end-to-end framework that integrates a graph neural network (GNN)-based performance predictor (GPP), a reinforcement learning (RL)-driven design space exploration engine (RLMD), and a code transformer (CT) to enable flexible, accurate, and fast design space exploration in High-Level Synthesis (HLS). It achieves up to 400× speedup over meta-heuristic methods and HLS tools, reduces DSP usage by 2.54× and latency by up to 6×, while perfectly meeting user-specified DSP constraints and outperforming genetic algorithm and simulated annealing by 12.7% and 12.9% in LUT reduction.
Despite the great success of High-Level Synthesis (HLS) tools, we observe several unresolved challenges: 1) the high-level abstraction of programming styles in HLS sometimes conceals optimization opportunities; 2) existing HLS tools do not provide flexible trade-off (Pareto) solutions among different objectives and constraints; 3) the actual quality of the resulting RTL designs is hard to predict. To address these challenges, we propose an end-to-end framework, namelyIronMan. The primary goal is to enable a flexible and automated design space exploration (DSE), to provide either optimal solutions under user-specified constraints, or various trade-offs among different objectives (such as different types of resources, area, and latency). Such DSE either requires tedious manual efforts or is not achievable to attain these goals through existing HLS tools. There are three components in IronMan: 1) GPP, a highly accurate graph-neural-network-based performance and resource predictor; 2) RLMD, a reinforcement-learning-based multi-objective DSE engine that explores the optimal resource allocation strategy, to provide Pareto solutions between different objectives; 3) CT, a code transformer to assist RLMD and GPP, which extracts the data flow graph from original HLS C/C++ and automatically generates synthesizable code with HLS directives. The experimental results show that: 1) GPP achieves high prediction accuracy, reducing prediction errors of HLS tools by 10.9x in resource utilization and 5.7x in timing; 2) RLMD obtains optimal or Pareto solutions that outperform the genetic algorithm and simulated annealing by 12.7% and 12.9%, respectively; 3) IronMan is able to find optimized solutions perfectly matching various DSP constraints, with 2.54x fewer DSPs and up to 6x shorter latency than those of HLS tools while being up to 400x faster than the heuristic algorithms and HLS tools.
Motivation & Objective
- To address the limitations of current HLS tools in exploring flexible trade-offs among multiple objectives (e.g., area, latency, resource types) under user-specified constraints.
- To overcome the poor prediction accuracy of existing models for irregular data paths and complex loop structures in HLS designs.
- To enable automated, high-accuracy, and fast design space exploration (DSE) that supports both constrained optimization and Pareto front discovery.
- To reduce reliance on time-consuming HLS synthesis and implementation cycles by replacing them with fast, graph-based prediction and learning-driven exploration.
- To provide a scalable, end-to-end solution that integrates code transformation, performance prediction, and RL-based optimization in a unified framework.
Proposed method
- A code transformer (CT) parses C/C++ HLS code and extracts data flow graphs (DFGs), enabling structured representation of control and data dependencies for downstream processing.
- A graph neural network (GNN)-based performance predictor (GPP) predicts resource usage and timing directly from raw DFGs, achieving high accuracy without requiring full HLS synthesis.
- A reinforcement learning (RL) agent (RLMD) performs DSE by learning optimal directive assignments (e.g., unroll, pipeline) to nodes in the DFG, guided by rewards based on multi-objective optimization.
- The RL agent balances exploration and exploitation, learning from interactions with GPP and user-specified constraints to discover Pareto-optimal solutions.
- The framework is trained end-to-end: CT generates DFGs, GPP provides fast feedback, and RLMD iteratively improves directive strategies to meet objectives.
- Fine-tuning of the RL agent allows users to trade-off solution quality and inference time, with adjustable episode counts for customization.
Experimental results
Research questions
- RQ1Can a GNN-based predictor achieve high-accuracy performance prediction for HLS designs without requiring full synthesis or implementation?
- RQ2Can a reinforcement learning agent effectively explore complex, multi-dimensional design spaces in HLS to find Pareto-optimal solutions across area, latency, and resource types?
- RQ3Can the integration of a code transformer, GNN predictor, and RL engine enable faster and more accurate DSE than traditional meta-heuristic or commercial HLS tools?
- RQ4To what extent can the framework meet user-specified constraints (e.g., DSP limits) while minimizing resource usage and latency?
- RQ5How does the framework scale across diverse, real-world HLS benchmarks with irregular data paths and complex loop structures?
Key findings
- GPP reduces prediction errors by 10.9× in resource usage and 5.7× in timing compared to existing HLS tools, achieving high accuracy directly from raw DFGs in under a second.
- RLMD outperforms genetic algorithm and simulated annealing by 12.7% and 12.9% in LUT reduction, respectively, when optimizing for the same DSP constraints.
- IronMan successfully meets user-specified DSP constraints in 97.5% of 40 real-case benchmark cases, improving to 100% with fine-tuning, while reducing DSP usage by 2.54× compared to Vivado HLS.
- IronMan achieves up to 6× shorter latency than Vivado HLS, which suffers from increased latency due to partial unrolling under DSP constraints.
- The framework is up to 400× faster than meta-heuristic techniques and HLS tools, with inference times in seconds, enabling rapid exploration of large design spaces.
- With fine-tuning, IronMan achieves an additional 8.9% reduction in LUT usage, resulting in 7.7% and 5.9% lower LUT utilization than GA and SA, respectively.
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.