Preprint
Aug 2026
DataKernelBench: Can LLMs Optimize Database Queries on GPUs?
DataKernelBench is introduced, which translates SQL into validated PyTorch TorchPlan programs and evaluates LLMs that optimize either the core tensor-bounded snippet or the full query in CUDA or Triton through execution-guided repair and finds that higher-performing implementations commonly use kernel fusion and execution-strategy changes, stronger models benefit most from full-query specialization, and workload context matters more than hardware context.
Gokul Karthik Kumar, Yotam Perlitz, Corey Lammie et al.
· 0 citations