KACoBench: Kernel-Algorithm Co-Optimization for Neural Network Inference
Abstract
Neural network inference can be accelerated through kernel--algorithm co-optimization. Algorithms determine what to compute, while kernel implementations determine how efficiently the computation runs. Evaluating LLM agents on this task requires specifying what they can optimize, what information they can use, and what quality their implementations must achieve. We introduce \textbf{KACoBench}, a benchmark for evaluating kernel--algorithm co-optimization under these conditions. KACoBench comprises 203 cases at three levels: models, modules, and local operations. Each case provides a problem definition and inputs that preserve numerical and structural properties. Agents can inspect these properties to guide algorithm and kernel design. Model-level cases primarily require comparable downstream task performance, while module and local-operation cases limit numerical error relative to reference outputs. We evaluate agents powered by five frontier LLMs, obtaining overall benchmark scores ranging from $2.42$ to $5.43$. Our case studies illustrate the benefits of kernel--algorithm co-optimization. In a Stable Diffusion submission from Seed-Evolving, co-optimization achieves greater speedup than changing either the algorithm or the kernel implementation alone. Project Page: this https URL
Additional Features