cs.LGMar 11, 2026

Towards Cold-Start Drafting and Continual Refining: A Value-Driven Memory Approach with Application to NPU Kernel Synthesis

Authors: Yujie Zheng, Zhuo Li, Shengtao Zhang, Hanjing Wang, Junjie Sheng, Jiaqian Wang, Junchi Yan, Weinan Zhang, 

Organizations: Shanghai Jiao Tong University · Shanghai Artificial Intelligence Laboratory · Independent Researcher · MemTensor (Shanghai) Technology Co., Ltd

Abstract

Deploying Large Language Models to data-scarce programming domains poses significant challenges, particularly for kernel synthesis on emerging Domain-Specific Architectures where a "Data Wall" limits available training data. While models excel on data-rich platforms like CUDA, they suffer catastrophic performance drops on data-scarce ecosystems such as NPU programming. To overcome this cold-start barrier without expensive fine-tuning, we introduce EvoKernel, a self-evolving agentic framework that automates the lifecycle of kernel synthesis from initial drafting to continual refining. EvoKernel addresses this by formulating the synthesis process as a memory-based reinforcement learning task. Through a novel value-driven retrieval mechanism, it learns stage-specific Q-values that prioritize experiences based on their contribution to the current objective, whether bootstrapping a feasible draft or iteratively refining latency. Furthermore, by enabling cross-task memory sharing, the agent generalizes insights from simple to complex operators. By building an NPU variant of KernelBench and evaluating on it, EvoKernel improves frontier models' correctness from 11.0% to 83.0% and achieves a median speedup of 3.60x over initial drafts through iterative refinement. This demonstrates that value-guided experience accumulation allows general-purpose models to master the kernel synthesis task on niche hardware ecosystems. Our official page is available at https://evokernel.zhuo.li.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. From Experience to Expertise: Adoption-Aware Memory Learning for Data-Scarce NPU Kernel Synthesis

    Sep 28, 2026Longxiao Fan, Tao Zhang, Han Yan +5LLM-Based Program SynthesisAgent Skill Learning

  2. Beyond Experience: Knowledge-Guided Evolution for NPU Kernel Generation

    Oct 20, 2026Xi Chen, Ming Shen, Haotian Yan +2LLMs for Evolutionary Optimization

  3. Hawk: Harnessing Hardware-Aware Knowledge for High-Performance NPU Kernel Generation

    Jul 2, 2026Junyi Wen, Ruiyan Zhuang, Yongjia Xu +7Code GenerationLLM-Based Program Synthesis