paper-with-me

Papers

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

2026-01-12 · Xinzi Cao, Jianyang Zhai, Pengfei Li, Zhiheng Hu, Cen Yan, Bingxu Mu, Guanghuan Fang, Bin She, Jiayu Li, Yihan Su, Dongyang Tao, Xiansong Huang, Fan Xu, Feidiao Yang, Yao Lu, Chang-Dong Wang, Yutong Lu, Weicheng Xue, Bin Zhou, Yonghong Tian 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.

📄 PDF Abstract BibTeX arXiv:2601.07160

Code (0)

등록된 구현이 없습니다.

Tasks

Computational EfficiencyReinforcement LearningCode Generation

Similar Papers 제목 키워드 기반

Spherical Convolutional Neural Network for 3D Point Clouds

2018-05-21 · Huan Lei, Naveed Akhtar, Ajmal Mian

We propose a neural network for 3D point cloud processing that exploits `spherical' convolution kernels and octree partitioning of space. The proposed metric-based spherical kernels systematically quantize point neighbor…

3D Object ClassificationGeneral ClassificationTranslation

Towards Automated Kernel Generation in the Era of LLMs

2026-01-22 · Yang Yu, Peiyu Zang, Chi Hsu Tsai, Haiming Wu 외 arxiv

The performance of modern AI systems is fundamentally constrained by the quality of their underlying GPU kernels, which translate high-level algorithmic semantics into low-level hardware operations. Achieving near-optima…

Dr. Kernel: Reinforcement Learning Done Right for Triton Kernel Generations

2026-02-05 · Wei Liu, Jiawei Xu, Yingru Li, Longtao Zheng 외 arxiv

High-quality kernel is critical for scalable AI systems, and enabling LLMs to generate such code would advance AI development. However, training LLMs for this task requires sufficient data, a robust environment, and the …

Reinforcement Learning

Recovery Guarantees for Kernel-based Clustering under Non-parametric Mixture Models

2021-10-18 · Leena Chennuru Vankadara, Sebastian Bordt, Ulrike Von Luxburg, Debarghya Ghoshdastidar

Despite the ubiquity of kernel-based clustering, surprisingly few statistical guarantees exist beyond settings that consider strong structural assumptions on the data generation process. In this work, we take a step towa…

Clustering

Linguistic realisation as machine translation: Comparing different MT models for AMR-to-text generation

2017-09-01 · WS 2017 9 · Thiago Castro Ferreira, Iacer Calixto, S Wubben, er 외

In this paper, we study AMR-to-text generation, framing it as a translation task and comparing two different MT approaches (Phrase-based and Neural MT). We systematically study the effects of 3 AMR preprocessing steps (D…

AMR-to-Text GenerationMachine TranslationText GenerationTranslation