HPC-Bench: A Comprehensive Benchmark for High Performance Computing Codes
Bowen Cui, Junyu Yin, Tejas Ramesh, Leo Lim, Oscar Hernandez, Keren Zhou
NeurIPS page · Open on the map
Category: LLM Agents, Evals & Benchmarks › Hardware-Accelerated Code and System Benchmarking · Type: benchmark or dataset · Keywords: HPC benchmark, LLM code optimization, computational kernels, performance evaluation, automated correctness verification, speedup metrics
Areas: Code & Coding Agents › Code Generation and Optimization › LLM Code Benchmarks; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Code and Hardware Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › LLM Code Optimization
Summary
HPC-Bench is a performance-grounded benchmark that evaluates LLMs as optimizers of computational kernels across 114 workloads and 16 motifs, providing an automated pipeline for correctness verification and speedup metrics.
Explained to a 5-year-old
We made a big test for computers that helps AI learn to make code run faster. The test has many different little programs that do math things. We ask the AI to change the code to make it faster. We check if the new code still works and is quicker. This helps us see how good the AI is at speeding up computer work.
Explained to a 5-year-old, longer
We created a big test to see how well AI can make computer programs faster. The test includes many different small programs that do calculations, like math tasks. Each program is run on different kinds of computers, like regular CPUs, parallel CPUs, and special graphics cards. We ask the AI to change the code of these programs to try to make them run quicker. After the AI changes the code, we check that the new code still does the right thing. We also measure how much faster the new code is compared to the original. The test only looks at changes that are both correct and fast, so we don’t accept slow fixes. We tried the test with three different AI models to see how they perform. This helps researchers understand where AI can help and where it still needs improvement. It also gives developers a way to test their own code’s speed on many different machines. The test is open so anyone can use it to improve computer performance.
For a technical reader
The paper introduces a benchmark that automatically generates and runs many HPC kernel workloads, then asks LLMs to propose optimizations. It verifies that the proposed code is correct and measures speedup under a limited budget. The evaluation shows that stricter speedup targets lower the chance of finding both correct and fast optimizations across CPU, OpenMP, and CUDA environments.
Problem
Optimizing high-performance computing codes is challenging because it requires low-level code changes, careful memory access, and kernel tuning, and existing LLM benchmarks do not capture these performance aspects.
Method
The benchmark supplies an end-to-end evaluation pipeline that automatically generates computational kernels, runs them, verifies correctness, and computes Fast@k and Speedup@k metrics under a fixed sampling budget.
Results
Stricter speedup requirements reduce the likelihood of finding correct and fast optimizations across CPU, OpenMP, and CUDA settings.
Contributions
A performance-grounded benchmark for evaluating LLMs as optimizers of computational kernels, an automated pipeline for correctness verification and speedup evaluation, and an empirical analysis across multiple hardware settings.
Research questions this paper is counted under
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