AscendKernelGen: A Systematic Study of LLM-Based Kernel Generation for Neural Processing Units
Not on the map. Why?
Abstract (arXiv)
To meet the ever-increasing demand for computational efficiency, Neural Processing Units (NPUs) have become critical in modern AI infrastructure. However, unlocking their full potential requires developing high-performance compute kernels using vendor-specific Domain-Specific Languages (DSLs), a task that demands deep hardware expertise and is labor-intensive. While Large Language Models (LLMs) have shown promise in general code generation, they struggle with the strict constraints and scarcity of training data in the NPU domain. Our preliminary study reveals that state-of-the-art general-purpose LLMs fail to generate functional complex kernels for Ascend NPUs, yielding a near-zero success rate. To address these challenges, we propose AscendKernelGen, a generation-evaluation integrated framework for NPU kernel development. We introduce Ascend-CoT, a high-quality dataset incorporating chain-of-thought reasoning derived from real-world kernel implementations, and KernelGen-LM, a domain-adaptive model trained via supervised fine-tuning and reinforcement learning with execution feedback. Furthermore, we design NPUKernelBench, a comprehensive benchmark for assessing compilation, correctness, and performance across varying complexity levels. Experimental results demonstrate that our approach significantly bridges the gap between general LLMs and hardware-specific coding. Specifically, the compilation success rate on complex Level-2 kernels improves from 0% to 95.5% (Pass@10), while functional correctness achieves 64.3% compared to the baseline's complete failure. These results highlight the critical role of domain-specific reasoning and rigorous evaluation in automating accelerator-aware code generation. AscendKernGen is available at https://huggingface.co/AscendKernelGen and https://github.com/weich97/NPUKernelBench.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 3 of its 14 references that are in the map. First posted on arXiv 12 Jan 2026.
Builds on
3 of 14 references.
References · 3
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
- 2020MLIR: A Compiler Infrastructure for the End of Moore's Lawcited by 65
- 2025Parallel Scan on Ascend AI Acceleratorscited by 1
Built on by
Citing papers per year: 2026: 12.
12 papers.
- 2026Towards Automated Kernel Generation in the Era of LLMscited by 11
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTecited by 6
- 2026InCoder-32B-Thinking: Industrial Code World Model for Thinkingcited by 4
- 2026AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimizationcited by 3
- 2026Improving HPC Code Generation Capability of LLMs via Online Reinforcement Learning with Real-Machine Benchmark Rewardscited by 1
- 2026From Tokens to Regions: CUDA-Sensitive Instruction Tuning for GPU Kernel Generationcited by 1
- 2026Hawk: Harnessing Hardware-Aware Knowledge for High-Performance NPU Kernel Generationcited by 1
- 2026SLAI T-Rex: Full-Parameter Post-training of the DeepSeek-V4 Family on Ascend SuperPODcited by 1
- 2026CANN Bench: Benchmarking Agent Generated Kernels against Real NPU and Algorithmic Limitscited by 1
- 2026Compiler-Grounded Hierarchical Diagnosis for LLM-Based Triton Kernel Optimizationcited by 0
- 2026Don't Regenerate, Debug: A Domain-Specific Agent for Repairing Near-Miss Hardware Operatorscited by 0
- 2026From Experience to Expertise: Adoption-Aware Memory Learning for Data-Scarce NPU Kernel Synthesiscited by 0
- 2026From Experience to Expertise: Adoption-Aware Memory Learning for Data-Scarce NPU Kernel Synthesis28 Sep 2026
- 2026Don't Regenerate, Debug: A Domain-Specific Agent for Repairing Near-Miss Hardware Operators3 Aug 2026
- 2026Compiler-Grounded Hierarchical Diagnosis for LLM-Based Triton Kernel Optimization25 Jul 2026
- 2026SLAI T-Rex: Full-Parameter Post-training of the DeepSeek-V4 Family on Ascend SuperPOD22 Jul 2026
- 2026CANN Bench: Benchmarking Agent Generated Kernels against Real NPU and Algorithmic Limits8 Jul 2026
- 2026Hawk: Harnessing Hardware-Aware Knowledge for High-Performance NPU Kernel Generation2 Jul 2026
- 2026From Tokens to Regions: CUDA-Sensitive Instruction Tuning for GPU Kernel Generation15 Jun 2026
- 2026InCoder-32B-Thinking: Industrial Code World Model for Thinking3 Apr 2026
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTe1 Apr 2026
- 2026AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimization24 Mar 2026
- 2026Improving HPC Code Generation Capability of LLMs via Online Reinforcement Learning with Real-Machine Benchmark Rewards12 Feb 2026
- 2026Towards Automated Kernel Generation in the Era of LLMs22 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2026KernelGenBench: Can LLMs and Agents Write Efficient Kernels Across Operator Sources and Hardware Platforms?
- 2026KForge: LLM-Driven Cross-Platform Kernel Generation for AI Accelerators
- 2026KernelCraft: Benchmarking for Agentic Close-to-Metal Kernel Generation on Emerging Hardware
- 2026K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Model
- 2026EGG: An Expert-Guided Agent Framework for Kernel Generation
- 2026KernelSight-LM: A Kernel-Level LLM Inference Simulator
- 2025STARK: Strategic Team of Agents for Refining Kernels
- 2026AI Hardware Accelerators for Large Language Models: Architectures and the Memory Wall ↗