Verigrad: Verification-Driven Multi-Agent GPU Kernel Generation for High-Order MLIP Derivatives
yao liu, Yuanchang Zhou, Hongtao Xu, Mingzhen Li
NeurIPS page · Open on the map
Category: LLM Agents, Evals & Benchmarks › GPU Kernel Optimization and Benchmarking · Type: new method · Keywords: high-order derivatives, GPU kernel generation, verification-driven, multi-agent systems, machine learning interatomic potentials, automatic differentiation
Summary
Verigrad is a verification-driven multi-agent harness that makes high-order derivative kernel generation a first-class workload, achieving 1.33-1.55× speedup over PyTorch eager in MLIP training and inference.
Explained to a 5-year-old
Scientists use computers to study how atoms and molecules behave. They need to know not only the current state but also how things change, which is called derivatives. Calculating these changes, especially for higher orders, can take a very long time. Existing computer programs try to make these calculations automatically, but they sometimes make mistakes. We created a team of small helpers that check each step and work together to make the calculations faster.
Explained to a 5-year-old, longer
Scientists use computers to study how atoms and molecules behave. They need to know not only the current state but also how things change, which is called derivatives. Calculating these changes, especially for higher orders, can take a very long time. Existing computer programs try to make these calculations automatically, but they sometimes make mistakes. We created a team of small helpers that check each step and work together. Each helper is responsible for a part of the calculation and verifies its work. If a helper finds a mistake, it asks for help and tries again. The helpers keep improving until they are sure everything is correct. This makes the calculations faster and more reliable. The faster calculations let scientists run more experiments in less time. It also saves energy because the computers don't have to work as hard. Overall, the new system helps scientists get answers quicker and more accurately.
For a technical reader
Verigrad introduces a multi-agent harness that decomposes high-order derivative kernel generation into verifiable contracts. An execution-based verifier checks each generated kernel and controls hardware-guided refinement, ensuring only correct kernels are used. The kernels are integrated into MatRIS, delivering 1.33-1.55× speedup over PyTorch eager for energy-only, energy--force, and full-derivative workloads.
Problem
Generating reliable high-order derivative kernels for machine learning interatomic potentials on GPUs is challenging because existing autonomous kernel agents generate kernels against local tensor references and do not handle cross-phase saved tensors and reconstruction rules across forward, backward, and higher-order automatic differentiation phases.
Method
The approach introduces a verification-driven multi-agent harness that exposes derivative semantics via a derivative-aware IR and decomposes the workload into verifiable kernel contracts. An execution-based derivative verifier validates generated artifacts and gates hardware-guided refinement, ensuring optimized kernels only replace earlier candidates when derivative checks continue to pass.
Results
The approach attains 1.33-1.55× end-to-end speedup over PyTorch eager across energy-only, energy--force, and full-derivative inference and training workloads.
Contributions
It introduces a verification-driven multi-agent harness that makes high-order derivative generation a first-class kernel-generation workload, exposes derivative semantics through a derivative-aware IR and verifiable kernel contracts, and integrates optimized kernels into MatRIS to achieve significant speedups.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction