KKACoBench

Neural network inference

KACoBench

Can agents co-optimize algorithms and kernels?

PaperarXiv

Heshen Zhan1,2, Ziwei Zhu2, Jiahao Li1, Size Zheng1, Jialun Cao5, Haorui Guo2, Youhan Huang2, Yufan Song1, Hanshi Sun1, Ruoyu Sun2,3,4,†

Affiliations

1 ByteDance Seed
2 The Chinese University of Hong Kong, Shenzhen
3 China Shenzhen Loop Area Institute
4 SICIAM, Shenzhen Research Institute of Big Data
5 The Hong Kong University of Science and Technology

Results

Paper results
Higher score is better
KACoBench results from Table 2
Loading manuscript results…
How is the score computed?

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.

How does Seed-Evolving perform on a second GPU?

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.

Seed-Evolving scores on two GPU models
SettingL1L2L3OverallPass rate
Main experiments3.922.691.542.5378.3%
Second GPU model4.623.782.393.4778.3%

Benchmark

Agents rewrite algorithms and GPU kernels to accelerate inference within quality bounds.

Algorithm design determines kernel computation; kernel implementation determines actual speedup. KACoBench covers models, modules and local operations, with input properties guiding optimization and quality constraints bounding changes in results.
Click the figure to enlarge.

Joint optimization

Rewrite algorithms and optimize the GPU kernels that implement them.

Input-aware optimization

Use weights, activations and computational structure to find optimization opportunities.

Explicit quality budgets

Trade numerical precision for speed within task-performance or output-error bounds.

203 cases · 117 problems · 21 families

L1
Local operations

Matmul · Convolution · State recurrence

67 cases · 4 families
L2
Modules

Attention · Expert mixtures · Decoder layers

92 cases · 7 families
L3
Models

Text summarization · Image generation · Speech recognition

44 cases · 10 families
What inputs do agents receive?

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.

Harness & Evaluation

2 hours per optimization run100 turns maximum30 timed calls after warm-up

Each case comes with a workspace containing the problem, submission interface, quality constraint and public inputs.

The workspace feeds an agent and self-check feedback loop on public inputs. The highest-scoring passing version is evaluated on evaluation inputs and reviewed for cheating to produce quality, speedup and score.
Click the workflow to enlarge.
What quality loss is allowed?

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.

  1. Optimize & self-check

    Inspect inputs, revise the implementation and use self-check feedback on execution, runtime and quality.

  2. Evaluate quality & speed

    Evaluate the highest-scoring self-check-passing version on evaluation inputs against the reference on the same hardware.

  3. Review the submission

    A separate agent reviews the code for evidence of cheating; confirmed violations update the case score.

Citation

@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}
}