KACoBench: Kernel-Algorithm Co-Optimization for Neural Network Inference
Heshen Zhan, Ziwei Zhu, Jiahao Li, Size Zheng, Jialun Cao, Haorui Guo, Youhan Huang, Yufan Song, Hanshi Sun, Ruoyu Sun
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 to . 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: https://kacobench.github.io/
Create a lesson
Related papers
PTMO: Enable Neural Network for Elastic Matryoshka Inference at Low-Cost
Shared title terminologycs.AITianyi Chen, Christina Huang, Jiachen Sun et al.
DistillCast: On-Policy Preference Optimization via Self-Distillation for Precipitation Nowcasting
Shared title terminologycs.AIKaiyi Xu, Junchao Gong, Wenxiao Zhao et al.
ExAb-OPT: Reducing Exact-Payload Exposure in LLM-Based Optimization through Executable Abstraction
Shared title terminologycs.AIZezhen Ding, Tianlong Chen, Jiheng Zhang
Agent Memory Scaling Laws for Verified Trainium Kernel Generation
Shared title terminologycs.AISimran Kaur, Evan Becker, Benjamin Bowman et al.
Deeper in the Tropics: Transferable Neural Scheduling on Switched Max-Plus Models
Shared title terminologycs.AIBoussad Addad
Inferring cognitive profiles with cognition-conditioned deep inverse planning
Shared title terminologycs.AISounak Banerjee, Deepak Edakkattil Gopinath, Bonnie Yang et al.