Joint optimization
Rewrite algorithms and optimize the GPU kernels that implement them.
| Loading manuscript results… |
Results reproduce Table 2 of the paper. Each model is evaluated on all 203 cases. Each optimization run is limited to 2 hours and 100 agent turns; runtime is the median of 30 timed calls after warm-up.
Scores use hierarchical geometric means. A case contributes 1 if a required check fails or cheating is detected; valid case scores are floored at 1. Overall aggregates the three level scores. Pass rate is reported separately. Quality and speed are measured on evaluation inputs.
Table 10 repeats the Seed-Evolving experiments on a second GPU model. Each setting measures speedup against reference implementations on that same GPU. GPU models are not disclosed in the paper.
| Setting | L1 | L2 | L3 | Overall | Pass rate |
|---|---|---|---|---|---|
| Main experiments | 3.92 | 2.69 | 1.54 | 2.53 | 78.3% |
| Second GPU model | 4.62 | 3.78 | 2.39 | 3.47 | 78.3% |
Agents rewrite algorithms and GPU kernels to accelerate inference within quality bounds.
Rewrite algorithms and optimize the GPU kernels that implement them.
Use weights, activations and computational structure to find optimization opportunities.
Trade numerical precision for speed within task-performance or output-error bounds.
203 cases · 117 problems · 21 families
Matmul · Convolution · State recurrence
Attention · Expert mixtures · Decoder layers
Text summarization · Image generation · Speech recognition
L1 covers matrix multiplication, indexed computation, convolution and state recurrence, using model-derived shapes and generated values with specified properties. L2 covers attention, expert mixtures, SwiGLU networks and decoder layers, using weights, activations and state captured from model forward passes.
L3 spans 30 model–task combinations across text summarization, image generation, speech recognition and weather forecasting, including Qwen, Stable Diffusion, Whisper and Prithvi. Selected text workloads separate prefill, decode and joint execution.
Each case comes with a workspace containing the problem, submission interface, quality constraint and public inputs.

Most L3 cases allow at most 1% relative degradation in task performance; improvements are not penalized. L1 and L2 use relative output-error bounds calibrated with specified INT8 implementations.
Inspect inputs, revise the implementation and use self-check feedback on execution, runtime and quality.
Evaluate the highest-scoring self-check-passing version on evaluation inputs against the reference on the same hardware.
A separate agent reviews the code for evidence of cheating; confirmed violations update the case score.
@misc{zhan2026kacobench,
title = {{KACoBench}: Kernel-Algorithm Co-Optimization for Neural Network Inference},
author = {Heshen Zhan and Ziwei Zhu and Jiahao Li and Size Zheng and
Jialun Cao and Haorui Guo and Youhan Huang and Yufan Song and
Hanshi Sun and Ruoyu Sun},
year = {2026},
eprint = {2612.05286},
archivePrefix = {arXiv},
primaryClass = {cs.AI},
url = {https://arxiv.org/abs/2612.05286v1}
}