[Paper Review] Agent Factories for High Level Synthesis: How Far Can General-Purpose Coding Agents Go in Hardware Optimization?
The paper presents a two-stage agent factory workflow that uses multiple general-purpose coding agents to optimize FPGA-style high-level synthesis designs, showing substantial gains with increased agent count, and insights into cross-function optimization beyond sub-kernel pruning.
We present an empirical study of how far general-purpose coding agents -- without hardware-specific training -- can optimize hardware designs from high-level algorithmic specifications. We introduce an agent factory, a two-stage pipeline that constructs and coordinates multiple autonomous optimization agents. In Stage~1, the pipeline decomposes a design into sub-kernels, independently optimizes each using pragma and code-level transformations, and formulates an Integer Linear Program (ILP) to assemble globally promising configurations under an area constraint. In Stage~2, it launches $N$ expert agents over the top ILP solutions, each exploring cross-function optimizations such as pragma recombination, loop fusion, and memory restructuring that are not captured by sub-kernel decomposition. We evaluate the approach on 12 kernels from HLS-Eval and Rodinia-HLS using Claude Code (Opus~4.5/4.6) with AMD Vitis HLS. Scaling from 1 to 10 agents yields a mean $8.27 imes$ speedup over baseline, with larger gains on harder benchmarks: streamcluster exceeds $20 imes$ and kmeans reaches approximately $10 imes$. Across benchmarks, agents consistently rediscover known hardware optimization patterns without domain-specific training, and the best designs often do not originate from top-ranked ILP candidates, indicating that global optimization exposes improvements missed by sub-kernel search. These results establish agent scaling as a practical and effective axis for HLS optimization.
Motivation & Objective
- Motivate whether general-purpose coding agents can improve hardware optimization without hardware-specific training.
- Propose a two-stage agent factory to explore HLS design space via sub-kernel optimization and global refinement.
- Quantify how agent scaling affects latency/area trade-offs across diverse kernels.
- Identify patterns agents discover and limitations to guide future research in AI-assisted HLS.
Proposed method
- Stage 1: decompose design into sub-kernels, generate 7 variants per sub-function, evaluate correctness and synthesize latency/area, then solve an ILP to pick top-N global configurations under an area budget.
- Stage 2: spawn N expert agents over the top ILP solutions to perform cross-function transformations such as pragma recombination, loop fusion, and memory restructuring, iterating with synthesis and correctness checks.
- Use a two-stage pipeline to capture both sub-kernel optimization and global design-wide refinements.
- Evaluate across 12 kernels from HLS-Eval and Rodinia-HLS using Claude Code (Opus 4.5/4.6) with AMD Vitis HLS, measuring latency and area.

Experimental results
Research questions
- RQ1Can general-purpose coding agents optimize hardware designs from high-level specifications without hardware-specific training?
- RQ2Does increasing the number of agents (agent scaling) improve HLS design exploration and latency under a fixed area budget?
- RQ3Do cross-function optimizations discovered by Stage 2 yield improvements beyond sub-kernel pruning alone?
- RQ4What hardware optimization patterns do agents discover, and are results consistent with domain knowledge across kernels?
- RQ5What are the limitations and contexts where agent-based HLS optimization may struggle?
Key findings
- Agent scaling yields substantial latency reductions, with mean speedups of 8.27× when increasing from 1 to 10 agents, and up to >20× on harder workloads like streamcluster.
- Global optimization (Stage 2) often finds improvements not derived from the top ILP variant, indicating cross-function interactions matter beyond per-sub-kernel optimization.
- Agents repeatedly recover known HLS optimization patterns, such as using ARRAY_PARTITION and avoiding PIPELINE unless memory and dependencies are addressed first.
- Improvements are dataset- and tool-dependent; results shown are with Claude Code (Opus 4.5/4.6) and Vitis HLS on FPGA, with limitations in benchmark scope and generalization to ASICs acknowledged.
- Latency improvements peak for many kernels at moderate agent counts, with diminishing gains or saturation under tight area budgets for simpler kernels.

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.