跳到正文
arXiv cs.AI· Byonggon Chun·· 14 小时前AI 评分52

多智能体内核优化循环在 FuriosaAI RNGD NPU 上学习新加速器的案例研究

A Case Study of a Multi-Agent Kernel-Optimization Loop That Learns a New AI Accelerator

AI 导读

该论文以 FuriosaAI RNGD NPU 为案例,构建 LLM 智能体循环,用 12 天在共享稀缺设备上优化三个 Gemma-4-12B 解码内核。循环自行编写并校验 DSL 文档摘要、用微基准测量芯片、记录编译器推导的合法性规则,并在工具链变化时复查。最终内核相对官方基线取得 9.293x 几何平均加速,每个内核的周期数都在仅搬运其权重所需周期的 1.25x 以内。

正文 · 原文

View PDF HTML (experimental)

Abstract:Frontier large language models write correct CUDA kernels for most single-operator benchmark tasks, yet their accuracy collapses on accelerators whose architecture and programming language they have rarely seen. We present a case study of an LLM agent loop built for such accelerators. Our example is the FuriosaAI RNGD NPU, programmed in a recent, sparsely documented Rust DSL, where the loop optimized three Gemma-4-12B decode kernels over 12 days on a shared, scarce device. The loop builds its own target knowledge: it writes and checks a summary of the DSL documentation, measures the chip with microbenchmarks, records compiler-derived legality rules, and revisits this knowledge when the toolchain changes, rechecking rules and measurements where it can. A role-based search over per-kernel Design Trees explores whole-kernel designs and accumulates small accepted changes in the best version of each kernel. Because device time is scarce and readings are noisy, cheap checks screen new designs before any device run, and late in the run a change was accepted only after repeated comparisons with the best kernel on the device. The final kernels reach a 9.293x geomean speedup over the official baseline, each within 1.25x of the cycles needed just to move its weights. Our prompts, profiler and acceptance test are available at this https URL.
Comments: 7 pages, 3 figures, 2 tables. Round 1 of the NPU Model Optimization Competition at MICRO 2026. Code: this https URL
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Hardware Architecture (cs.AR); Programming Languages (cs.PL)
Cite as: arXiv:2610.38329 [cs.LG]
  (or arXiv:2610.38329v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2610.38329

arXiv-issued DOI via DataCite

Submission history

From: Byonggon Chun [view email]
[v1] Wed, 28 Oct 2026 06:29:02 UTC (137 KB)

来源:arXiv cs.AI · arxiv.org