betaFeedback

WorksComputer Science

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

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∧\wedgeSynth 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.

Paper details

vlnc:W_fp3x6dn4
Version
v2 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
arXiv nonexclusive license
Usage

views · 14

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…