跳到正文
arXiv (Robotics + Hardware + Signal)· Xianjing Zhu, Wenqi Lou, Yuanbo Wen, Teng Wang, Lei Gong, Qi Guo, Chao Wang, Xuehai Zhou·· 1 天前AI 评分22

MementoHLS:面向LLM的HLS生成,用规则引导与轨迹感知修复提升通过率

Rule-Guided and Trajectory-Aware Repair for LLM-Based HLS Generation

AI 导读

MementoHLS是一个agentic HLS生成框架,通过可执行修复契约库(ERCL)与Reviewer-Grounded Falsification Ledger(RFL)双记忆引导修复,抑制无效路径并保留已验证进展。

正文 · 原文

arXiv:2611.07324v2 Announce Type: replace Abstract: Large language models (LLMs) offer a promising path for directly generating functionally correct and synthesizable HLS-C from natural-language specifications. However, existing approaches often struggle to turn multi-round tool feedback and reusable HLS knowledge into effective revisions, limiting end-to-end generation success. We propose MementoHLS, an agentic HLS generation framework built around executable and falsifiable dual-memory-guided repair. MementoHLS combines an Executable Repair Contract Library (ERCL), which converts cross-task HLS knowledge into evidence-gated repair actions, with a Reviewer-Grounded Falsification Ledger (RFL), which converts task-local repair history into trajectory evidence to suppress ineffective routes and preserve validated progress. To ensure reliable outcome attribution, a Same-Candidate Reviewer binds Parse, Compile, Testbench (TB), and Synthesis (Synth) outcomes to the corresponding candidate, while a Single-Commit Arbiter commits at most one candidate per round. Across Llama-3-8B and Qwen2.5-Coder-7B/32B, MementoHLS improves same-candidate TB$\wedge$Synth pass@1/pass@5 over Zero-shot by an average of 16.1/12.1 percentage points on HLS-Eval (94 tasks) and 15.1/10.4 on Bench4HLS (170 tasks). The corresponding Bench4HLS gains average 11.0/8.5 percentage points across four strong proprietary LLMs.

来源:arXiv (Robotics + Hardware + Signal) · arxiv.org