MultiKernelBench: A Multi-Platform Benchmark for Kernel Generation

Zhongzhen Wen, Yinghui Zhang, Zhong Li, Zhongxin Liu, Linna Xie +1 more
7/20/2025
cs.DCcs.LGcs.PF

Official code: wzzll123/MultiKernelBench (68 stars, last commit 2026-03-25).

Abstract

The automatic generation of deep learning (DL) kernels using large language models (LLMs) has emerged as a promising approach to reduce the manual effort and hardware-specific expertise required for writing high-performance operator implementations. However, existing benchmarks for evaluating LLMs in this domain suffer from limited hardware support, coarse-grained kernel categorization, and imbalanced task coverage. To address these limitations, we introduce MultiKernelBench, the first comprehensive, multi-platform benchmark for LLM-based DL kernel generation. MultiKernelBench spans 285 tasks across 14 well-defined kernel categories and supports three major hardware platforms: Nvidia GPUs, Huawei NPUs, and Google TPUs. To enable future extensibility, we design a modular backend abstraction layer that decouples platform-specific logic from the core benchmarking infrastructure, allowing easy integration of new hardware platforms. We further propose a simple yet effective category-aware one-shot prompting method that improves generation quality by providing in-category exemplars. Through systematic evaluations of seven state-of-the-art LLMs, we reveal significant variation in task difficulty, poor generalization to platforms with less training exposure, and the effectiveness of targeted prompting strategies. MultiKernelBench is publicly available at https://github.com/wzzll123/MultiKernelBench.

View on arXivView PDF

Code Implementations(1)

MultiArchKernelBench: A Multi-Platform Benchmark for Kernel Generation

6817C++, ShellJul 18, 20257 months agoNOASSERTION

Similar Papers

Cite this paper

@article{wen2025multikernelbench,
  title  = {MultiKernelBench: A Multi-Platform Benchmark for Kernel Generation},
  author = {Zhongzhen Wen and Yinghui Zhang and Zhong Li and Zhongxin Liu and Linna Xie and Tian Zhang},
  year   = {2025},
  eprint = {2507.17773},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.17773v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.17773.svg)](https://codeofpaper.com/paper/2507.17773)

Discussion