AI 研究arXiv cs.LGSIGNAL 99E8FD

KernelMosaic: Open Dataset and Agentic Framework for CUDA Kernel Generation

ORIGINAL / KernelMosaic: An Open Dataset and Agentic Framework for CUDA Kernel Generation

This work releases KernelMosaic, an open dataset pairing diverse CUDA tasks with verified solutions and iterative trajectories, plus an agentic framework that generates correct and efficient CUDA kernels; its value lies in substantially raising kernel-generation accuracy via supervised fine-tuning of a small model and in offering a reusable pipeline for building such supervision.

01 ABSTRACT

The authors build KernelMosaic, an open dataset pairing CUDA tasks expressed as natural-language descriptions, reference programs, and mathematical specifications with verified solutions and optimization trajectories, using an agentic framework to guide a strong model through implementation, repair, and performance tuning. The reported facts: supervised fine-tuning a small open-source model on KernelMosaic raises correctness on KernelBench L1, L2, and L3 from 4%, 0%, and 0% to 88%, 82%, and 16%, and increases the fraction of tasks with kernels faster than PyTorch eager at every level. The authors' view is that supervision from curated trajectories substantially outperforms direct-response supervision and promotes sustained testing and revision.

02 KEY FINDINGS

  1. The dataset combines task specifications (natural language, reference programs, mathematical specs) with human-guided review and verified solutions plus optimization trajectories.
  2. The agentic framework uses reusable CUDA guidance and execution feedback to drive a strong LLM through implementation, correctness repair, and performance optimization.
  3. After supervised fine-tuning of a small model, KernelBench L1/L2/L3 correctness rises from 4%/0%/0% to 88%/82%/16%, and the share of kernels faster than PyTorch eager increases at every level.
Return to the primary source

AI GENERATED SUMMARY / DISCOVERED BY ARXIV CS.LG

Read original ↗