HLSClaw:通过基于技能的智能体控制将氛围编码引入高层次综合
HLSClaw: Bringing Vibe Coding to High-Level Synthesis through Skill-Based Agentic Harness
AI总结:
本文针对LLM氛围编码在HLS领域效果差的问题,提出首个基于技能的HLS专用智能体控制工具HLSClaw,在真实基准测试中其延迟加速效果显著优于现有基线与商业编码智能体。
摘要:
大语言模型(LLM)智能体正快速将软件开发推向意图驱动的氛围编码(vibe coding)模式,然而其在高层次综合(HLS)领域的有效性会急剧下降——HLS中的代码优化必须同时考虑设计结构、指令搜索以及下游硬件约束。现有HLS优化方法,包括基于启发式的方法和近期的LLM辅助流水线,通常在固定抽象层级或弱耦合阶段运行,限制了其利用源代码重构与指令搜索结果之间强交互的能力。本文的核心洞见是,可将HLS优化从固定的硬连线转换流水线重新定义为基于技能的智能体控制问题:配备模块化可执行优化技能与反馈驱动编排器的LLM智能体,可自主探索源代码重构与指令搜索的耦合空间。基于此,本文设计了首个面向HLS的基于技能的智能体控制工具HLSClaw,用于实现整体HLS优化。在真实HLS基准测试中,HLSClaw实现了39.12倍的几何平均延迟加速,较编译器基线ScaleHLS提升1.98倍,分别优于商业编码智能体Claude Code和Codex 1.86倍和1.70倍,同时保持了较强的时序鲁棒性。
英文摘要:
LLM agents are rapidly shifting software development toward intent-driven \emph{vibe coding}, yet their effectiveness drops sharply in high-level synthesis (HLS), where code optimization must jointly consider design structure, directive search, and downstream hardware constraints. Existing HLS optimization approaches, including both heuristic-based methods and recent LLM-assisted pipelines, typically operate at fixed abstraction levels or in weakly coupled stages, limiting their ability to leverage the strong interplay between source code restructuring and directive search outcomes. Our key insight is that HLS optimization can be reframed from a fixed, hardwired transformation pipeline into a skill-based agentic control problem: an LLM agent equipped with modular, executable optimization skills and a feedback-driven orchestrator can autonomously navigate the coupled space of code restructuring and directive search. This motivates the design of HLSClaw, the first HLS-specific, skill-based agentic harness for holistic HLS optimization. On real-world HLS benchmarks, HLSClaw achieves a 39.12x geometric-mean latency speedup, outperforming the compiler baseline ScaleHLS by 1.98x, and surpassing the commercial coding agents Claude Code and Codex by 1.86x and 1.70x, respectively, while maintaining strong timing robustness.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。