mlsanityData to 14 Oct 2026

AscendKernelGen: A Systematic Study of LLM-Based Kernel Generation for Neural Processing Units

arXiv 2601.07160 ↗First posted 12 Jan 2026cs.AI cs.LGcited by 12

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

  1. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
  2. 2020MLIR: A Compiler Infrastructure for the End of Moore's Lawcited by 65
  3. 2025Parallel Scan on Ascend AI Acceleratorscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 12.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026KernelGenBench: Can LLMs and Agents Write Efficient Kernels Across Operator Sources and Hardware Platforms?
  2. 2026KForge: LLM-Driven Cross-Platform Kernel Generation for AI Accelerators
  3. 2026KernelCraft: Benchmarking for Agentic Close-to-Metal Kernel Generation on Emerging Hardware
  4. 2026K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Model
  5. 2026EGG: An Expert-Guided Agent Framework for Kernel Generation
  6. 2026KernelSight-LM: A Kernel-Level LLM Inference Simulator
  7. 2025STARK: Strategic Team of Agents for Refining Kernels
  8. 2026AI Hardware Accelerators for Large Language Models: Architectures and the Memory Wall ↗