# ParallelKernelBench: Can LLMs Write Fast Multi-GPU Kernels?

*Willy Chan, Nathan Paek, Simon Guo, Simran Arora, Dan Fu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/139064) · [OpenReview](https://openreview.net/forum?id=nQ2uJYyc4s) · [Open on the map](../papers.html#p139064)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [GPU Kernel Optimization and Benchmarking](../pgroup/467.md) · Type: benchmark or dataset · Keywords: multi-GPU kernel generation, LLM code generation, benchmark suite, communication-aware roofline, GPU performance

Areas: [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Benchmarks › Code and Hardware Benchmarks

## Summary
ParallelKernelBench is a benchmark and evaluation framework for multi-GPU kernel generation that reveals current LLMs' limited performance and highlights novel kernels that outperform existing implementations.

## Explained to a 5-year-old
Some smart computers called LLMs try to write tiny programs that make GPUs work fast. These programs need to share work across many GPUs, which is hard because there are many ways to do it. We made a big collection of test problems called ParallelKernelBench to see how well the computers do. The computers only get a few things right and are slow most of the time. Some of the new programs they wrote are faster than the old ones for certain tasks.

## Explained to a 5-year-old, longer
A lot of people are trying to get smart computers to write fast code for GPUs. These computers are called large language models, or LLMs. Usually they can write code for one GPU, but when you need many GPUs working together, things get much harder. The code has to split work in many different ways, like across tensors, experts, pipelines, data, and sequences. Also, the way data moves between GPUs can become a big slowdown. To study this, we built a big set of test problems called ParallelKernelBench. We organized the problems into a taxonomy that covers many kinds of parallel workloads. The benchmark includes 87 different problems that reflect real-world situations. We then asked the latest LLMs to generate kernels for these problems and measured how often they were correct. The results show that the LLMs only get about one-third of the kernels right in a single attempt. Even when they are correct, they rarely run faster than a simple baseline that does not overlap communication. We also looked at how well the correct kernels use the hardware, using a special analysis that accounts for communication. Most of the baseline solutions use less than half of the GPU's peak performance. Finally, we found a few new kernels that the LLMs created that actually beat the existing reference implementations on some tasks, giving speedups of up to about two times.

## For a technical reader
The paper introduces ParallelKernelBench, a benchmark suite for evaluating LLMs on multi-GPU kernel generation. It defines a taxonomy of distributed workloads and includes 87 realistic problems. Evaluations show that current LLMs achieve only 32% single-shot correctness and provide speedup over a naive baseline in 25% of cases, with most kernels under-utilizing hardware. The work also presents a communication-aware roofline analysis and highlights novel LLM-generated kernels that outperform reference implementations on specific tasks.

## Problem
Generating high-performance multi-GPU kernels using language models is challenging because the design space is huge, communication bottlenecks are not captured by single-GPU analysis, and many hardware paths exist with different tradeoffs.

## Method
We create a taxonomy of distributed workloads, curate 87 representative problems, and build a benchmark suite that includes communication-aware roofline analysis. The framework evaluates frontier coding LLMs on correctness, speedup, and hardware utilization, and we analyze the generated kernels against reference implementations.

## Results
Current LLMs achieve only 32% single-shot kernel correctness and exceed an unoverlapped baseline in 25% of cases; additionally, over 90% of baselines use less than 50% of peak hardware utilization. The study also identifies several LLM-generated kernels that beat reference implementations by up to 2.06×, 1.72×, and 1.40× respectively.

## Contributions
We introduce a comprehensive benchmark and taxonomy for multi-GPU kernel generation, evaluate frontier LLMs on this benchmark, and provide a communication-aware roofline analysis. We also discover novel kernels that outperform existing implementations on specific workloads.

## Research questions this paper is counted under

- [How can we dynamically adapt parallelism to balance load and minimize communication in distributed large language model training?](../q/123.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/139064)
