Megadose Built for builders and researchers.

KernelShift: Benchmarking Kernel Optimization Across Evolving Hardware

· HF Daily Papers ·
Coding agents beat compiler-optimized CPU kernels, but struggle with unfamiliar hardware features.

KernelShift tests agents on 99 kernels drawn from actively developed repositories, with feedback from target hardware. On established Arm extensions, agents achieved 2.4–19.8× speedups over auto-vectorized compiler output, but reached only 0.70× the performance of Arm’s hand-tuned KleidiAI kernels. Agent-written kernels also sped up prefill by 1.3–1.6× in end-to-end inference tests of two LLMs. Agents did not reliably adapt to newer features such as SME2’s matrix tiles, which require unfamiliar programming models.

HF Daily Papers' note

score 5

Categories: Research