- 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.
- 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.
- Missing Important Factors
The analysis overlooks critical CUDA-specific optimization factors, such as the impact of varying data types and fused kernel implementations.
- 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
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.
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-k 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:
For FP32, the appendix uses:
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.pygenerates the input and corresponding reference output, and the validatorcompare.pycompares 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.