跳到正文
HuggingFace Daily Papers· Shuaiwei Huang, Weihua Du, Allen Wu, Ivan Fox, Manupa Karunaratne, Yiming Yang, Sean Welleck·· 4 天前AI 评分31

KernelShift:跨代CPU架构下内核优化的编码智能体基准测试

KernelShift: Benchmarking Kernel Optimization Across Evolving Hardware

AI 导读

KernelShift 是一套面向编码智能体的内核优化基准测试流程与环境,可将代码仓库转为基准实例,并让智能体在目标硬件反馈下优化代码。基于 ncnn、Arm SIMD Loops 和 KleidiAI 等活跃仓库构建了 99 个内核,覆盖 Arm Neon、SVE、SVE2、SME2 等逐步更新的架构扩展。

正文 · 原文

View PDF HTML (experimental)

Abstract:Efficient AI computation depends on hardware that evolves over time, shifting the strategies needed to implement performant code. For CPU kernels, a key evolving factor is the set of available architectural extensions, which expose specialized hardware instructions that change the techniques used to optimize kernels. We study how effectively coding agents use these new, potentially unfamiliar extensions to write fast code. We introduce KernelShift, a benchmarking pipeline and a set of environments for evaluating coding agents in kernel optimization across evolving CPU architectures. Its agent-assisted, human-verified pipeline turns code repositories into benchmark instances, and its environments let agents optimize code with feedback from the target hardware. Using this pipeline, we construct 99 kernels from real-world, actively developed repositories (ncnn, this http URL, Arm SIMD Loops, and KleidiAI), including inference workloads derived from real model executions. KernelShift supports incorporating new kernels and hardware configurations as libraries and processors evolve. We evaluate agents with proprietary and open-weight models across progressively newer architectural extensions (Arm Neon, SVE, SVE2, and SME2), examining how performance changes as hardware evolves. On established extensions, agents beat the auto-vectorized compiler everywhere (2.4-19.8x) and exceed general-purpose libraries such as ncnn (getting up to 2.74x over its Neon kernels), but fall behind Arm's hand-tuned KleidiAI kernels (0.70x). In end-to-end inference of two LLMs, agent-written kernels achieve a 1.3-1.6x prefill speedup over this http URL's fast path. However, current agents do not yet reliably adapt to new extensions that require unfamiliar programming models, such as SME2's matrix tiles.
Comments: 26 pages, 9 figures, 22 tables. Project page: this https URL
Subjects: Computation and Language (cs.CL); Artificial Intelligence (cs.AI); Machine Learning (cs.LG); Software Engineering (cs.SE)
Cite as: arXiv:2611.29590 [cs.CL]
  (or arXiv:2611.29590v1 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2611.29590

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Weihua Du [view email]
[v1] Sun, 22 Nov 2026 16:25:24 UTC (206 KB)

来源:HuggingFace Daily Papers · arxiv.org