acceptodds
Published as a conference paper at NeurIPS 2026

CUDABench: Benchmarking LLMs for Text-to-CUDA Generation

Jiace Zhu, Wentao Chen, Qi Fan, Zhixing Ren, Junying Wu, Xing Z Chai, Chotiwit Rungrueangwutthinon, Yehan Ma, An Zou

Abstract

Recent studies have demonstrated the potential of Large Language Models (LLMs) in generating GPU Kernels. Current benchmarks focus on the translation of high-level languages into CUDA, overlooking the more general and challenging task of text-to-CUDA generation. Furthermore, given the hardware-specific and performance-critical features of GPU programming, accurately assessing the performance of LLM-generated GPU programs is nontrivial. In this work, we introduce CUDABench, a comprehensive benchmark designed to evaluate the text-to-CUDA capabilities of LLMs. First, we construct CUDABench-Set, which covers Breadth-Depth-Difficulty evaluation space in diverse application domains, including artificial intelligence, scientific computing, and data analytics, etc. Furthermore, we propose CUDABench-Score and Generative Verification Pipeline that assess (1) compilation correctness, (2) functional consistency through execution-based verification, and (3) a novel roofline-based metric, Performance-Score. Benchmarking state-of-the-art LLMs reveals insightful findings and challenges of text-to-CUDA, such as a notable mismatch between high compilation success rates and low functional correctness, a lack of domain-specific algorithmic knowledge, and suboptimal utilization of GPU hardware resources.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_42sKOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
2
Read review
Summary

This paper introduces CUDABench, a benchmark designed to evaluate LLMs on text-to-CUDA code generation across diverse GPU computing domains, varying tensor dimensions, and different prompt difficulties. Benchmarking across multiple commercial LLMs reveals that while compilation success rates are relatively high, actual functional correctness and hardware resource utilization remain low.

Strengths and weaknesses

I thank the authors for submitting their interesting work to NeurIPS. While the topic is interesting, I have a few concerns and constructive suggestions to improve the manuscript.

  1. Weak Contribution

The technical novelty is limited, as the core analysis relies on a trivial, well-established compute-memory roofline model. Additionally, the evaluation lacks achieved scores with industry-standard, human-optimized kernels (e.g., cuBLAS) or advanced compiler frameworks like Triton.

  1. Missing Important Factors

The analysis overlooks critical CUDA-specific optimization factors, such as the impact of varying data types and fused kernel implementations.

  1. Limitations under Non-Deterministic Workloads

The proposed roofline analysis appears to only be applicable to relatively static, deterministic execution profiles. How does the framework handle non-deterministic algorithms where data-dependent execution paths alter operational intensity? Specifically, can this roofline model support MoE routing logic, where the computational intensity is fundamentally determined at runtime by the input?

Questions
  • How is the correctness of the prompts verified? Does the framework rely purely on manual human inspection?
  • How is functional consistency validated when floating-point precision errors and numerical divergence are bound to occur?
  • How does the framework support different data precisions (e.g., FP16, MX-FP8, NV-FP4)?
  • How does the benchmark calculate roofline scores for workloads with dynamic memory access or runtime-determined sparsity (e.g., MoE, sparse attention), where operational intensity cannot be statically determined?
Limitations

yes

Paper formatting concerns

N/A

Final justification

The rebuttal addressed most of my clarification-related concerns. My main remaining concern is the limited practical scope of the benchmark, particularly its FP32-only and single-kernel evaluation.

Overall, I think the paper has a solid foundation, and the rebuttal clarified several of my concerns. I am therefore raising my overall rating from (3: Borderline Reject) to (4: Borderline Accept). However, given the remaining limitations in practical scope, I would not strongly champion the paper.

My revised scores:

Quality: 3

Clarity: 2 -> 3, due to the clarifications in the rebuttal

Significance: 2

Originality: 2 -> 3, due to use-inspired contribution

Confidence: 4

Overall Rating: 3 -> 4, due to the clarifications in the rebuttal

1 comment

Thanks for highlighting the need to distinguish the benchmark contribution from the classical roofline model itself and to state the present precision and workload scope more clearly.

W1: Novelty and optimized baselines

We agree that the roofline model itself is an established performance-analysis methodology, and did not claim the roofline model as a technical novelty in the manuscript. Instead, the novelty lies in the benchmark and end-to-end evaluation methodology for text-to-CUDA generation. Specifically, CUDABench introduces 500 from-scratch text-to-CUDA tasks, three levels of prompt information, five input scales, six application domains, task-specific executable assets, a unified correctness/performance pipeline, and a normalized performance metric based on the roofline model. To the best of our knowledge, CUDABench is the first benchmark that integrates a roofline-based hardware-limit metric into the evaluation of LLM-generated CUDA kernels.

We further clarify that CUDABench targets from-scratch CUDA kernel synthesis, i.e., evaluating the capability of LLMs in synthesizing CUDA kernels from natural-language specifications. This differs from optimization-oriented settings, where an existing implementation is provided and the goal is to improve its performance using libraries or compiler frameworks. Therefore, comparisons with industry-standard, human-optimized implementations, such as cuBLAS, and advanced compiler frameworks, such as Triton, represent an orthogonal direction. We agree that such comparisons are valuable for future studies on CUDA optimization agents and will add this discussion as a limitation and future direction.

W2: Data types and fused kernels

We apologize that our description was not sufficiently clear and may have caused confusion. The current scope of CUDABench is limited to FP32 and single-kernel generation. We have defined these settings in the Appendix, but we agree that they should be stated more clearly in the main experimental setup.

Existing manuscript, Appendix C.1, system prompt: “Precision: Use float (float32) for all data.”

Existing manuscript, Appendix B.1: “Second, it focuses on single-kernel generation and does not yet cover larger multi-kernel systems or iterative optimization workflows.”

CUDABench currently does not evaluate FP16/MX-FP8/NV-FP4, or isolate kernel fusion as an experimental factor. It focuses on evaluating the capability of LLMs in generating standalone executable CUDA kernels from natural-language specifications, without conflating generation with downstream optimization techniques. We will clarify these limitations in the main text and consider low-precision support, fused-kernel generation, and multi-kernel optimization workflows as important directions for future extensions.

W3&Q4: Non-deterministic and data-dependent workloads

The CUDABench-Score is calculated from Nsight Compute counters collected during execution, so data-dependent control flow is reflected in the realized FP32 operations and DRAM traffic for the profiled input. The arithmetic intensity in CUDABench is not statically assigned from the algorithm. The exact formulation is provided in our response to R1-W4 & R1-Q4. Therefore, CUDABench can calculate roofline scores for workloads with dynamic memory access or runtime-determined sparsity.

As stated in Appendix B.1, CUDABench focuses on single-kernel generation. Methods such as MoE are typically implemented as multi-kernel pipelines rather than a single kernel. Nevertheless, their individual components, including gating, top-kk selection, and MLP operations, are represented in CUDABench-Set.

Q1: How is prompt correctness verified?

The prompts are verified through both manual inspection and executable validation. As stated in §3, each task prompt follows a fixed schema specifying the task name, description, I/O shapes and data types, and target GPU. We manually review these fields for semantic correctness and consistency. In addition, every task includes a manually implemented reference CUDA kernel, a data generator, and a validator. The generated inputs and expected outputs are executed against the reference implementation to confirm that the task is well-defined, implementable, and consistent with its stated I/O specification. We will clarify this combined human-and-automated quality-control procedure in the revision.

Q2: How are floating-point errors handled?

As stated in Appendix A.5, we use a predefined tolerance policy to handle floating-point errors. The policy is based on numerical semantics rather than per-output tuning:

Existing manuscript, Appendix A.5: “Discrete outputs, including integer labels, indices, histogram bins, sampled point indices, nearest-neighbor indices, max-subarray sums, and stereo disparity outputs, are compared exactly.”

For FP32, the appendix uses:

  • 10−510^{-5} for operations without substantial accumulation;
  • 10−410^{-4} for short local reductions or moderate arithmetic depth;
  • 10−310^{-3} for reductions, normalization, interpolation, wavelets, and related operations;
  • 10−210^{-2} for large or order-dependent accumulations such as matrix products, convolution, attention, optimizers, and scientific simulations; and
  • 10−110^{-1} for repeated matrix powers.

The appendix explicitly states that these groups are determined by expected numerical error sources and are not tuned after observing generated outputs. Functional consistency does not require bitwise equality for floating-point outputs. For each task, gen.py generates the input and corresponding reference output, and the validator compare.py compares the generated kernel’s output against the reference using a predefined tolerance policy. Discrete outputs are checked exactly, while FP32 tolerances are selected according to the expected numerical error, including arithmetic depth and accumulation length. This accommodates legitimate differences caused by reduction order, rounding, and FMA, while outputs exceeding the prescribed tolerance are treated as incorrect. Correctness strictly gates performance evaluation: only kernels that compile, execute successfully, and pass validation receive a performance score.

Q3: How are FP16, MX-FP8, and NV-FP4 supported?

Current version can not support different data precisions; it intentionally evaluates FP32, as quoted from Appendix C.1. CUDABench currently does not evaluate FP16/MX-FP8/NV-FP4, or isolate kernel fusion as an experimental factor. It focuses on evaluating the capability of LLMs in generating standalone executable CUDA kernels from natural-language specifications, without conflating generation with downstream optimization techniques. We will state this directly in the main text. Extending the benchmark to lower-precision tensor-core workloads requires precision-specific reference implementations, generators, validation rules, overflow/underflow handling, and hardware peak definitions. We identify this as future work.

Reviewer_ggcBOpenReview ↗
Rating
5
Clarity
4
Confidence
1
Originality
3
Quality
3
Significance
4
Read review
Summary

The CUDABench benchmark introduced in this paper contains 500 CUDA tasks, each instantiated at three prompt difficulty levels, yielding 1,500 evaluation instances. Tasks span six GPU-computing domains, including deep learning operators, linear algebra, computer vision, data analytics, signal processing, and scientific simulation/finance. Each task includes a task prompt, data generator, validator, and reference CUDA implementation. The authors propose an automated evaluation pipeline that checks compilation, functional correctness, and performance.

Strengths and weaknesses

The benchmark design has several strong elements. Providing task-specific data generators, validators, and reference kernels is valuable and makes the benchmark much more useful than prompt-only code evaluation. The Breadth-Depth-Difficulty axes are also well motivated: breadth probes application domain coverage, depth probes scale sensitivity, and prompt difficulty probes the gap between guided implementation and algorithm recall. The main empirical findings are plausible and useful: modern LLMs often compile CUDA successfully, but functional correctness drops substantially as prompts become less guided, and even valid kernels underutilize hardware. The roofline-inspired metric is a good attempt to connect LLM code generation evaluation with HPC performance analysis rather than only reporting raw wall-clock time.

Questions

None. I am not well-informed enough about CUDA to have specific questions about this work.

Limitations

yes

Paper formatting concerns

none

Final justification

Given on my limited understanding of CUDA, I could evaluate the merit of this work in a limited manner. I continue to maintain my Accept (5) rating based on the benchmark including a large number of tasks, diverse coverage of domains, and automated evaluations. This seems like an useful benchmark.

1 comment

Thanks for the positive assessment. Although no specific technical question was raised, our rebuttal adds substantial evidence addressing the main potential uncertainties: a fixed-reference metric with stable model rankings, reference-kernel anchors, a contamination analysis, and clearer documentation of correctness gating, numerical tolerances, profiler counters, benchmark scope, etc. We hope these additions enable a more confident assessment of the benchmark’s validity and conclusions.

Reviewer_DXjLOpenReview ↗
Rating
4
Clarity
2
Confidence
4
Originality
3
Quality
4
Significance
3
Read review
Summary
  • Contribution: a text-to-CUDA generation benchmark (vs PyTorch-to-CUDA / code-to-code).
  • CUDABench-Set: 500 tasks x 3 difficulty levels; 6 domains; 5 input scales; per-task data generator + validator + reference kernel.
  • Pipeline: NVCC compile -> execution-based functional check -> Nsight Compute profiling.
  • Metric: CUDABench-Score = roofline utilization (achieved/attainable GFLOPs), gated by compile-AND-functional; claimed hardware-independent (A40 + RTX 4090). A wide range of models.
  • Findings: high compile / low functional correctness; L3 collapse (weak domain knowledge); ~40% utilization ceiling, near model-independent.
Strengths and weaknesses

Strengths:

  1. The text-to-CUDA, from-scratch, multi-domain framing fills a real gap relative to code-to-code translation benchmarks; pairing every task with a data generator + validator + reference kernel enables execution-based verification and randomized inputs rather than static test cases.
  2. The Breadth-Depth-Difficulty design is a sensible structuring of the evaluation space; the input-scale axis (kB to 1 GB) is a useful and uncommon dimension that exercises hardware stress.
  3. Evaluates a strong, current slate of frontier models with an automated compile -> execute -> profile pipeline; the headline findings (compile >> functional gap; L3 domain-knowledge collapse; systemic ~40% utilization) are clearly presented and practically informative.

Weaknesses:

  1. The roofline Performance-Score has a fundamental design flaw as a benchmark metric. It normalizes achieved performance by the kernel's own measured arithmetic intensity. A memory-wasteful kernel (redundant traffic) has lower AI -> lower attainable bound -> inflated utilization ratio; symmetrically, an algorithmically suboptimal kernel (e.g., O(n^2) vs O(n log n)) that saturates the hardware scores ~100% because the metric cannot see wasted work. Two correct implementations of the same task can have different attainable bounds, so scores are not cross-implementation comparable, undermining "hardware-independent." A speedup-vs-reference and/or a fixed-reference speed-of-light metric should be reported alongside. The flaw is not roofline per se, but normalizing by the candidate kernel's own measured AI instead of a fixed task/reference AI.
  2. Missing, highly overlapping prior/concurrent benchmarks. ComputeEval (Nvidia) is text-to-CUDA, multi-domain, with references (correctness-only). SOL-ExecBench already added roofline/utilization-style and speed-of-light metrics to text-to-CUDA. These overlap the central contributions and must be cited and contrasted; this submission does not appear to.
  3. Data-contamination / provenance. Tasks are built from NVIDIA CUDA Samples and popular open-source repos, near-certain pretraining data. The L3 "concept-retrieval" (task-name-only) setting is the most exposed: a name like "Black-Scholes" or "Haar wavelet" can elicit a memorized reference, conflating retrieval with generation. No contamination analysis (n-gram overlap, performance-vs-popularity, held-out novel tasks) is reported.
  4. Verification robustness. Execution-based functional checks can be gamed (cf. robust-kbench documenting reward hacking in KernelBench). The tolerance policy, input diversity/edge cases, and whether correctness strictly gates performance need stress-testing; FLOP/byte counting conventions (FMA, predication, cache effects) should be specified, as they directly drive the score.
  5. Interpretability of the numbers. Without the reference kernels' own Performance-Scores and an expert/human ceiling, "~40% utilization" is hard to interpret (is 40% bad, or near-reference for these tasks?). Hardware scope is limited to two Ampere/Ada GPUs (no Hopper/Blackwell).
  6. While a cross-GPU check (A40 + RTX 4090) is included to argue the metric's portability, a cross-generation GPU check would be stronger (e.g., RTX4090 & RTX5090).
Questions
  1. Alongside CUDABench-Score, please also report a fixed-reference metric (e.g., speedup vs the reference kernel's time, like KernelBench fast_p), which is a recomputation over your existing profiling data. If model rankings stay stable under it my confidence rises; if they shift, the headline ~40% and the "hardware-independent" claim must be requalified.

  2. Please run your own reference kernels through the identical pipeline and report their CUDABench-Score, so "~40% utilization / ~60% unexploited" has an anchor (no LLM calls). If references score far above 40% the claim holds; if they also sit near ~40% the number reflects the metric/tasks, not model weakness, and should be reworded.

  3. Since L3 tasks come from public CUDA repos/samples, please add a cheap memorization check on existing outputs (n-gram overlap with references, or pass-rate vs task popularity), as Finding 3 depends on L3 being synthesis rather than recall. Low overlap strengthens Finding 3; high overlap means it must be softened.

  4. Please specify the tolerance policy and input design, confirm correctness strictly gates the score, and state the exact Nsight counters defining FLOPs/bytes (which set AI and thus the score). A clear, hard-to-game protocol raises my confidence; ambiguity or degenerate "valid" kernels (cf. robust-kbench) would require revising the numbers.

  5. A single architecturally distinct GPU (Hopper/Blackwell or RTX 5090), even on a subset, would test whether the "hardware-independent" rankings hold across generations. Stable rankings substantiate the portability claim; large shifts bound it to within-generation comparisons.

Limitations

yes

Paper formatting concerns

none

Final justification

I re-assessed the submission against the Use-Inspired criteria; that change and the rebuttal led to the updated scores below.

Rebuttal-based changes. The authors ran every experiment I asked for, including a fixed-reference metric whose rankings track CUDABench-Score. ComputeEval, which I wrongly listed as missing, is cited and contrasted.

Originality 3 -> 4. Use-Inspired originality may consist of a novel framing, and holding each task fixed while stripping the prompt down to the task name alone is a controlled axis no prior kernel benchmark has, so the roofline model being textbook material is not an objection.

Significance 3 -> 2. The benchmark is FP32 end to end (prompt, attainable peak, FLOP counters), missing the mixed-precision tensor-core work that dominates GEMM, convolution and attention in practice, and it has no vendor-library baseline, which Use-Inspired requires explicitly.

Quality 3, unchanged. The new metric improves the fit, but the rebuttal also shows the authors' own reference kernels scoring below the models, so the Sec. 5.2 "60% unexploited" claim needs the rewording they agreed to; the two cancel.

Clarity 3, unchanged. Readable for a non-GPU ML audience, though the metric conventions belong in the main text.

Overall rating 4. Under General I would now be at 5; Use-Inspired credits the framing and penalises an FP32-only scope with no non-ML baseline.

1 comment

W1 & Q1: Fixed-reference metric

We agree that CUDABench-Score can be affected by memory-wasteful kernels. In our current from-scratch, single-pass setting, models do not observe the scoring rule or receive optimization feedback, so intentional exploitation is unlikely.

Following the suggestion, we add a fixed-reference metric. For task ii, reference time tireft_i^{ref}, and generated time tijt_{ij}, we add

si(k)=tirefmin⁡j≤k,  j validti,jmodel,fastp@k=1N∑i1 ⁣[∃j≤k:j is valid∧si(k)>p].s_i^{(k)}=\frac{t_i^{ref}}{\min_{j\leq k,\;j\ valid}t_{i,j}^{model}},\\ fast_p@k=\frac{1}{N}\sum_i\mathbf{1}\!\left[\exists j\leq k:j\ \text{is valid}\land s_i^{(k)}>p\right].

Thus fast_1@k is the fraction of all tasks solved correctly and faster than the fixed reference. Cells show fast_1 (CUDABench-Score rank → fast_1 rank); ties use average ranks:

ModelL1 Pass(P)@1 (%)L1 P@3 (%)L2 P@1 (%)L2 P@3 (%)L3 P@1 (%)L3 P@3 (%)
GPT-5.259.8 (1→1)70.8 (1→1)53.2 (2→2)65.4 (1→2)40.0 (1→1)52.4 (1→1)
Gemini 3 Flash50.4 (3→3)67.6 (2→2)47.0 (3→3)62.6 (3→3)38.2 (2.5→2)50.0 (2→2)
Claude 4.552.8 (2→2)66.0 (3→3)54.4 (1→1)67.4 (2→1)35.8 (2.5→3)49.6 (3→3)
DeepSeek V3.237.2 (6→6)58.6 (5→5)40.0 (4→5)57.6 (5→4)26.0 (5.5→5.5)42.2 (6→6)
Qwen3 Max39.4 (5→5)51.8 (7→7)41.8 (5→4)52.4 (7→7)26.0 (5.5→5.5)40.8 (7→7)
Kimi K248.0 (4→4)65.6 (4→4)34.2 (6→6)54.4 (6→5)31.0 (4→4)48.4 (4→4)
MiniMax-M2.130.4 (7→7)52.4 (6→6)31.4 (7→7)54.2 (4→6)24.8 (7→7)43.8 (5→5)
Spearman ρ\rho1.0001.0000.9640.8570.9911.000

The model rankings under fixed-reference metric remain highly consistent with those under CUDABench-Score: Spearman’s ρ ranges from 0.857 to 1.000. Three settings preserve the exact ranking, while the remaining differences are mainly local rank swaps with relatively small performance differences.

W5&Q2: CUDABench-Score of reference kernel

To assess whether CUDABench-Score meaningfully distinguishes kernel-generation quality, we evaluate both the supplied reference kernels (as shown in the table above) and an iterative refinement baseline [1].

CUDABench-Score is 33.5261% on all reference kernels. The supplied reference kernels are manually implemented primarily to provide executable ground truth for data generator and functional validator, rather than to serve as optimized performance baselines. Therefore, they are not expected to score far above generated kernels. For fair comparison, we additionally apply each model’s correctness mask: a reference score is retained only when the corresponding model solves that task within the first k attempts, and is otherwise set to zero. The results range from 16.99% to 32.12%. Meanwhile, iterative refinement raises the score to 55.04%, demonstrating additional optimization headroom.

Therefore, CUDABench can distinguish generation capability: the reference kernels, kernels generated by top-tier models, kernels generated by iterative refinement, achieve performance scores 33.5261%, ~40%, and 55.04%, respectively.

[1] Zhang Z, Wang R, Li S, et al. Cudaforge: An agent framework with hardware feedback for cuda kernel optimization[J]. arXiv preprint arXiv:2511.01884, 2025.

W2: Missing ComputeEval & SOL-ExecBench

ComputeEval is already cited in Table 1 and §2 as an important text-to-CUDA benchmark. ComputeEval emphasizes functional evaluation of CUDA generation while CUDABench constructs a Breadth-Depth-Difficulty evaluation space focus on both an correctness and performance.

CUDABench evaluates text-based, from-scratch CUDA generation across general GPU-computing domains, whereas SOL-ExecBench evaluates code-based optimization of production deep-learning kernels or subgraphs. Due to the double-blind review policy, we did not include this citation in the submitted manuscript. We will add the citation and clarify the relationship between the two works in the revision.

W3&Q3: Contamination

Following the reviewer’s suggestion, we analyzed all 31,500 slots via rare lexical n-gram [2] containment in __global__/__device__ code after removing host/I/O and boilerplate. Each cell in the table reports median / Q3 / Q90 matched-reference overlap.

nL1 (%)L2 (%)L3 (%)
80.996 / 4.715 / 10.0671.163 / 4.673 / 10.7900.373 / 3.366 / 8.594
100.000 / 3.614 / 8.2800.000 / 3.614 / 9.0910.000 / 2.548 / 6.945
120.000 / 2.353 / 6.3340.000 / 2.652 / 6.9770.000 / 1.714 / 5.597

The overlap analysis shows no increased lexical-copying signal at Level 3. Rare n-gram containment is low for most generations, and Level 3 has lowest overlap ratios across different n and different levels. This pattern is consistent with the prompt design: the more detailed Level 1 and Level 2 prompts constrain the implementation space and may lead to code structures closer to the references, whereas Level 3 leaves greater freedom in algorithm and implementation choices. These results suggest that L3 performance is not primarily explained by verbatim copying of public reference implementations, strengthening our interpretation that L3 evaluates concept retrieval and synthesis.

The submitted appendix already acknowledges this risk and describes our mitigation:

Existing manuscript, Appendix B.1: “Third, as with most code generation benchmarks, contamination is difficult to completely rule out, although we mitigate this risk through task rewriting, new natural-language prompts, and manual implementation of benchmark instances.”

Existing manuscript, Appendix B.4: “Existing repositories and documentation, including PyTorch APIs and NVIDIA CUDA Samples, are used only as references for task construction rather than directly copied as benchmark kernels.”

[2] Shuo Yang et al. “Rethinking Benchmark and Contamination for Language Models with Rephrased Samples.” 2023.

W4&Q4: Verification robustness

Thank you for the pointer! Agents studied by Robust-KBench iteratively revise kernels using execution or performance feedback and suffer from reward hacking. CUDABench instead evaluates independent, one-shot generations: the model do not rely on validator results, scores, etc. Thus, the reward-hacking studied in Robust-KBench is not applicable in our setting.

Tolerance Policy: The full tolerance policy is given in Appendix A.5.

Input Design: As stated in Sec. 4.4, for every task and input scale, the task-specific data generator gen.py independently generates randomized inputs and the corresponding reference outputs. Inputs follow the prescribed shapes, data types, and one of five scales from Tiny to Huge. Each scale has its own matched generator, reference kernel, and validator, and input values are chosen to avoid numerical underflow during validation.

Correctness strictly gates performance. Compilation and functional correctness are evaluated as two separate stages. First, the generated CUDA program must compile successfully with NVCC. Second, only compiled programs enter functional verification. In the Generative Verification Pipeline, the task-specific gen.py generates randomized inputs and corresponding reference outputs. The generated kernel is then executed on the same inputs, and compare.py checks its outputs against the references using the predefined Tolerance Policy.

Only kernels that pass both stages are profiled. Eq. (5) explicitly multiplies the Performance-Score by 1(Compilation∧Functional)\mathbf{1}(\mathrm{Compilation}\land\mathrm{Functional}), so any compilation or functional failure receives a final CUDABench-Score of zero.

Exact Nsight Compute conventions. The implementation details of Exact Nsight counter are provided in the Supplementary Material. Specifically in the line 155-168 of eval_eff_only() function in CUDABench/Evaluate/evaluator_core.py:

Line155 smsp__sass_thread_inst_executed_op_fadd_pred_on.sum.per_cycle_elapsed
...
Line168 dram__cycles_elapsed.avg.per_second

For each kernel, we average all Nsight Compute records associated with that kernel name. Let raddr_{\rm add}, rmulr_{\rm mul}, and rfmar_{\rm fma} denote the measured FP32 add, multiply, and fused-multiply-add instruction rates, and let fsmspf_{\rm smsp}, fsmf_{\rm sm}, and fdramf_{\rm dram} denote the measured SMSP, SM, and DRAM frequencies. We compute

F=(radd+rmul+2rfma)fsmsp,Ppeak=2rfmapeakfsm,B=rdram,Bpeak=rdrampeakfdram,F=(r_{\rm add}+r_{\rm mul}+2r_{\rm fma})f_{\rm smsp}, \qquad P_{\rm peak}=2r_{\rm fma}^{\rm peak}f_{\rm sm},\\ B=r_{\rm dram}, \qquad B_{\rm peak}=r_{\rm dram}^{\rm peak}f_{\rm dram},

where rdramr_{\rm dram} is the measured off-chip DRAM byte rate and rdrampeakr_{\rm dram}^{\rm peak} is the corresponding peak-sustained rate. FADD and FMUL count as one FLOP, while FFMA counts as two; predicated-off instructions are excluded. Following the Nsight Compute definition, arithmetic intensity is measured work divided by measured off-chip memory traffic:

AI=F/B,Score=BBpeakif F≈0,Score=Fmin⁡(Ppeak, AIBpeak)otherwise.\mathrm{AI}=F/B, \qquad \mathrm{Score}=\frac{B}{B_{\rm peak}}\qquad \text{if }F\approx 0,\qquad \mathrm{Score}=\frac{F}{\min\left(P_{\rm peak},\,\mathrm{AI}B_{\rm peak}\right)}\qquad \text{otherwise}.

W6&Q5: Cross-generation GPU evidence

Appendix A.3, Table 6 reports one representative cross-generation GPU case spanning Ampere, Ada Lovelace, and Blackwell. While this two-kernel example does not establish full model-ranking stability across generations, it provides preliminary evidence that the score can preserve relative performance ordering across architectures.

KernelGPUArch.Arith.Perf.PeakScore
MSERTX 5080Blackwell0.180.53172.00.3%
MSERTX 3090Ampere0.190.47172.10.3%
MSERTX 4090Ada Lovelace0.180.60184.50.3%
MSEA40Ampere0.170.40115.40.4%
MSE Opt.RTX 5080Blackwell0.55383.0518.973.8%
MSE Opt.RTX 3090Ampere0.48322.3435.474.0%
MSE Opt.RTX 4090Ada Lovelace0.55414.9554.974.8%
MSE Opt.A40Ampere0.42232.1295.278.6%

Because the rebuttal period is limited, we will add a broader cross-generation experiment and report model rankings in the revision.

Comments on the paper

1 comment
Meta-review

Summary. CUDABench is a text-to-CUDA (from scratch, not code-to-code) benchmark: 500 tasks x 3 difficulty levels across 6 domains and 5 input scales, each with a data generator, validator, and reference kernel, plus an automated compile, execute, profile pipeline. Its headline metric, CUDABench-Score, is a roofline utilization ratio gated by compile and functional correctness. Findings: high compile but low functional correctness, an L3 domain knowledge collapse, and a near model independent ~40% utilization ceiling.

Reviewers agree the text-to-CUDA framing fills a real gap, the Breadth-Depth-Difficulty structure with per task generators/validators/references is valuable, and the compile-vs-functional gap and utilization findings are informative (DXjL, ggcB, 42sK). This is a use inspired benchmark paper and the informed reviewers applied the right lens.

For the paper to be strongly considered, the authors must convincingly address:

The metric design flaw (DXjL, related to 42sK). CUDABench-Score normalizes achieved performance by the candidate kernel's own measured arithmetic intensity, so a memory wasteful kernel gets an inflated ratio and an algorithmically suboptimal kernel that saturates hardware can score ~100% because wasted work is invisible; two correct implementations get different attainable bounds, which undercuts "hardware independent." Please add a fixed reference metric (e.g., speedup vs the reference kernel, KernelBench style), which is a recomputation over existing profiling data, and report whether model rankings stay stable. This is the decisive item. Interpretability anchor (DXjL). Run the paper's own reference kernels through the identical pipeline and report their CUDABench-Score, so "~40% utilization" has a no-LLM anchor. If references also sit near 40%, the number reflects the metric/tasks rather than model weakness and must be reworded. Missing overlapping prior/concurrent work (DXjL). ComputeEval and SOL-ExecBench overlap the central contributions (text-to-CUDA with references; roofline/speed-of-light metrics) and must be cited and contrasted. Contamination check (DXjL). Tasks come from CUDA Samples and popular repos, and L3 name-only prompts are the most exposed. Add a cheap memorization check on existing outputs (n-gram overlap or pass rate vs task popularity), since Finding 3 depends on L3 being synthesis rather than recall.

De-prioritized (not required): cross generation GPU (Hopper/Blackwell/RTX 5090) is a nice-to-have; MoE / dynamic-intensity handling and FP16/FP8/FP4 precision coverage (42sK) can be scoped as limitations rather than new experiments; specifying the tolerance policy and exact Nsight FLOP/byte counters is a documentation fix.

If items 1 through 4 are answered convincingly, especially if rankings survive a fixed reference metric, I would be prepared to move to accept. Please rebut any point you believe is factually wrong.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.