DataKernelBench: LLM은 GPU에서 데이터베이스 쿼리를 최적화할 수 있는가?
DataKernelBench: Can LLMs Optimize Database Queries on GPUs?
한국어 초록
GPU는 데이터베이스 시스템을 점점 더 많이 가속하고 있지만, 쿼리별 최고 성능은 여전히 직접 작성한 커널에 의존하는 경우가 많다. 기존 LLM 커널 벤치마크는 머신러닝 연산자에 초점을 맞추고 있어, 불규칙하고 이질적이며 데이터 이동 비중이 큰 데이터베이스형 연산자는 검증되지 않은 채 남아 있다. 본 논문은 SQL을 검증된 PyTorch TorchPlan 프로그램으로 변환하고, 실행 기반 수정(execution-guided repair)을 통해 텐서 연산으로 한정된 핵심 코드 조각 또는 전체 쿼리를 CUDA나 Triton으로 최적화하는 LLM을 평가하는 DataKernelBench를 소개한다. H100 GPU를 사용한 TPC-H SF10에서 상용 모델과 오픈 가중치 모델 10개를 평가한 결과, 가장 성능이 좋은 전체 쿼리 CUDA 구성은 통과율 100%에서 torch.compile 대비 $2.11\times$ 속도 향상을 달성했다. 성능이 높은 구현은 대체로 커널 융합(kernel fusion)과 실행 전략 변경을 사용하고, 더 강력한 모델일수록 전체 쿼리 특화의 이점이 가장 크며, 하드웨어 컨텍스트보다 워크로드 컨텍스트가 더 중요하다는 점을 확인했다. GPU 메모리보다 큰 데이터를 처리하기 위해, H100 GPU 4개를 사용한 TPC-H SF100에서 온디맨드 파티션 로딩을 위해 TorchPlan을 Dask-cuDF로 확장했으며, $2.54\times$ 속도 향상을 달성했다
원문 초록
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 torch.compile 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
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.25061v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.