REVIEW 4 major objections 6 minor 16 references
ForgeHLS: A Large-Scale, Open-Source Dataset for High-Level Synthesis
T0 review · 4 major / 6 minor · reviewed 2026-08-06 · deepseek-v4-flash
Pith's one-line read ForgeHLS contributes 459,850 high-level synthesis designs from 846 kernels, and models trained on it generalize better to unseen kernels than models trained on prior HLS datasets.
desk verdict A genuinely large, public HLS dataset that deserves peer review, but the synthetic half's validation is thinner than the headline number implies. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The carrier of the argument is the dataset itself, produced by an automated pragma-insertion workflow. A static analysis pass extracts loop trip counts, array sizes, and the top function from each kernel; a tree-based explorer enumerates pragma combinations under HLS validity rules (e.g., no inner unroll inside a pipelined outer loop, factors restricted to powers of two), and a Bayesian optimizer guides exploration for kernels whose design space is too large to enumerate. Each retained design bundles the original code, the inserted pragmas, the post-synthesis resource and latency report, and a control-dataflow graph, which is what makes the dataset usable for both GNN- and LLM-based learning.
What would settle it
Take a random sample of about 200 synthetic kernels from S-ForgeHLS, run their C code with concrete inputs alongside an RTL-level co-simulation of the same kernels, and compare outputs. If a non-negligible fraction (say, above 5%) diverge, or if removing the divergent kernels materially changes the QoR-prediction generalization results reported in the paper, the central claim that the dataset's synthetic portion is reliable would be weakened.
Extended reading notes
Core claim
ForgeHLS is the claim that a sufficiently large and diverse set of synthesized HLS designs can lift machine-learning-based HLS optimization from overfitting to generalization. The paper reports that GNNs and fine-tuned LLMs trained on ForgeHLS achieve substantially lower prediction error on a held-out set of unseen kernels than models trained on previous datasets, and that fine-tuned LLMs raise the fraction of valid pragma insertions (synthesis pass rate) and reduce the average distance to the Pareto-optimal latency-resource frontier. The paper presents ForgeHLS as a resource that allows the community to train models for two standard downstream tasks: QoR prediction and automated pragma exploration.
Load-bearing premise
The load-bearing premise is that the roughly 360,000 synthetic designs in S-ForgeHLS are functionally correct and representative, since they are validated by an LLM-generated Python reference implementation and a single HLS syntax pass rather than full RTL-level functional equivalence checks.
Editorial extensions
If this is right
- If the claim holds, ML-based QoR prediction can be trained on an order-of-magnitude larger and more diverse design space, moving from kernel-specific fitting to cross-kernel generalization.
- Fine-tuned LLMs become a viable route for automated pragma insertion, raising the HLS synthesis pass rate for generated designs.
- The dataset provides a common benchmark with kernel-level splits, enabling fair comparison of future QoR and design-space-exploration methods.
- The inclusion of post-HLS artifacts such as control-dataflow graphs, reports, and Verilog allows GNN-based and text-based models to be compared on identical design points.
Reading between the lines
- The one-step pragma-exploration protocol in the paper likely underestimates what LLMs could achieve in multi-step, iterative design-space exploration; the dataset's size and structure make such protocols directly testable.
- Because the synthetic kernels are generated from a curated algorithm list, the dataset's diversity is bounded by that list; expanding the list through further generation is a testable way to extend coverage.
- The functional validation of synthetic designs depends on the LLM-as-oracle; as LLM code generation improves, a similar pipeline could produce larger verified subsets, but the paper's current numbers should be re-checked as the oracle changes.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper introduces ForgeHLS, a large-scale HLS dataset containing 459,850 designs derived from 846 C++ kernels. The dataset is split into R-ForgeHLS (99,601 designs from established benchmarks such as CHStone, MachSuite, PolyBench, Rosetta, and Vitis collections) and S-ForgeHLS (360,249 designs from GPT-4o-generated synthetic kernels). The authors describe a Clang-based automated pragma insertion workflow with two exploration strategies, a 'full DSE' tree-based explorer and a Bayesian DSE, and release post-HLS artifacts including reports, CDFGs, and Verilog. They evaluate the dataset on two downstream tasks: GNN/LLM-based QoR prediction on standard and kernel-unseen splits, and LLM-based automatic pragma insertion measured by HLS pass rate and ADRS relative to dataset-defined Pareto fronts. The central claim is that ForgeHLS improves scale, diversity, and design coverage over prior HLS datasets, and that models trained on it generalize better to unseen kernels.
Significance. If the dataset is as valid and diverse as claimed, it would be a substantial community resource: it is roughly an order of magnitude larger than existing HLS datasets in design count, it ships open-source code and public data, it includes graph-level and report-level artifacts useful for GNN and LLM research, and it documents over 200k CPU hours of construction effort. The paper honestly reports some limitations, notably Appendix G's admission that the 'full DSE' is not exhaustive, and the evaluation code is reproducible in principle. The main scientific value is the resource itself; the utility demonstrations are useful but currently more suggestive than conclusive because of validation and statistical issues described below.
major comments (4)
- [§3.3 vs Appendix G] Section 3.3 states that the automated workflow explores 'the full design space by generating all possible combinations of pragma types and factors,' yet Appendix G explicitly states that 'the full DSE does not exhaustively enumerate all pragma permutations' because it restricts factors to powers of two, disallows inner-loop unrolling under an outer pipeline, and prunes configurations with equivalent factors. These statements describe different design spaces. Please reconcile the terminology, define the actual enumerated design space precisely, and quantify how much of the unrestricted space is covered after pruning. Without this, the 'full DSE' and coverage claims in the abstract and Section 3.1 are ambiguous and potentially overstated.
- [Appendix F / Table 2] The functional validation of S-ForgeHLS (360,249 designs, 78% of the dataset) compares the GPT-4o-generated C++ against a Python implementation also produced by GPT-4o from the same algorithm description. Since both artifacts derive from the same prompt and the same model, agreement does not establish that the C++ matches the intended algorithm; the 'oracle' is not independent. In addition, the single-pass Vitis HLS run checks syntactic/synthesis acceptability, not RTL-level semantic equivalence. Please provide either (a) an independent functional check on a statistically meaningful sample of synthetic kernels—for example, cross-compiling the C++ with a non-LLM reference implementation or golden test vectors—and report the error rate with confidence intervals, or (b) a clear statement that S-ForgeHLS is only syntax-validated and adjust the 'valid HLS designs' claim accordingly. The current evidence is too weak to support the headline count of 459,850 functionally valid designs.
- [§4.1, Unseen Test] The 'Unseen Test Set' is constructed by holding out 10% of ForgeHLS kernels, so the claimed generalization to 'unseen kernels' is in-distribution with respect to the ForgeHLS generation pipeline; it does not demonstrate transfer to kernels outside that distribution. The comparison in Tables 3 and 4 is therefore not a test of generalization to genuinely external kernels. Please add an external held-out evaluation (e.g., a benchmark suite not used in training or a random set of independently written HLS kernels), or soften the generalization claims in the abstract and Section 4.1 accordingly.
- [§4.2, ADRS and Tables 3–5] The utility demonstrations currently lack error bars: Tables 3–5 report single-split results with no repeated seeds, no confidence intervals, and no significance tests, although differences between configurations are often small (e.g., MAPE values around 0.04–0.05 in the unseen columns of Table 4). Additionally, the ADRS metric in Section 4.2 measures distance to the 'exact Pareto-optimal set of kernel k in ForgeHLS,' but Appendix G establishes that the explored design space is not exhaustive for large kernels, so the reference Pareto set is only the Pareto front of the sampled designs, not the true design space. Please report variability across runs and clarify that ADRS is relative to the dataset-defined Pareto front.
minor comments (6)
- [Appendix A / Eq. (4)] ARU is defined twice, once in Eq. (3) in Section 4.2 and again in Eq. (4) in Appendix A; please unify the definitions to avoid confusion.
- [Appendix D, Listing 1] The JSON example contains typos: 'Avialable_BRAM_18K' should be 'Available_BRAM_18K', and there is a missing comma after the 'latency-resource-strategy' value before the 'source_code' key.
- [Table 4] The Mistral-7B-v0.2 rows for HLSyn and HLSDataset on the Standard Test are numerically identical; please check whether this is a copy/paste error.
- [§4.2] The 'high/medium/low resource usage' classification is described as the top/middle/bottom third by ARU, but the exact cutoff points are not given; please provide the thresholds or the code used to compute them.
- [Appendix H] The CLI example uses a flag '--bayesian_opt_number 25' while Algorithm 2 describes Nopt and Ncalls; please align the naming between the pseudocode and the released tool.
- [Table 2 caption] The caption says 'Avg. #P' is the average number of pragmas per kernel, but for R-ForgeHLS this value is 192.4 while 'Avg. #T' is 1298.2; please clarify the units in the caption so readers do not mistake per-kernel counts for per-design counts.
Circularity Check
Minor self-referential validation in the synthetic-data path (GPT-4o acts as both code generator and functional oracle), but the dataset construction and downstream benchmarks are externally grounded in Vitis HLS and independent baselines.
-
other
[Section 3.2 and Appendix F (Validate Synthetic Data)]
"We prompt GPT-4o with the algorithm specifications and HLS design rules, which generates the corresponding kernel code in C, devoid of pragmas. ... To validate the functional accuracy, we employ a cross-verification approach leveraging GPT-4o as an assistant. Specifically, we provided GPT-4o with an algorithm description and the corresponding implementation, requesting it to generate a Python version of the same algorithm. This Python implementation served as a reference model for validation."
The functional-correctness gate for S-ForgeHLS (360,249 of the 459,850 designs per Table 2) compares GPT-4o-generated C++ kernels against a Python reference that is also generated by GPT-4o from the same algorithm description. The reference is therefore not independent: any systematic misunderstanding of the description by GPT-4o is shared by both implementations, so passing the check establishes self-consistency rather than conformance to the intended algorithm. This is a validation circularity, not a derivational one, but it directly undergirds the headline 'valid HLS designs' count for 78% of the dataset.
full rationale
The central dataset is not derived from the downstream experiments: ForgeHLS is built by inserting pragmas into kernels and running Vitis HLS, an external synthesis tool, to obtain post-HLS reports, graphs, and validity. The QoR evaluation compares models trained on ForgeHLS with models trained on external datasets (DB4HLS, HLSyn, HLSDataset, HLSFactory) and with a prior GNN baseline, providing independent benchmark support. No fitted parameter is renamed as a prediction, and the self-citations (Gao et al. 2024; Li et al. 2025) supply methodology or a kernel-specification list rather than a load-bearing uniqueness theorem. The only notable self-referentiality is in the synthetic-data validation: GPT-4o generates both the C++ kernel and the Python oracle used to check it, so systematic model errors are invisible to the check. In addition, the Task 2 Pareto 'ground truth' is defined as the Pareto front within ForgeHLS's own generated designs, and the 'Unseen Test' is an internal kernel-level split of ForgeHLS, so those evaluations measure in-distribution consistency of the dataset rather than externally certified optimality. These are genuine limitations of external validity but they do not reduce the paper's derivation to its own inputs; the score is therefore low.
Assumptions & free parameters
free parameters (2)
- Bayesian DSE search budget =
20 random starts + 40 iterations (also referenced as --bayesian_opt_number 25)
- ARU resource weights =
equal weights over BRAM, FF, LUT, DSP
assumptions (4)
- domain assumption Vitis HLS reports (worst/best latency, BRAM, DSP, FF, LUT) are accurate and deterministic labels for each design.
- domain assumption Automated pragma insertion rules preserve valid designs and do not exclude important configurations.
- ad hoc to paper GPT-4o can serve as a functional correctness oracle for synthetic kernels.
- domain assumption A kernel-level 10% split is a fair measure of generalization to unseen kernels.
Cite this review
Pith. "Pith review of ForgeHLS: A Large-Scale, Open-Source Dataset for High-Level Synthesis." pith.science (2026). https://pith.science/paper/CDP7BVIV
@misc{pith2026250703255,
author = {Pith},
title = {Pith review of: ForgeHLS: A Large-Scale, Open-Source Dataset for High-Level Synthesis},
year = {2026},
howpublished = {\url{https://pith.science/paper/CDP7BVIV}},
note = {Machine review of arXiv:2507.03255}
}
read the original abstract
High-Level Synthesis (HLS) plays a crucial role in modern hardware design by transforming high-level code into optimized hardware implementations. However, progress in applying machine learning (ML) to HLS optimization has been hindered by a shortage of sufficiently large and diverse datasets. To bridge this gap, we introduce ForgeHLS, a large-scale, open-source dataset explicitly designed for ML-driven HLS research. ForgeHLS comprises over 400k diverse designs generated from 846 kernels covering a broad range of application domains, consuming over 200k CPU hours during dataset construction. Each kernel includes systematically automated pragma insertions (loop unrolling, pipelining, array partitioning), combined with extensive design space exploration using Bayesian optimization. Compared to existing datasets, ForgeHLS significantly enhances scale, diversity, and design coverage. We further define and evaluate representative downstream tasks in Quality of Result (QoR) prediction and automated pragma exploration, clearly demonstrating ForgeHLS utility for developing and improving ML-based HLS optimization methodologies. The dataset and code are public at https://github.com/zedong-peng/ForgeHLS.
Figures
Figures from the paper (5 more)
Reference graph
Works this paper leans on
-
[8]
Automatic Hardware Pragma Insertion in High-Level Synthesis: A Non-Linear Programming Approach
Auto- matic Hardware Pragma Insertion in High-Level Synthe- sis: A Non-Linear Programming Approach. arXiv preprint arXiv:2405.12304. First article. Pouget, S.; Pouchet, L.-N.; and J.Cong
-
[9]
A Unified Framework for Automated Code Transformation and Pragma Insertion
Enhanc- ing High-Level Synthesis with Automated Pragma Inser- tion and Code Transformation Framework. arXiv preprint arXiv:2405.03058. Second article. Reagen, B.; Adolf, R.; Shao, Y . S.; Wei, G.-Y .; and Brooks, D
-
[12]
AutoDSE: Enabling Software Programmers to Design Efficient FPGA Accelerators
AutoDSE: Enabling Software Programmers to Design Effi- cient FPGA Accelerators. arXiv:2009.14381. Sohrabizadeh, A.; et al
work page Pith review arXiv 2009
-
[13]
In 2023 IEEE 34th International Con- ference on ASAP, 197–204
HLSDataset: Open-source dataset for ML-assisted FPGA design using high level synthesis. In 2023 IEEE 34th International Con- ference on ASAP, 197–204. IEEE. Wu, N.; Xie, Y .; and Hao, C
work page 2023
-
[14]
In Proceedings of the 2021 on Great Lakes Symposium on VLSI, 39–44
Ironman: GNN-assisted Design Space Exploration in High-Level Synthesis via Re- inforcement Learning. In Proceedings of the 2021 on Great Lakes Symposium on VLSI, 39–44. IEEE. Wu, N.; et al
work page 2021
-
[16]
The process begins with Clang, which performs a syntactic analysis of the C++ source code to extract essential information needed for DSE. This includes loop trip counts, loop locations, array sizes and dimensions, array definition locations, and the identification and location of the top function. Such analysis ensures that the appropriate pragmas can be...
work page 2023
-
[2008]
In 2008 IEEE International Symposium on Circuits and Systems (ISCAS) , 1192–1195
Chstone: A benchmark program suite for practical c-based high-level synthesis. In 2008 IEEE International Symposium on Circuits and Systems (ISCAS) , 1192–1195. IEEE. Hu, E. J.; Shen, Y .; Wallis, P.; Allen-Zhu, Z.; Li, Y .; Wang, S.; Wang, L.; and Chen, W
work page 2008
-
[2009]
In 2009 International Symposium on VLSI Design, Automation and Test, 106–109
Adaptive simulated annealer for high level synthesis design space exploration. In 2009 International Symposium on VLSI Design, Automation and Test, 106–109. IEEE. Sohrabizadeh, A.; Yu, C. H.; Gao, M.; and Cong, J
work page 2009
Show all 16 references
-
[2014]
In 2014 IEEE IISWC , 110–119
MachSuite: Benchmarks for accelerator design and customized architectures. In 2014 IEEE IISWC , 110–119. IEEE. Schafer, B. C.; Takenaka, T.; and Wakabayashi, K
2014
-
[2016]
https://sourceforge.net/projects/polybench/files/polybench- c-4.2/
PolyBench/C 4.2. https://sourceforge.net/projects/polybench/files/polybench- c-4.2/. Accessed: 2025-07-29. Pouget, S.; Pouchet, L.-N.; and Cong, J
2025
-
[2018]
In Proceed- ings of the 2018 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays, 269–278
Rosetta: A realistic high-level synthesis bench- mark suite for software programmable FPGAs. In Proceed- ings of the 2018 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays, 269–278. A Design Space Coverage across Datasets. . As shown in Fig. 4, our dataset de...
2018
-
[2020]
In 2020 25th Asia and South Pacific Design Automation Conference (ASP-DAC), 574–580
HL-Pow: A Learning-Based Power Modeling Framework for High- Level Synthesis. In 2020 25th Asia and South Pacific Design Automation Conference (ASP-DAC), 574–580. Pouchet, L.-N.; and Yuki, T
2020
-
[2021]
arXiv:2106.09685
LoRA: Low-Rank Adap- tation of Large Language Models. arXiv:2106.09685. Kuang, H.; Cao, X.; Li, J.; and Wang, L
-
[2023]
In 2023 ICFPT, 106–114
HGBO- DSE: Hierarchical GNN and Bayesian Optimization based HLS Design Space Exploration. In 2023 ICFPT, 106–114. Kwon, W.; Li, Z.; Zhuang, S.; Sheng, Y .; Zheng, L.; Yu, C. H.; Gonzalez, J. E.; Zhang, H.; and Stoica, I
2023
-
[2024]
In Pro- ceedings of the 2024 ACM/IEEE International Symposium on Machine Learning for CAD, 1–9
HLSFactory: A Framework Empowering High-Level Syn- thesis Datasets for Machine Learning and Beyond. In Pro- ceedings of the 2024 ACM/IEEE International Symposium on Machine Learning for CAD, 1–9. Bai, Y .; Sohrabizadeh, A.; Qin, Z.; Hu, Z.; Sun, Y .; and Cong, J
2024
-
[2025]
arXiv:2502.18297
DeepCircuitX: A Comprehensive Repository- Level Dataset for RTL Code Understanding, Generation, and PPA Analysis. arXiv:2502.18297. Lin, Z.; Yuan, Z.; Zhao, J.; Zhang, W.; Wang, H.; and Tian, Y
Reviewed August 6, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.