Skip to content
Preprint

HLSmith: An Expert-Guided Agentic Framework for C/C++-to-HLS Translation

Aug 2026 · 0 citations · 29 references
Computer Science

TL;DR

HLSmith, an expert-guided framework for translating C/C++ programs into optimized HLS accelerators, is presented and evaluated on PolyBench against ChatHLS, a leading prior agent-orchestration framework for HLS accelerator development.

Abstract

Application-specific FPGA accelerators offer substantial performance and energy-efficiency gains across many application domains, but developing them is costly, often requiring months of specialized effort. Even with high-level synthesis (HLS), designers still need extensive hardware expertise to build high-performance accelerators. Although large language models (LLMs) have demonstrated strong software-generation capabilities, even frontier models lack the hardware intuition and procedural knowledge needed to reliably translate baseline C/C++ programs into high-performance HLS designs: they struggle to identify effective architectures, follow the optimization processes used by HLS experts, and apply hardware transformations consistently across diverse kernels. We present HLSmith, an expert-guided framework for translating C/C++ programs into optimized HLS accelerators. HLSmith combines three components: an HLS optimization expertise library that encodes guarded transformation recipes, their applicability and prerequisite conditions, and unsafe cases to avoid; a staged, feedback-driven orchestration flow modeled on expert HLS development practice that guides agents through synthesis, bottleneck analysis, and optimization; and a tool-grounded model-adaptation pipeline that converts optimization trajectories from commercial frontier models into training data for fine-tuning open-weight LLMs. We evaluate HLSmith on PolyBench against ChatHLS, a leading prior agent-orchestration framework for HLS accelerator development. HLSmith achieves a geometric mean speedup of 4.24x over ChatHLS while producing functionally correct designs, in both software and RTL simulation, for every benchmark, compared with ChatHLS's 57% valid-design rate. It further reaches speedups of up to 252x and 138x with commercial frontier models and open-weight models, respectively.

View source

Similar papers

#artificial intelligence Preprint Sep 2026

MaxKernel: Agentic Kernel Generation for TPUs

This work presents MaxKernel, a multi-agent system that implements three distinct paradigms for TPU kernel development: a Human-in-the-Loop (HITL) agent for collaborative, step-by-step design; an Autonomous (Auto) agent that executes a fully automated, metric/trace-driven optimization loop; and a Graph-Based Autonomous...

Shang-Kun Wang, Nina Cai, Charles Hoong et al. · 0 citations
Preprint Sep 2026

Benchmarking Agentic HLS Design Tasks With HLS-Eval

In this work, HLS-Eval is extended with an agentic evaluation flow built on the open-source mini-swe-agent framework, which establishes a foundation for agentic HLS design and motivates harder benchmarks and new agentic tooling as model capabilities progress.

Stefan Abi-Karam, Callie Hao · 0 citations
Book Open access Aug 2026

Teaching LLMs to Write System Kernels for AI Accelerators: Post-Training, Reasoning, and Agentic Optimization

This tutorial presents emerging methods that leverage large language models (LLMs) to automate kernel generation for GPUs and custom accelerators such as AWS Trainium, and demonstrates how recent advances in reinforcement learning and inference-time compute scaling can be adapted to produce correct and performant kerne...

Youngsuk Park, R. Saha, Kaan Ozkara et al. · 0 citations
Preprint Aug 2026

FABRICA: Agentic CUDA-to-CSL Translation and Optimization for Wafer-Scale Systems

These results identify base-model capability, target knowledge, execution feedback, and same-target measurement as central to cross-architecture kernel generation as central to cross-architecture kernel generation.

Yuebo Luo, E. Huerta, Venkat Vishwanath et al. · 0 citations
Jul 2026

FlashRT: Agent Harness for Guiding Agents to Deploy Real-Time Multimodal Applications

FlashRT is presented, an agent harness that guides coding agents to lift simple developer-written reference implementations into optimized multi-GPU deployments that flexibly weigh target metrics like latency and throughput, demonstrating that agent-driven optimization can be more scalable on platforms with less mature...

Krish Agarwal, Zhuoming Chen, Yanyuan Qin et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.