Beyond Experience: Knowledge-Guided Evolution for NPU Kernel Generation
Abstract
LLM agents have become capable kernel engineers on mainstream GPU stacks, but they struggle on emerging accelerators such as Ascend NPUs, whose programming model is barely represented in pretraining data. Recent NPU agents address this gap largely through experience: they accumulate memory from their own generation and optimization trials and reuse it on later tasks. We argue that experience alone is not enough for kernel generation. An agent can only remember what it has tried, and it rarely tries a mechanism it does not know. As a result, such memory offers little help when a new operator calls for a different mechanism, and even familiar operators raise unseen situations as optimization proceeds. We present ASCENDEVOLVE, which grounds every step of an evolutionary kernel search in a large external knowledge base built from platform documentation, toolkit headers, and operator repositories. Because this corpus far exceeds any context window, ASCENDEVOLVE indexes it and routes each agent to a small, task-specific slice of evidence instead of the corpus itself. The retrieved knowledge seeds diverse implementation strategies, guides repair when a candidate fails, and constrains how strong candidates are recombined. On 53 Ascend C operators from CANN-Bench spanning four difficulty levels, ASCENDEVOLVE achieves an overall score of 71.39, improving over Reflexion and OpenEvolve by 11.6% and 17.2%.
Create a lesson
Related papers
NoeVera: Can Knowledge Guide Experiments and Experiments Refine Knowledge?
Shared title terminologycs.AIPinaki Prasad Guha Neogi, Spyros Mastorakis, Ankur Mallick et al.
STRIDE: Strategy-to-Tactics Retrieval-Guided Skill Disclosure and Evolution for Agentic Reinforcement Learning
Shared title terminologycs.AIShixin Hong, Wanqing Cui, Yibo Hu et al.
Beyond Unit Tests: Path-Aware Rubric-Guided LLM Autograding of Notebooks
Shared title terminologycs.AISalman Hajizada, Mohammed Yusuf Ansari, Gianni Di Caro
The Effect of Security-Focused Prompts on Reported Findings: A Controlled Experiment on 400 AI-Generated Web Applications
Shared title terminologycs.AIDarko Andročec
CANNBot-CAKE: Collaborative Agentic Kernel Evolution for Ascend NPU
Shared title terminologycs.AIDeng Pan, Xue-Jian Gao, Junyi Fan et al.
ColaBench: Evaluating Memory-Guided Knowledge Acquisition in Personal Agents
Shared title terminologycs.AIWenjie Zhang, Zhichao Shi, Xuhui Jiang et al.