paper-with-me

홈 › Papers

DataKernelBench: Can LLMs Optimize Database Queries on GPUs?

2026-08-25 · Gokul Karthik Kumar, Yotam Perlitz, Corey Lammie, Andrea Giovannini, Katja Hose arxiv

GPUs increasingly accelerate database systems, but query-specific peak performance still often relies on hand-written kernels. Existing LLM kernel benchmarks focus on machine learning operators, leaving irregular, heterogeneous, data-movement-heavy database-style operators untested. We introduce DataKernelBench, 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. Across ten proprietary and open-weight models on TPC-H SF10 with an H100 GPU, the strongest full-query CUDA configuration achieves $2.11\times$ speedup over the TorchPlan baseline at full pass rate. We find 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. To handle data larger than GPU memory, we extend TorchPlan with Dask-cuDF for on-demand partition loading on TPC-H SF100 with four H100 GPUs, achieving $2.54\times$ speedup. Project page: https://kerneldf.github.io/datakernelbench

📄 PDF Abstract BibTeX arXiv:2608.25061

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Performance of Small Language Model Pretraining on FABRIC: An Empirical Study

2026-02-02 · Praveen Rao arxiv

Large language models (LLMs) require enormous computing power to pretrain on massive datasets. When limited datasets are available, smaller-sized LLMs are better choice to pretrain (on user-specified datasets) by followi…

Are LLMs Overkill for Databases?: A Study on the Finiteness of SQL

2026-03-26 · Yue Li, David Mimno, Unso Eun Seo Jo arxiv

Translating natural language to SQL for data retrieval has become more accessible thanks to code generation LLMs. But how hard is it to generate SQL code? While databases can become unbounded in complexity, the complexit…

Code Generation

The Case for Instance-Optimized LLMs in OLAP Databases

2025-07-07 · Bardia Mohammadi, Laurent Bindschaedler arxiv

Large Language Models (LLMs) can enhance analytics systems with powerful data summarization, cleaning, and semantic transformation capabilities. However, deploying LLMs at scale -- processing millions to billions of rows…

Can LLMs substitute SQL? Comparing Resource Utilization of Querying LLMs versus Traditional Relational Databases

2024-04-12 · Xiang Zhang, Khatoon Khedri, Reza Rawassizadeh

Large Language Models (LLMs) can automate or substitute different types of tasks in the software engineering process. This study evaluates the resource utilization and accuracy of LLM in interpreting and executing natura…

ManagementNatural Language Queries

AgentNLQ: A General-Purpose Agent for Natural Language to SQL

2026-05-18 · Olena Bogdanov, Yeunji Jung, Chandra Dhir, Pareekshitreddy Gaddam 외 arxiv

Natural language to SQL (NL2SQL) conversion is an important problem for researchers and enterprises due to the ubiquitous importance of relational databases in broad-ranging practical problems. Despite the rapid advancem…