arXiv:2606.30949cs.AIcs.AR2026-06被引 1

用自进化智能体自动把软件转成可综合的硬件代码,效率更高。

AgRefactor: Self-Evolving Agentic Workflow for HLS Compatibility and Performance

论文配图:AgRefactor: Self-Evolving Agentic Workflow for HLS Compatibility and Performance
图 1 · 摘自论文原文
  • 多智能体协作+自进化记忆,持续积累改写经验
  • 9个真实场景基准上超越现有工具,最长代码超10倍
  • 适合芯片设计自动化、AI加速器开发人员使用

高层次综合(HLS)为从概念到硅片提供了快速路径,但将现实软件转换为可综合的HLS代码仍面临语言限制和软硬件编程范式差异的挑战。现有自动化与基于大模型的重构方法灵活性不足,难以扩展且计算成本高。我们提出AgRefactor,一种基于大模型的多智能体重构工作流,能将软件转化为HLS兼容程序。其内置自进化记忆系统,在任务间累积并检索事实与策略知识,提升对未知程序的鲁棒性与效率。为降低开销并增强可扩展性,该系统融合自动化重构工具,使智能体在大模型驱动重写与高效工具变换之间取得平衡。在11个挑战性真实基准中,有9个比以往研究最复杂案例长5-10倍,AgRefactor表现优于或媲美当前最优自动化工具及同框架基线。进一步的智能体性能优化带来6.51倍几何平均速度提升,相较最优引理调优工具;在资源增加不足20%的前提下,较优化开源设计提速1.20倍。AgRefactor全程自动化,已开源。

原文摘要 · Abstract (English)

High-Level Synthesis (HLS) provides a fast path from concepts to silicon, but converting real-world software into synthesizable HLS code remains challenging due to restrictive language support and the gap between software and hardware programming practices. Existing automated and LLM-based refactoring approaches partially address this problem, yet they often lack flexibility, struggle to scale, and incur high computational costs. We introduce AgRefactor, an LLM-based multi-agent workflow for refactoring software into HLS-compatible programs. AgRefactor incorporates a self-evolving memory system that accumulates and retrieves factual and strategic knowledge across tasks, improving robustness and efficiency on unseen programs. To reduce cost and enhance scalability, it integrates automated refactoring tools, enabling agents to balance LLM-driven rewrites with efficient tool-based transformations. On 9 out of 11 challenging real-world benchmarks, which are 5-10x longer than the most complex cases studied in prior work, AgRefactor outperforms or matches the state-of-the-art automated refactoring tool and a strong LLM-based baseline built on the same framework backbone. Further agentic performance optimization yields a 6.51x geometric mean speedup over the SoTA pragma tuning tool and a 1.20x speedup over optimized open-source designs with less than 20% extra resources. AgRefactor is fully-automated and open-sourced.

HLS智能体代码重构自动化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。