Back to search

Hong Kong University of Science and Technology

AI-Driven Middle-End Optimization in High-Level Synthesis for FPGAs

Abstract

dc:description

<p>High-Level Synthesis (HLS) tools have become increasingly popular for facilitating the design of domain-specific accelerators (DSAs). The quality of the final design produced by HLS tools highly depends on the optimization strategy employed during compilation. Specifically, two complementary factors play a decisive role: user-assigned pragmas, which provide explicit guidance for synthesis, and the compiler’s intrinsic optimization passes, which are far more numerous and applied before and after pragma interpretation. These general passes assist the pragma optimization and fundamentally shape the resulting performance and resource utilization of HLS designs, exerting a significant influence. Finding an optimally tailored pass sequence for each design, however, is NP-hard. Traditional heuristic approaches, such as Simulated Annealing and Greedy Search, require substantial computational time and effort to yield satisfactory solutions for individual designs. Machine learning methods that employ reinforcement learning (RL) or graph neural networks (GNNs) often struggle with poor generalization due to inefficient and implicit representations of program features.</p> <p>We present DAPO, a framework that integrates graph contrastive learning with reinforcement learning to address the aforementioned limitations. DAPO derives structure-aware representations from program control and data flow graphs, capturing intrinsic program characteristics often missed by manual feature engineering. Through contrastive learning, DAPO learns to distinguish between programs with similar structures but different optimization requirements, yielding transferable embeddings across diverse HLS designs. Built on these representations, a reinforcement learning agent formulates pass ordering as a Markov Decision Process, where each action applies a compiler pass. Unlike previous approaches that rely on design-specific heuristics or struggle with inefficient representation learning, DAPO’s combination of contrastive pre-training and RL fine-tuning enables it to generalize effectively across different program structures and optimization objectives. Our approach enables generalizable optimization across diverse FPGA HLS domains, surpassing Vitis-HLS by 1.67x on designs without pragmas and 2.36x on designs with pragmas.</p>

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Ge, Jinming
Contributors dc:contributor
  • Zhang, Wei

Rights

Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Hong Kong University of Science and Technology
Base URL
repository.ust.hk/ir/OAI/Server
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
related terms
citation

Ge, Jinming. AI-Driven Middle-End Optimization in High-Level Synthesis for FPGAs. 2025. http://repository.hkust.edu.hk/ir/Record/1783.1-152526