Skip to content
KernelBench: Benchmark Evaluates LLMs' Ability to Write Efficient GPU Kernels

KernelBench: Benchmark Evaluates LLMs' Ability to Write Efficient GPU Kernels

First seen 28 Nov 2026, 21:19 UTC •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 28, 2026 at 21:20 UTC
  • •KernelBench is a benchmark of 250 PyTorch workloads for evaluating LLM-generated CUDA kernels.
  • •The fast_p metric measures correct kernels that beat a chosen speedup threshold over the PyTorch baseline.
  • •Per the paper abstract, frontier models match the PyTorch baseline in fewer than 20% of cases.
  • •The project is being extended to other DSLs and AMD GPU support.

KernelBench is an open-source benchmark and evaluation environment, described on a GitHub repository page and an arXiv preprint (arXiv:2502.10517), for testing whether large language models can generate correct and efficient CUDA kernels for PyTorch programs on a target GPU.

It contains 250 PyTorch workloads organised into four levels: 100 single-kernel operators, 100 simple fusion patterns, 50 full model architectures, and a Hugging Face level.

The paper introduces a metric, fast_p, which measures the share of generated kernels that are functionally correct and exceed a speedup threshold p over the baseline.

According to the abstract, frontier reasoning models perform best out of the box but still fall short, matching the PyTorch baseline in fewer than 20% of cases.

The abstract states that results can improve with execution and profiling feedback during iterative refinement, and that difficulty rises as the speedup threshold increases.

The GitHub page says the project is being extended to other DSLs and AMD GPU support, and that the Hugging Face dataset has been updated to v0.1. This is a research benchmark rather than a security vulnerability or threat.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Or ask in your own assistant: ClaudeChatGPTPerplexityGemini

Timeline

2025-02-14
KernelBench arXiv preprint posted
The arXiv identifier 2502.10517 indicates the paper was submitted in February 2025, per the arXiv listing.
arXiv
Recent
Dataset updated to v0.1
The GitHub page states the Hugging Face dataset has been updated to v0.1.
GitHub

More articles in this cluster (2)

Following this threat?

Track Triton in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Is this a security vulnerability?
No. KernelBench is a research benchmark for evaluating LLM-generated GPU kernels, and the articles describe no vulnerability or attack.
How well do LLMs perform on KernelBench?
According to the arXiv abstract, frontier reasoning models perform best out of the box but match the PyTorch baseline in fewer than 20% of cases.
Can I use KernelBench to evaluate my own models?
The GitHub page provides core functionality and evaluation scripts, and recommends cloning or submoduling the repo for experiments.