Skip to main content
QUICK REVIEW

[论文解读] Agent Factories for High Level Synthesis: How Far Can General-Purpose Coding Agents Go in Hardware Optimization?

Abhishek Bhandwaldar, Mihir Choudhury|arXiv (Cornell University)|Mar 26, 2026
Parallel Computing and Optimization TechniquesComputer Science被引用 0
一句话总结

论文提出一个两阶段的代理工厂工作流,使用多种通用编码代理来优化 FPGA 风格的高级综合设计,在代理数量增加时显示出显著增益,并对跨功能优化(超越子内核裁剪)提供了洞见。

ABSTRACT

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.

研究动机与目标

  • 激发研究:通用型编码代理能否在无硬件特定训练的情况下改进硬件优化。
  • 提出一个两阶段的代理工厂,通过子内核优化和全局细化来探索 HLS 设计空间。
  • 量化代理规模对不同内核的延迟/面积权衡的影响。
  • 识别代理发现的模式及局限性,为未来 AI 辅助 HLS 的研究指明方向。

提出的方法

  • 阶段1:将设计拆解为子内核,为每个子函数生成7个变体,评估正确性并综合延迟/面积,然后求解 ILP 在面积预算下挑选前 N 个全局配置。
  • 阶段2:在前面的 ILP 解决方案之上生成 N 位专家代理,执行跨功能变换,如 pragma 重新组合、循环融合和内存重构,结合综合和正确性检查迭代。
  • 使用两阶段流水线,捕捉子内核优化和全局设计的 refinements。
  • 在 HLS-Eval 与 Rodinia-HLS 的 12 个内核上使用 Claude Code(Opus 4.5/4.6)和 AMD Vitis HLS 进行评估,测量延迟和面积。
Figure 1: Two-stage agent-based pipeline for HLS design space exploration. Given an input design $\mathcal{D}$ , a coordinator agent extracts the function call graph $G$ and spawns one optimizer agent per sub-function $f_{1},\dots,f_{K}$ . Variants are evaluated for correctness and synthesized to ob
Figure 1: Two-stage agent-based pipeline for HLS design space exploration. Given an input design $\mathcal{D}$ , a coordinator agent extracts the function call graph $G$ and spawns one optimizer agent per sub-function $f_{1},\dots,f_{K}$ . Variants are evaluated for correctness and synthesized to ob

实验结果

研究问题

  • RQ1通用型编码代理是否能够在没有硬件特定训练的情况下从高层规格中优化硬件设计?
  • RQ2在固定面积预算下,增加代理数量(代理规模)的是否能改善 HLS 设计探索和延迟?
  • RQ3阶段2 发现的跨功能优化是否能带来超越单纯子内核裁剪的改进?
  • RQ4代理发现的硬件优化模式是什么?不同内核间的结果是否与领域知识的一致?
  • RQ5代理为基础的 HLS 优化在哪些情境下可能存在局限性?

主要发现

  • 代理规模化带来显著的延迟降低,当从1个增加到10个代理时平均加速比为 8.27×,在如 streamcluster 等更困难的工作负载上甚至达到 >20×。
  • 全局优化(阶段2)常能发现并非来自顶层 ILP 变体的改进,表明跨功能交互在单纯的子内核优化之外也很重要。
  • 代理反复发现已知的 HLS 优化模式,如使用 ARRAY_PARTITION,除非先解决内存和依赖问题,否则避免 PIPELINE。
  • 改进受数据集和工具影响;结果是在 FPGA 上使用 Claude Code(Opus 4.5/4.6)和 Vitis HLS 的前提下给出,承认基准范围及对 ASIC 泛化的局限性。
  • 对许多内核而言,延迟改进在中等代理数量时达到峰值,在较紧的面积预算下对简单内核增益减弱或趋于饱和。
Figure 2: Pareto front results for all twelve benchmarks under agent scaling ( $N\in\{1,2,4,8,10\}$ ). Each subplot shows speedup over baseline (y-axis) versus area (x-axis). Increasing the number of agents extends the Pareto front toward lower latency and more favorable area–latency trade-offs acro
Figure 2: Pareto front results for all twelve benchmarks under agent scaling ( $N\in\{1,2,4,8,10\}$ ). Each subplot shows speedup over baseline (y-axis) versus area (x-axis). Increasing the number of agents extends the Pareto front toward lower latency and more favorable area–latency trade-offs acro

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。