# DiffHLS: Differential Learning for High-Level Synthesis QoR Prediction with GNNs and LLM Code Embeddings

Source: [DiffHLS: Differential Learning for High-Level Synthesis QoR Prediction with GNNs and LLM Code Embeddings](<https://www.sota2.com/research/paper/69dc78717d0172140ec789f7>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-04-14T05:00:04.234Z

Authors: Zedong Peng, Zeju Li, Qiang Xu, Jieru Zhao

Published: 2026-04-10T11:54:56.000Z

## Abstract

High-Level Synthesis (HLS) compiles C/C++ into RTL, but exploring pragma-driven optimization choices remains expensive because each design point requires time-consuming synthesis. We propose \\textbf{\\DiffHLS}, a differential learning framework for HLS Quality-of-Result (QoR) prediction that learns from kernel--design pairs: a kernel baseline and a pragma-inserted design variant. \\DiffHLS~encodes kernel and design intermediate-representation graphs with dedicated graph neural network (GNN) branches, and augments the delta pathway with code embeddings from a pretrained code large language model (LLM). Instead of regressing absolute targets directly, we jointly predict the kernel baseline and the design-induced delta, and compose them to obtain the design prediction. On PolyBench, \\DiffHLS~attains lower average MAPE than GNN baselines under four GNN backbones, and LLM code embeddings consistently improve over a GNN-only ablation. We further validate scalability on the ForgeHLS dataset.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [QoR Prediction (DSP) on PolyBench C (test)](<https://www.sota2.com/research/sota/qor-prediction-dsp-on-polybench-c-test.md>): QoR Prediction (DSP); PolyBench C (test); MAPE: 3.31.

- [QoR Prediction (FF) on PolyBench C (test)](<https://www.sota2.com/research/sota/qor-prediction-ff-on-polybench-c-test.md>): QoR Prediction (FF); PolyBench C (test); MAPE: 7.34.

- [QoR Prediction (LUT) on PolyBench C (test)](<https://www.sota2.com/research/sota/qor-prediction-lut-on-polybench-c-test.md>): QoR Prediction (LUT); PolyBench C (test); MAPE: 5.12.

- [QoR Prediction (CP) on PolyBench C (test)](<https://www.sota2.com/research/sota/qor-prediction-cp-on-polybench-c-test.md>): QoR Prediction (CP); PolyBench C (test); MAPE: 1.06.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2604.09240>)

[PDF](<https://arxiv.org/pdf/2604.09240.pdf>)
