High-level synthesis (HLS) is an automated design process that transforms high-level code into hardware designs, enabling the rapid development of hardware accelerators. HLS relies on pragmas, which are directives inserted into the source code to guide the synthesis process, and pragmas have various settings and values that significantly impact the resulting hardware design. State-of-the-art ML-based HLS methods, such as HARP, first train a deep learning model, typically based on graph neural networks (GNNs) applied to graph-based representations of the source code and pragmas. They then perform design space exploration (DSE) to explore the pragma design space, rank candidate designs using the model, and return the top designs. However, traditional DSE methods face challenges due to the highly nonlinear relationship between pragma settings and performance metrics, along with complex interactions between pragmas that affect performance in non-obvious ways.
To address these challenges, we propose compareXplore, a novel approach that learns to compare hardware designs for effective HLS optimization. CompareXplore introduces a hybrid loss function that combines pairwise preference learning with pointwise performance prediction, enabling the model to capture both relative preferences and absolute performance. Moreover, we introduce a novel node difference attention module that focuses on the most informative differences between designs, enabling the model to identify critical pragmas impacting performance. CompareXplore adopts a two-stage DSE, where a pointwise prediction model is used for the initial design pruning, followed by a pairwise comparison stage for precise performance verification. In extensive experiments, compareXplore achieves significant improvements in ranking metrics and generates high-quality HLS results for the selected designs, outperforming the existing SOTA method.
A Graph Deep Learning Framework for High-Level Synthesis Design Space Exploration
University of California Los Angeles(加利福尼亚大学洛杉矶分校);Università della Svizzera italiana(瑞士意大利语区大学);Hardvard University(哈佛大学);Politecnico di Milano(米兰理工大学)
OptiML: An End-to-End Framework for Program Synthesis and CUDA Kernel Optimization
Iowa State University, Ames, Iowa, USA(爱荷华州立大学);Cisco AI Research, San Jose, California, USA(思科人工智能研究);University of Southern California, Los Angeles, California, USA(南加州大学)
DAPO: Design Structure-Aware Pass Ordering in High-Level Synthesis with Graph Contrastive and Reinforcement Learning
The Hong Kong University of Science and Technology(香港科学与技术大学);Indian Institute of Technology (Palakkad)(印度理工学院(帕拉卡德));Indian Institute of Technology (Goa)(印度理工学院(果阿));The Hong Kong University of Science and Technology (Guangzhou)(香港科学与技术大学(广州))