KernelArc: A Multi-Agent Framework for GPU Kernel Optimization
Organizations: AILabs, Interuniversity Microelectronics Centre (IMEC)
Abstract
We present KernelArc, a multi-agent framework for autonomous GPU kernel optimization across heterogeneous workloads. Strategy-specialized agents run in parallel and coordinate through conclusions-only shared memory, a deterministic benchmark guard, and read-only cross-agent state with plateau-triggered drafting. We evaluate KernelArc on NVIDIA H100 and B200 GPUs using category-representative SOL-ExecBench workloads. The resulting implementations span custom BF16 GEMM, static cuBLASLt Expert-API configuration tables, fused mixture-of-experts backward, shape-gated decoder-layer fusion, native NVFP4 grouped-query attention, and paged prefill attention. In the public SOL-ExecBench leaderboard snapshot recorded on August~20, 2026, KernelArc ranked first on every representative L1, L2, Quantization, and FlashInfer task evaluated. The trajectories support the paper's central motivation: shared multi-agent search can broaden exploration and reach stronger incumbents within a fixed candidate budget, while the value of individual coordination features depends on the kernel and optimization stage.
Figures & tables
| Skill | Role |
|---|---|
| strat-library | cuBLASLt/cuDNN paths |
| strat-memory | coalescing, cache reuse |
| strat-compute | tensor-core use |
| strat-fusion | epilogue fusion |
| strat-precision | FP8/BF16 choices |
| strat-reduction | softmax, normalization |
| Tier | Curriculum Stage | Role in Campaign |
|---|---|---|
| 1 | Scalar warp-tiled CUDA baseline | Correct tiled starting point |
| 2 | WGMMA/TMA tensor-core pipeline | Main compute transition |
| 3 | Producer/consumer warp specialization | Overlap loads and compute |
| 4 | Persistent CTAs and raw mbarrier | Control residency and phases |
| 5 | Cluster-aware TMA multicast path | Shared-data reuse path |
| 6 | Epilogue and wait-depth refinements | Clean up completion path |
| Problem | vs. PyTorch reference | vs. optimized baseline |
|---|---|---|
| L1-030 | 1.40 | 1.06 |
| L2-025 | 291.44 | 1.13 |
| Quant-031 | 1327.04 | 43.79 |
| FI-014 | 61972.57 | 143.78 |
| Configuration | Speedup ( ) | Latency (ms) |
|---|---|---|
| Single | 142.6 [107.6, 190.8] | 0.0132 [0.0116, 0.0153] |
| Multi-bounded | 182.7 [144.5, 231.0] | 0.0092 [0.0076, 0.0113] |
| Multi-unbounded | 290.8 [197.3, 434.2] | 0.0085 [0.0057, 0.0130] |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
GPU Kernel Optimization
GPU kernel optimization improves the speed and memory efficiency of computations by tailoring code to GPU hardware and workloads.
See all 205 papers