Verigrad: Verification-Driven Multi-Agent GPU Kernel Generation for High-Order MLIP Derivatives
Yao Liu, Yuanchang Zhou, Hongtao Xu, Mingzhen Li
NeurIPS 2026
Abstract. Generating GPU kernels for derivatives requires preserving dependencies across forward, backward, and higher-order automatic differentiation phases. Local tensor checks can miss errors in the assembled scientific outputs. We present \textsc{Verigrad}, a verification-driven multi-agent system for first- and second-order derivative workloads in machine learning interatomic potentials (MLIPs). A \texttt{DerivativeTask} specifies requested quantities, tensor bindings, and checks; a derivative-aware intermediate representation exposes saved tensors and reconstruction rules to synthesis agents. An execution-based verifier accepts the composed derivative artifact, and a hardware-refinement agent retains lower-latency candidates only when they pass the same task checks. On KernelBench L3 double-backward targets, generation success is for KernelAgent and for \textsc{Verigrad}. With semantic lifting, reported time and token use per successful MatRIS operator are and lower, respectively. Integrated MatRIS inference and training on RTX 3090 achieve -- speedup over eager PyTorch across twelve workloads.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The reviews are mixed but generally positive: one reviewer with accept, one recommends borderline accept, and the third reviewer with borderline reject, primarily because the current evaluation does not sufficiently establish statistical robustness, hardware generality, or comparison against other kernel-generation agents.
The paper introduces VeriGrad, a verification-driven multiagent system for generating and optimizing GPU kernels for forward, backward, and higher-order derivative workloads in ML interatomic potentials (MLIPs). Its derivative-aware intermediate representation, task-level verifier, and verifier-preserving refinement loop produce end-to-end speedups.
The reviewers generally agree that it addresses an important and technically challenging system problem and that the derivative-task abstraction and derivative-aware IR constitute a useful and original contribution. They also value the end-to-end MLIP evaluation, correctness-preserving optimization process, semantic-lifting ablation, detailed technical presentation, and released code.
Given the current score distribution, this AC would like the rebuttal to focus particularly on reviewer XD7A’s evaluation concerns. (1) Error bars may be provided with repeated runs to clarify whether the reported improvements are statistically reliable. (2) Evaluate the system on additional hardware, preferably including a datacenter GPU and, if feasible, a heterogeneous or non-GPU platform. (3) Compare against additional contemporary LLM-based kernel agents rather than only KernelAgent. (4) Ablation studies are suggested for the KernelBench derivative-lift experiment to isolate the contributions of semantic lifting, task-level verification, and verifier-preserving refinement, and explain what currently prevents VeriGrad from supporting XPU targets.
In the rebuttal, other reviewers’ questions may also be addressed by clarifying the relationship to ProofWright and prior ML-kernel equivalence-checking work, positioning the reported latency against a theoretical or hardware-specific performance ceiling, and discussing extension to multi-GPU execution and communication optimization.
Read meta-review
Meta-review
The reviews are mixed but generally positive: one reviewer with accept, one recommends borderline accept, and the third reviewer with borderline reject, primarily because the current evaluation does not sufficiently establish statistical robustness, hardware generality, or comparison against other kernel-generation agents.
The paper introduces VeriGrad, a verification-driven multiagent system for generating and optimizing GPU kernels for forward, backward, and higher-order derivative workloads in ML interatomic potentials (MLIPs). Its derivative-aware intermediate representation, task-level verifier, and verifier-preserving refinement loop produce end-to-end speedups.
The reviewers generally agree that it addresses an important and technically challenging system problem and that the derivative-task abstraction and derivative-aware IR constitute a useful and original contribution. They also value the end-to-end MLIP evaluation, correctness-preserving optimization process, semantic-lifting ablation, detailed technical presentation, and released code.
Given the current score distribution, this AC would like the rebuttal to focus particularly on reviewer XD7A’s evaluation concerns. (1) Error bars may be provided with repeated runs to clarify whether the reported improvements are statistically reliable. (2) Evaluate the system on additional hardware, preferably including a datacenter GPU and, if feasible, a heterogeneous or non-GPU platform. (3) Compare against additional contemporary LLM-based kernel agents rather than only KernelAgent. (4) Ablation studies are suggested for the KernelBench derivative-lift experiment to isolate the contributions of semantic lifting, task-level verification, and verifier-preserving refinement, and explain what currently prevents VeriGrad from supporting XPU targets.
In the rebuttal, other reviewers’ questions may also be addressed by clarifying the relationship to ProofWright and prior ML-kernel equivalence-checking work, positioning the reported latency against a theoretical or hardware-specific performance ceiling, and discussing extension to multi-GPU execution and communication optimization.
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper identifies three challenges in MLIP workloads, where existing LLM-based GPU-kernel agents are not reliable. To address them, the paper introduces the derivative-aware IR to expose derivative semantics, a verifier to check the full composed derivative artifact, and a verifier-preserving optimization loop to improve hardware performance. The experimental results shows a 1.33-1.55x speedup over the PyTorch eager baseline on MatRIS workload.
Strengths and weaknesses
Strengths
The paper provides detailed technical descriptions of the method and experimental setup with source code, which improves the reproducibility. In addition, the paper also includes thorough literature reviews on MLIP derivatives.
Weaknesses
The paper is evaluation-heavy, but it does not report error bars and lacks statistical significance. This weakness is also acknowledged by the authors in the paper checklist.
The paper only evaluates on one GPU and does not provide sufficient evaluations across hardware platforms, even though the hardware refinement is an important component of the proposed framework. In addition, the introduction emphasizes the importance of heterogeneous systems, but the experiments do not include evaluations on such setting.
The paper only compares against its baseline framework, KernelAgent. However, the introduction mentions several LLM-based kernel agents and claims that they degrade when moving to double-backward targets, yet no experimental evidence is provided to support this claim. These cited baselines need to be include in the evalutions.
The paper only compares against its baseline framework, KernelAgent. As mentioned in introduction, there are several LLM-based kernel agent, and the paper indicate these baselines degrades when moving to double-backward targets, but without providing any experimental results. Moreover, I would like to see figure 1 with abalations, so we can clearly see the added value for each method from KernelAgent to Verigrad, also include the error bars.
Questions
-
What limit Verigrad from only supporting GPU given that the baseline KernelAgent also support XPU.?
-
Can authors include evaluations on different hardware, especially given the paper's emphasis on hardware-guided refinement?
-
Can authors include ablation studies for Figure 1? This would make it clearer how much each component contributes when moving from KernelAgent to VeriGrad. These ablations should also include error bars.
Limitations
yes
Final justification
My major concern remains the evaluation-heavy nature of the work and the lack of sufficiently thorough evaluation in the original submission. I acknowledge that the authors provided promising additional evaluation results in the rebuttal and proposed a reasonable revision plan. However, the fact that such a substantial amount of additional evaluation could be conducted within a short period reinforces my concern that these results should have been included in the initial submission.
Moreover, the proposed claim revisions and the additional discussion needed to contextualize the newly added evaluations are not available for review at this stage. The new results represent about a 200% increase over the amount of evaluation presented in the original submission, making them substantive rather than incremental revisions.
I consider the work promising. However, given that a substantial portion of the eventual paper, potentially more than 60% of the evaluation and associated discussion, cannot be properly assessed during the current review phase, I do not believe the rebuttal fully resolves my original concerns. Therefore, I maintain my current rating.
Formatting concerns
The in-text citation format needs to be fixed.
Several API, such as jvp, atol, and rtol, are common, but they still need to be clearly defined, referenced, or specified.
Table captions should be placed below the tables, according to the formatting guide.
4 comments
I appreciate the authors' detailed response, which addresses my questions regarding error bars, cross-hardware evaluation, additional LLM-based kernel-agent baselines, and the requested ablation.
However, this is an evaluation-heavy submission, and the substantial amount of new experimental results obtained during the short rebuttal period further suggests that a more complete evaluation could have been presented initially. Moreover, incorporating these results would require substantial revisions to the experimental section, figures, tables, and associated claims. This goes beyond a limited clarification or an addition to the appendix and would materially change the paper being evaluated.
Thus, I prefer to maintain my current rating. However, I would be willing to reconsider if the authors can provide a concrete revision plan explaining how these new experiments will be integrated into the main paper, which claims will be revised in light of the results, and how the complete evaluation protocol and statistical significance analysis will be presented. The authors should also consider reporting total GPU-hours, in addition to wall-clock time, to provide a clearer amount of compute resource needed.
Concrete Revision Plan
We sincerely thank Reviewer XD7A for the thoughtful follow-up and for recognizing that our rebuttal addressed the concerns regarding error bars, cross-hardware evaluation, additional LLM-based kernel-agent baselines, and ablation studies.
We agree that, for an evaluation-heavy systems paper, these evaluation dimensions should be integrated into the main paper rather than presented as isolated rebuttal analyses. Therefore, we will reorganize and expand the evaluation section into the following unified evaluation plan (newly added components are highlighted).
Evaluation Plan for the Revised Paper
Evaluation Setup and Statistical Protocol (expanded)
We will add a unified evaluation protocol section covering:
- hardware/software configurations;
- workload counts and benchmark composition;
- LLM backend, generation/refinement budget;
- baseline implementation details;
- random seeds and measurement methodology.
For stochastic generation experiments, we will report mean ± standard deviation, visible error bars, and per-seed variance. For performance experiments, we will report repeated-run averages and statistical variation.
In addition to wall-clock time, we will report both per-stage and total GPU-hours for kernel generation, refinement, and benchmark evaluation.
Experiment 1: Motivation — Existing Kernel Agents on High-order Derivative Generation (expanded)
Goal: Validate the motivation of VeriGrad: representative kernel agents become less reliable as workloads move from forward to backward and double-backward derivatives.
Methods:
- KernelAgent;
- AutoTriton;
- KernelFalcon.
Workloads: Forward, backward, and double-backward derivative targets under the same derivative-lift protocol.
Metrics: Generation success rate with mean ± standard deviation across independent seeds.
Presentation: The current Figure 1 will be expanded into a multi-baseline comparison with visible error bars. This experiment will demonstrate that higher-order derivative generation introduces additional challenges and that VeriGrad improves generation reliability.
Experiment 2: Contribution Analysis of VeriGrad Components (expanded)
Goal: Provide a more complete analysis of how each component contributes to VeriGrad.
The submitted paper already includes semantic-lifting ablation on the MatRIS generation suite. We will expand this analysis into a component-level evaluation.
Settings:
Starting from KernelAgent, incrementally add:
- derivative-aware semantic lifting;
- task-level composed-artifact verification;
- structured verifier feedback;
- full VeriGrad.
Metrics: Generation success rate, refinement rounds, and generation cost.
Presentation: We will add a component-level ablation table/figure with mean ± standard deviation. This isolates the contribution of C1 (semantic lifting) and C2 (task-level verification).
Experiment 3: Hardware-guided Refinement Evaluation (expanded with cross-hardware validation)
Goal: Evaluate whether verifier-preserving refinement remains effective across hardware platforms.
Hardware:
- RTX 3090;
- A100;
- A800;
- H100.
Evaluation unit: MatRIS derivative operator suite.
Comparison: First verifier-passing artifact versus refined artifact.
Metrics: Operator latency and speedup over PyTorch eager.
Presentation: We will add a cross-hardware table reporting pre-refinement and post-refinement performance separately. This directly evaluates C3: verifier-preserving hardware refinement.
Experiment 4: End-to-end MatRIS Evaluation (existing, revised presentation)
We will retain the existing MatRIS training and inference evaluation, while adding statistical reporting and consistent compute-resource accounting.
Workloads: MatRIS-10M-OAM and MatRIS-10M-MP across energy, energy-force, and full derivative workloads.
Metrics: End-to-end latency and speedup over PyTorch eager and torch.compile.
Claim Revisions
Based on the expanded evaluation, we will revise claims as follows:
-
Kernel-agent limitation:
The claim will be scoped from a broad statement about LLM kernel agents to representative evaluated agents and derivative workloads. -
Workload/model generality:
Claims about generality will be aligned with the evaluated MLIP families and derivative tasks. -
Statistical claims:
All quantitative claims will include evaluation protocol, seed numbers, and variance reporting.
We appreciate the reviewer’s feedback. This revision plan integrates the expanded evaluations into the main paper structure and makes the evaluation methodology, claims, and statistical analysis more precise and reproducible.
Dear Reviewer XD7A, I hope this message finds you well. As the discussion period is nearing its end, I wanted to ensure we have addressed all your concerns satisfactorily. If there are any additional points of feedback you’d like us to consider, please let us know. Your insights are invaluable to us, and we’re eager to address any remaining issues to improve our work.
Thank you for your time and effort in reviewing our paper.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces VERIGRAD, a verification-driven multi-agent system for generating GPU kernels for derivative-heavy scientific ML workloads, with a focus on high-order derivatives in machine learning interatomic potentials (MLIPs).
The proposed system asks the user to provide a high-level derivative task, such as energy, force, or Hessian-vector product targets. VERIGRAD then lifts this task into a derivative-aware intermediate representation that records derivative roles, AD phases, tensor bindings, cross-phase saved tensors, and reconstruction rules. LLM synthesis agents generate kernels for the resulting units, and an execution-based task-level verifier checks the assembled artifact against eager PyTorch autograd. A separate refinement stage then tunes verified kernels for performance, but only accepts changes that continue to pass the same derivative verifier.
The main design is organized around three challenges: making derivative semantics explicit, accepting generated kernels only through a composed-artifact verifier, and preserving correctness during hardware-guided optimization. The evaluation combines a correctness-oriented KernelBench study of backward and double-backward derivative lifts, an ablation showing that semantic lifting improves MatRIS generation success, and end-to-end MatRIS training/inference measurements showing speedups over eager PyTorch autograd.
Strengths and weaknesses
The paper is technically solid and addresses a real problem: current LLM kernel-generation systems are much less convincing when the target is a derivative artifact rather than a forward operator. The C1/C2/C3 structure is useful, and the system design follows it closely: semantic lifting makes derivative roles explicit, the verifier accepts the composed derivative artifact rather than isolated local tensors, and the refinement loop only keeps optimizations that preserve verifier success.
The evaluation has several strengths. The KernelBench derivative-lift experiment gives evidence that the issue is not only an MLIP artifact; backward and double-backward targets are generally harder for KernelAgent-style systems. The MatRIS experiments are also valuable because they show end-to-end speedups rather than only microbenchmarks, and the semantic lifting ablation is a good attempt to isolate the value of the derivative-aware representation.
My main concern is that the evaluation story is not fully transparent. Figure 1 reports generation success rate on KernelBench derivative lifts, but does not discuss whether the successful generated artifacts are faster than eager PyTorch or torch.compile. The speed narrative is instead mostly carried by the MatRIS experiments. This split is understandable, but it should be made more explicit because otherwise the reader may over-interpret a correctness success-rate plot as evidence of performance.
The paper is understandable, but the clarity is only acceptable rather than excellent. It bridges two communities: scientific ML/MLIP derivatives and LLM-based kernel agents. Because of that, more care is needed in defining terms and walking through the system. The paper uses many acronyms and compact technical terms before the full picture is easy to hold in mind. The running example is helpful, especially the distinction between a high-level DerivativeTask, the derivative-aware IR, and the generated kernels. However, I would have benefited from seeing, or being pointed to, a small worked example earlier: a task such as energy/force/HVP, the corresponding IR units, and the exact verifier checks.
The significance is good, but I view it as capped by scope and transparency. Conceptually, the paper is broader than the title suggests: the core idea of verifying the composed derivative artifact rather than local tensor outputs should apply to many autograd-heavy workloads where LLM kernel agents must handle backward or double-backward targets. Figure 1 on KernelBench derivative lifts supports this broader systems claim. At the same time, the strongest end-to-end evidence is concentrated in MLIP-style workloads, especially MatRIS. This is a meaningful domain, and 1.33-1.55x speedups over eager PyTorch autograd are potentially useful for scientific ML users. The cross-family results on MACE-style and NequIP/Allegro-style models help show that the result is not MatRIS-specific. However, the current implementation is scoped to first- and second-order energy-induced derivatives with stable reference execution.
The paper's originality is good. It does not invent LLM kernel generation, automatic differentiation, or execution-based verification from scratch. Rather, its contribution is in changing the unit of work and the unit of acceptance for kernel agents. This combination of derivative-task specification, derivative-aware IR, task-level verifier, and verifier-preserving refinement is a useful and original systems design. Overall, I am positive on the direction and think the paper is a solid systems contribution.
Questions
Could the authors provide more transparency on generation cost and baseline handling? In particular, it would be helpful to report the wall-clock/token cost for the Figure 1 KernelBench experiments, clarify more prominently how KernelAgent failures are treated in latency comparisons, and, if feasible, include at least one experiment with an open or more widely accessible model backend. This would help separate the value of VERIGRAD's system design from the strength of the GPT-5.4 xhigh backend.
Could the authors clarify how robust the accepted artifacts are outside the sampled verification inputs, especially under changes in molecule size, neighbor-list structure, sparsity pattern, or boundary conditions? This would help readers understand whether verifier success should be interpreted as task-level empirical validation, or as evidence of broader correctness across MLIP workloads.
Could the authors clarify the failure cases among the remaining unsuccessful generations? For the MatRIS suite and cross-family MLIP experiments, what fraction of failures come from synthesis errors, verifier failures, performance refinement failing to improve latency, etc.? This would make the scope and bottlenecks of the system clearer.
Limitations
No. The paper does include a brief scope discussion, but I do not think the limitations are adequately addressed in proportion to the claims. I would like the authors to more explicitly separate the conceptual generality of the framework from the current instantiation: the core idea appears broadly relevant to derivative kernel generation, but the implementation and strongest end-to-end results are concentrated on first- and second-order energy-induced MLIP derivatives with stable representative inputs and MLIP-specific verifier hooks.
Final justification
The rebuttal addressed my main concerns by explaining baseline failure handling and generation costs, and appropriately scoping verifier success as task-level empirical validation rather than universal correctness. The added failure analysis and planned robustness evaluation further strengthen the paper’s transparency.
Given the derivative-aware representation, verifier-gated generation, semantic-lifting ablation, and end-to-end speedups across multiple MLIP families, I retain my score of 4: Borderline Accept. The remaining limitations are mainly about implementation scope and presentation rather than the validity of the central contribution.
Formatting concerns
None
2 comments
Rebuttal
We sincerely appreciate Reviewer nUvA for recognizing that our work "is technically solid and addresses a real problem" for derivative artifacts. We address the concerns on evaluation transparency, robustness, failure attribution, clarity, and limitations below.
Response to Weaknesses
W1: Figure 1 Should Not Be Over-Interpreted as Performance Evidence
Figure 1 reports generation success rate on KernelBench derivative lifts, but does not discuss whether the successful generated artifacts are faster than eager PyTorch or torch.compile.
We agree. Figure 1 is a correctness/generation-success study for backward and double-backward KernelBench lifts, not a speedup claim. Runtime evidence is provided by the MatRIS end-to-end and cross-baseline experiments, where artifacts are integrated into derivative workloads and compared with eager PyTorch, torch.compile baselines. Figure 1 wants to emphesis exsiting kernel agent fails to generate high order derivative kernels. We will revise the Figure 1 caption/text accordingly and add a small latency/coverage appendix for successful KernelBench derivative-lift artifacts, reporting latency only on the common-success subset and failure/coverage separately.
W2: Need an Earlier Worked Example and Clearer Terminology
I would have benefited from seeing ... a small worked example earlier: a task such as energy/force/HVP, the corresponding IR units, and the exact verifier checks.
We agree and will add an early worked example: a concrete DerivativeTask with energy/force/HVP targets, the derived IR units, and the verifier checks used before accepting the Triton artifact. We will also define acronyms at first use and add a terminology table mapping DerivativeTask, IR unit, AD phase, saved tensor, reconstruction rule, verifier hook, and generated kernel.
Response to Questions
Response to Q1
Could the authors provide more transparency on generation cost and baseline handling?
We agree that generation cost should be separate from steady-state latency. We analysis 100 generation traces:
| Historical trace audit | Value |
|---|---|
| Unique generation logs | 100 |
| API responses | 50 |
| Total tokens per request, min | 918 |
| Total tokens per request, median | 12,447 |
| Total tokens per request, mean | 12,118.9 |
| Total tokens per request, max | 29,401 |
| Median prompt tokens per request | 10,632 |
| Median completion tokens per request | 1,257 |
| Representative trace | Calls | Total tokens | Prompt tokens | Cached prompt tokens | Completion tokens | Wall-clock |
|---|---|---|---|---|---|---|
| Single-call MatRIS generation | 1 | 13,238 | 11,981 | 11,776 | 1,257 | ~25 s |
| Larger refinement trace | 13 | 179,732 | 162,814 | 11,008 | 16,918 | ~5 min 47 s |
These are audit numbers, not a substitute for the finalized Figure 1 protocol. In the revision, we will report Figure 1 wall-clock/tokens/calls/success under a common logging protocol. KernelAgent failures will be marked failure/N.A.; latency averages will use only verifier-passing artifacts on the common-success subset, with failure/coverage reported separately. We will also add one open-source or more accessible backend to separate system design from GPT-5.4 xhigh strength.
Response to Q2
Could the authors clarify how robust the accepted artifacts are outside the sampled verification inputs?
We agree that verifier success is not a proof of universal correctness over all molecule sizes, neighbor-list conventions, sparsity patterns, or boundary conditions. VERIGRAD gives bounded empirical acceptance scoped by the declared DerivativeTask: tensor bindings, derivative roles, symbolic shape variables, neighbor-list layout, boundary metadata, reconstruction rules, tolerances, and enabled hooks.
Accepted Triton artifacts are not tied to one fixed input: kernels use runtime extents, masks, and symbolic shapes. However, semantic changes such as new neighbor-list formats, periodic wrapping rules, sparsity layouts, non-differentiable cutoffs, or boundary conventions are outside the contract unless included in the descriptor and verification set. In such cases, VERIGRAD should re-verify or regenerate/refine the artifact.
We will add a robustness appendix covering atom/batch sizes, neighbor-list density/order, boundary conventions, and numerical edge cases. We will phrase the guarantee as task-level verifier-gated empirical acceptance, not formal correctness over all molecular systems.
Response to Q3
Could the authors clarify the failure cases among the remaining unsuccessful generations?
We agree and will add a failure-breakdown table. Historical MatRIS second-derivative traces show:
| Trace audit | Count |
|---|---|
| Run summaries: total / full success / partial failure | 32 / 14 / 18 |
| Partition records: total / success / failure | 99 / 78 / 21 |
| Failed terminal stages: forward / backward / second-backward | 2 / 16 / 3 |
| Successful repair rounds: 1 / 2 / 4 / 6 / 8 / 10 | 58 / 11 / 5 / 2 / 1 / 1 |
These traces include development reruns, so final percentages will use the finalized workload-seed protocol. We will classify failures as synthesis/compile, verifier/semantic, performance-refinement, and timeout/infra failures.
| Suite | Failed workload-seed pairs | Synthesis / compile | Verifier / semantic | Performance refinement | Timeout / infra |
|---|---|---|---|---|---|
| MatRIS kernel suite | 12 / 99 | 2 | 9 | 1 | 0 |
The qualitative takeaway is that failures are not dominated by trivial forward syntax errors; they concentrate in backward/second-backward derivative partitions, motivating task-level semantic verification.
Discussion of Limitations
I would like the authors to more explicitly separate the conceptual generality of the framework from the current instantiation.
We agree. Conceptually, VERIGRAD is not MatRIS-specific: it represents a derivative workload as a DerivativeTask, exposes derivative roles/saved tensors/reconstruction rules/hooks, and accepts/refines kernels only through a task-level derivative verifier.
However, the strongest current evidence is narrower: first- and second-order energy-induced MLIP derivatives, stable representative inputs, and MLIP-specific hooks such as force-energy consistency, Hessian/HVP consistency, stress/virial checks, and equivariance checks. MACE-style and NequIP/Allegro-style results show the protocol is not MatRIS-only, but still within MLIP derivatives.
We will revise the abstract, introduction, and limitations to state this scope explicitly: VERIGRAD provides task-scoped empirical acceptance, not a formal proof over arbitrary molecule sizes, neighbor-list conventions, boundary conditions, sparsity patterns, or derivative structures. We will also list current limitations: dynamic neighbor construction, non-differentiable cutoffs/branches, broad shape polymorphism, full dense Hessians for very large systems, derivative orders beyond evaluated first/second-order paths, and domains lacking stable reference execution or meaningful task hooks.
Summary
We will clarify Figure 1, separate generation cost from latency, make KernelAgent failure handling explicit, scope verifier success as empirical task-level validation, add a worked example, and strengthen limitations.
comment
Dear Reviewer nUvA, I hope this message finds you well. As the discussion period is nearing its end, I wanted to ensure we have addressed all your concerns satisfactorily. If there are any additional points of feedback you’d like us to consider, please let us know. Your insights are invaluable to us, and we’re eager to address any remaining issues to improve our work. Thank you for your time and effort in reviewing our paper.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Verigrad introduces a multi-agent kernel writing system specific to the higher-order derivatives used in machine learning interatomic potentials, whose higher order gradients exert a lot of computational pressure on the backwards pass of the model. To this end the authors introduce the DerivativeTask, and a corresponding IR abstraction. Generated kernels are then refined while verifying at all stages of refinement, that the produced kernel is correct. The system manages to produce a 33%-55% speedup over PyTorch eager on selected architectures on a single GPU.
Strengths and weaknesses
Strengths:
- The paper's topic is timely, and its targeted class of architectures (MLIPs) are well-scoped as a potential target with substantive speedups with the presented approach.
- The novel DerivativeTask, and associated IR formulation give rise to a genuinely novel abstraction which has the opportunity to encapsulate a much broader class of derivative-synthesization problems beyond the narrow scope of MLIP-class problems.
Weaknesses:
- While the author's results on a single consumer GPU are highly indicative of good performance, it would be important to run the setup also on a datacenter/professional GPU to derisk the results from only appearing on the consumer arch. Especially a rerun of the exact same study on a datacenter GPU like an H100 for example, and then running both experimental studies at a number of seeds would strengthen the paper's evaluation considerably.
- The work is not set in relation to the contemporary ProofWright work, as well as the 'Equivalence Checking of ML GPU Kernels' work. Both paper's have already introduced versions of the kernel verification step previously, as such this paper should be set in relation to these other 2 works to be able to make its claims more precise and to not overstate its own claim to novelty.
- The reviewer cannot refrain from asking, whether torch eager / compile are the right baselines in this context? For the results to be more trustworthy, and to be able to place them in a better context, I would encourage the authors to add the theoretical maximum performance to the result plots to evaluate the performance of the generated kernels against the theoretical maximum, not just a comparative claim against the potentially suboptimal Eager/Compile kernels.
Questions
- In practice, the algorithm's tested in the paper are not run on one GPU customarily, do the authors have a plan or intuition how they seek to handle synthesis and the successive refinement over communication boundaries and potentially including the optimization of communication patterns too?
- Do the authors have an intuition on potential improvements to the refinement procedure to become more token-efficient
- Have the authors produced a study where the x-axis is increasing complexity of the kernels / structures to be differentiated, and the y-axis is the amount of tokens used by GPT 4.4? Having such plot would add quite a bit more depth to the paper in the reviewer's opinion.
Limitations
yes
Formatting concerns
None
3 comments
Rebuttal
We sincerely thank Reviewer DDXh for recognizing that VeriGrad targets a timely, well-scoped MLIP problem with substantive speedups. Your comments identify four concrete ways to make the paper stronger: broader hardware validation, clearer positioning against recent verification work, hardware-limit context beyond PyTorch baselines, and more transparent generation cost. We address each point below and will incorporate these changes in the revision.
Response to Weaknesses
Response to W1
The results are on a single consumer GPU; rerunning on datacenter/professional GPUs such as H100 and with multiple seeds would strengthen the evaluation.
We agree. We have now run the same MatRIS operator-generation/refinement protocol on RTX 3090, A100, A800, and H100, with the same generation budget, verifier acceptance criteria, and three backend seeds.
| GPU | Evaluation unit | Pre-refine speedup vs eager | Post-refine speedup vs eager | Seeds |
|---|---|---|---|---|
| RTX 3090 | MatRIS operator suite | 1.18–3.93× | 1.29–6.85× | 3 |
| A100 | MatRIS operator suite | 1.07–3.68× | 1.21–6.45× | 3 |
| A800 | MatRIS operator suite | 1.06–3.66× | 1.21–6.46× | 3 |
| H100 | MatRIS operator suite | 1.21–4.07× | 1.32–6.56× | 3 |
Pre-refine is the first verifier-passing artifact; post-refine is the fastest artifact accepted after verifier-preserving refinement. These results show that the gains are not specific to one consumer GPU, and we will add them to the revision.
Response to W2
The work should be set in relation to ProofWright and Equivalence Checking of ML GPU Kernels.
Thank you for pointing this out. We will add ProofWright [3] and Equivalence Checking of ML GPU Kernels / VOLTA [4] to Related Work and clarify our novelty claim.
Our claim is not that GPU-kernel verification itself is new. ProofWright studies agentic formal verification of LLM-generated CUDA kernels, and VOLTA studies equivalence checking for ML GPU kernels. VeriGrad is complementary: it focuses on what is verified for high-order derivative workloads. In VeriGrad, acceptance is defined over the composed DerivativeTask artifact, including derivative roles, AD-phase boundaries, saved tensors, sign conventions, reconstruction rules, and energy/force/HVP consistency against reference autograd execution.
We will revise the paper to position ProofWright and VOLTA as stronger per-kernel verification backends that could be integrated into VeriGrad, while VeriGrad supplies the derivative-task specification, derivative-aware IR, and cross-phase composed-artifact verifier needed by MLIP derivative paths.
Response to W3
Eager/compile may not be the right baselines; please compare against theoretical maximum performance.
We agree that PyTorch eager and torch.compile are practical user-facing baselines, not hardware upper bounds. We will separate two claims in the revision: practical speedup over PyTorch execution paths, and remaining distance to hardware limits.
Concretely, we will add roofline/SOL-style profiling for representative generated kernels, reporting latency, achieved bandwidth, DRAM SOL, SM SOL, occupancy, and bottleneck class. This will show when VeriGrad is near bandwidth/compute limits and when further optimization headroom remains.
Responses to Questions
Response to Q1
How would VeriGrad handle synthesis/refinement across multi-GPU communication boundaries, including communication-pattern optimization?
The generated Triton kernels are per-device kernels and can already be used inside multi-GPU MLIP training/inference as local compute kernels on each rank. In the current system, distributed communication remains outside the generated kernel and is handled by PyTorch/DDP/NCCL or the domain-decomposition runtime.
The natural extension is to make communication boundaries explicit in DerivativeTask: owned/ghost atoms, halo exchanges, neighbor-list ownership, cross-rank reductions, and derivative quantities that must remain consistent across ranks. VeriGrad can then synthesize rank-local derivative kernels and verify the composed distributed artifact against a reference execution over representative decompositions.
For communication optimization, we plan to expose pack/unpack kernels, halo layout, reduction placement, and compute/communication overlap as refinement choices. The verifier would still gate each candidate, while the objective would include both local kernel latency and communication overhead.
Response to Q2
How can the refinement procedure become more token-efficient?
We agree that generation cost should be reported separately from steady-state kernel latency. In the 33-operator MatRIS accounting, semantic lifting reduces mean repair/refinement rounds from 4.20 to 2.48 and token usage from 73.2K to 48.6K tokens per successful operator, a 34% token reduction. This shows that explicit derivative semantics are already a token-efficiency mechanism.
| Setting / trace | Calls or rounds | Total tokens | Takeaway |
|---|---|---|---|
| Single-call MatRIS trace | 1 call | 13.2K | direct synthesis |
| With semantic lifting | 2.48 mean rounds | 48.6 ± 5.2K | current VeriGrad |
| Without semantic lifting | 4.20 mean rounds | 73.2 ± 8.9K | ablation |
| Hard refinement trace | 13 calls | 179.7K | long-tail case |
We see three improvements. First, use patch-based refinement after verifier acceptance, sending only the profiler/verifier summary, relevant IR slice, and requested diff. Second, modularize and compress static context such as DerivativeTask, Triton rules, and common MLIP derivative patterns, following prompt-compression ideas [1]. Third, replace raw profiler logs with compact bottleneck records, e.g., memory-bound/high DRAM SOL/low occupancy plus a constrained tuning action. This is consistent with iterative code self-debugging using compact execution feedback [2].
Response to Q3
Have the authors produced a plot where x-axis is kernel/structure complexity and y-axis is token usage?
Not in the submitted version, but we agree this would make the generation-cost story clearer and will add it. The x-axis will use derivative-aware complexity bins: number of IR units, number of AD phases, number of cross-phase saved tensors, and target type (forward/backward/double-backward). The y-axis will report prompt+completion tokens until verifier acceptance, averaged over backend seeds, with failed runs marked separately.
Current logs already show the expected trend: simple one-call cases use about 13.2K tokens, successful semantic-lifting runs average 48.6 ± 5.2K, removing semantic lifting increases this to 73.2 ± 8.9K, and hard refinement traces can reach 179.7K. We will turn this accounting into a complexity-vs-token plot in the appendix.
Response to Limitations
We will expand the limitations section to separate the framework from the current implementation. VeriGrad's framework applies to derivative-task generation where correctness depends on composed forward/backward/higher-order semantics. The current implementation and strongest end-to-end evidence are concentrated on first- and second-order MLIP derivatives, single-rank local kernels, and representative verification inputs. Multi-GPU communication optimization, stronger formal verifier backends, and broader out-of-distribution verifier coverage are important extensions, not claims already solved by the submitted system.
Summary
We will strengthen the paper by adding multi-seed datacenter-GPU results, positioning ProofWright/VOLTA as complementary verification work, adding roofline/SOL analysis against hardware limits, and reporting token cost as a function of derivative workload complexity. These changes make the scope, baselines, and cost story more precise while preserving the core VeriGrad claim.
References
[1] Jiang et al. LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models. EMNLP 2023. https://arxiv.org/abs/2310.05736
[2] Chen et al. Teaching Large Language Models to Self-Debug. ICLR 2024. https://arxiv.org/abs/2304.05128
[3] Chatterjee et al. ProofWright: Towards Agentic Formal Verification of CUDA. Preprint, 2025. https://arxiv.org/abs/2511.12294
[4] Dubey et al. Equivalence Checking of ML GPU Kernels. Preprint, 2025. https://arxiv.org/abs/2511.12638
Thank you for the Clarification
I thank the authors for their thoughtful answers to my open questions, and concerns. They have been addressed in their entirety.
I remain wholly in favor of accepting your timely work and will keep my score of 5.
Dear Reviewer DDXh,
I hope this message finds you well. Thank you once again for recognizing our contribution and for your valuable feedback. If you have any additional questions or suggestions, please don’t hesitate to let us know. Your feedback is greatly appreciated and truly invaluable to us!
Best wishes, Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We sincerely appreciate Reviewer XD7A for recognizing that the paper "provides detailed technical descriptions of the method and experimental setup with source code, which improves the reproducibility." Your comments identify several concrete ways to make the evaluation more convincing: visible error bars, cross-hardware validation, broader LLM-kernel-agent baselines, and clearer ablations for Figure 1. We address these points below and will incorporate the corresponding revisions.
Response to Weaknesses
Response to W1:
Thank you for raising this. We agree that the main paper should make variance more visible. The submitted appendix already reports multi-seed variance for the MatRIS operator suite ablation: semantic lifting improves success from 72.4 ± 3.1% to 88.5 ± 2.4%, reduces mean rounds from 4.20 ± 0.34 to 2.48 ± 0.15, reduces wall-clock cost from 467 ± 52 s to 312 ± 28 s, and reduces token cost from 73.2 ± 8.9K to 48.6 ± 5.2K.
We will move the most relevant error-bar information into the main evaluation and add visible mean ± std error bars to Figure 1 and the MatRIS ablation table. We will also explicitly state the number of backend seeds and workload counts used for each reported statistic.
Response to W2:
We agree that this should be strengthened. The submitted evaluation used RTX 3090 as the primary hardware platform, which was sufficient to validate the derivative-aware generation pipeline but not sufficient to support the hardware-guided refinement discussion. We have now run cross-hardware experiments on RTX 3090, A100, A800, and H100, and report pre-refine and post-refine speedups separately so that the effect of the refinement stage is directly visible. The table and protocol are given in Response to Q2.
Response to W3:
Thank you for pointing this out. We agree that the comparison should more clearly separate benchmark suites from runnable LLM-kernel-agent baselines, and should provide direct evidence for the degradation on backward and double-backward targets.
In the cited works, KernelBench and TritonBench are benchmark suites rather than agent baselines. Among runnable agent systems, AutoTriton is open-source, while GEAK does not provide a directly reproducible open implementation. KernelFalcon and KernelAgent are closely related; KernelAgent builds on the KernelFalcon line, which is why the submitted version used KernelAgent as the primary baseline. To address the reviewer's concern, we will add AutoTriton and KernelFalcon to the derivative-lift evaluation under the same forward/backward/double-backward protocol.
The new results show the expected degradation as the target moves from forward kernels to backward and double-backward kernels:
We will include these additional baselines in the revised evaluation and clarify the introduction accordingly: our claim is not that every existing agent fails, but that derivative targets become systematically harder as cross-phase saved tensors, reconstruction rules, and second-order bindings enter the generation problem. VERIGRAD is designed to address this difficulty through derivative-aware IR, composed-artifact verification, and verifier-preserving refinement.
Response to Questions
Response to Q1
VeriGrad is not conceptually limited to CUDA. Its generated implementation target is Triton rather than CUDA. Therefore, VeriGrad can in principle target any backend supported by the Triton/PyTorch stack, including Intel XPU through the Triton XPU backend.
We will clarify this distinction in the paper: XPU support follows naturally from VeriGrad's Triton code-generation target and does not require a new derivative IR, so VeriGrad can support XPU when the target operations are covered by the Triton/PyTorch XPU stack.
Response to Q2
Thank you for this suggestion. Since this question targets hardware-guided refinement, the most relevant unit is the 33-operator MatRIS generation/refinement suite, rather than only the twelve end-to-end MatRIS workloads. We have now run cross-hardware operator-level experiments on RTX 3090, A100, A800, and H100 under the same generation budget, backend-seed protocol, and verifier acceptance criteria.
Here,
pre-refinedenotes the first verifier-passing artifact, whilepost-refinedenotes the fastest artifact accepted after hardware-guided refinement. We will report the twelve-workload end-to-end MatRIS results separately from this operator-level table, because the table is intended to isolate whether verifier-preserving refinement remains effective across hardware platforms.Response to Q3
Thank you for the suggestion. We agree that Figure 1 should make the component-level contribution clearer. The submitted Figure 1 already used three independent backend seeds and reported the maximum per-cell standard deviation in the caption, but the error bars were not visually shown and the plot only compared the two endpoint systems.
We will revise Figure 1 to report mean ± std across seeds. We have also run a controlled ablation under the same GPT-5.4 xhigh backend, generation budget, repair-round cap, and KernelBench L3 double-backward workload:
This separates the contributions of C1 and C2 on the Figure 1 success-rate metric. We will keep C3, verifier-preserving hardware refinement, in the performance/refinement evaluation rather than Figure 1, because C3 starts after a candidate has already passed the derivative verifier and primarily affects latency rather than generation success. For C3, we report pre-refine versus post-refine speedups in the cross-hardware operator table requested in Q2.
For reference, the submitted Figure 1 endpoint results were already averaged over three seeds: backward L1/L2/L3 success rates are 100.0/100.0/98.5% for VeriGrad versus 98.7/94.2/92.3% for KernelAgent, and double-backward L1/L2/L3 are 97.5/94.1/88.2% versus 95.0/84.3/78.3%. We will expose the corresponding error bars directly in the revised plot.
Response to Paper Formatting Concerns
We thank the reviewer for pointing out the presentation issues. We will fix the in-text citation formatting in the camera-ready version, define common but potentially overloaded API terms at first use, and ensure that table captions follow the venue formatting guideline.
Concretely, we will define jvp, vjp, HVP, atol, and rtol when they first appear, and we will specify that atol and rtol are the absolute and relative numerical tolerances used by the task-level verifier. We will also move table captions to the required position and audit the paper for consistent notation across the method, evaluation, and appendix sections.
Summary
We will revise the paper along three concrete axes requested by the reviewer: (1) make variance visible by adding mean ± std error bars to Figure 1 and moving key multi-seed statistics from the appendix into the main evaluation; (2) add cross-hardware refinement results on RTX 3090, A100, A800, and H100 with pre-refine and post-refine speedups reported separately; and (3) expand the baseline/ablation discussion to include additional LLM-kernel-agent baselines and a component-level Figure 1 ablation. We will also fix the formatting issues, define common API terms such as
jvp,vjp,HVP,atol, andrtol, and correct table-caption placement.