EdgeKernelBench:面向边缘后端的统一大语言模型驱动的内核生成框架
EdgeKernelBench: Unified LLM-Driven Kernel Generation for Edge Backends
AI总结:
针对边缘部署中LLM内核生成的异构性等挑战,提出EdgeKernelBench基准与LEKA智能体,实现跨边缘后端LLM生成内核的统一评估与分层优化,提升了Fast@1.0性能。
摘要:
近期研究表明,大语言模型(LLM)可在服务器GPU上生成性能优异的内核。边缘部署面临独特挑战,包括硬件异构、软件栈碎片化及资源预算紧张,跨不同边缘后端的LLM内核生成尚未得到系统研究。本文提出EdgeKernelBench,将统一中间表示(IR)部署框架与分层边缘工作负载基准相结合:统一IR捕获可复用的计算、调度及内存决策,通过编译器接口连接各目标后端;基准覆盖从单个算子到紧凑模型图的逐步扩大程序范围,涉及代表性边缘应用领域。本文以TVM为参考编译器实现该设计,并在异构边缘后端上验证。单次生成尝试中,最优模型的Correct@1为64.5%,但Fast@1.0仅为25.5%,该差距表明功能正确性并非总能转化为性能提升。因此,本文提出分层边缘内核智能体(LEKA),通过分层IR组织优化;在智能体评估子集上,LEKA的Fast@1.0达43.5%,而直接生成仅为13.0%、Claude Code为26.1%,且LEKA与Claude Code使用相同基础模型及优化预算。综上,EdgeKernelBench与LEKA支持对跨边缘后端的LLM生成内核进行统一评估与分层优化。
英文摘要:
Recent works show that LLMs can generate kernels with strong performance on server GPUs. Edge deployment presents distinct challenges because the hardware is heterogeneous, the software stacks are fragmented, and the resource budgets are tight. LLM kernel generation across diverse edge backends has yet to be studied systematically. We introduce EdgeKernelBench, which combines a unified IR deployment framework with a hierarchical benchmark for edge workloads. The unified IR captures reusable computation, scheduling, and memory decisions and connects to each target backend through a compiler interface. The benchmark spans progressively larger program scopes, from individual operators to compact model graphs, across representative edge application domains. We instantiate the design with TVM as a reference compiler and validate it across heterogeneous edge backends. With a single generation attempt, the best model achieves 64.5% Correct@1 but only 25.5% Fast@1.0. This gap shows that functional correctness does not consistently translate into performance gains. We therefore introduce the Layered Edge Kernel Agent (LEKA), which organizes optimization through a layered IR. On the agent evaluation subset, LEKA achieves 43.5% Fast@1.0, compared with 13.0% for direct generation and 26.1% for Claude Code. LEKA and Claude Code use the same base model and optimization budget. Together, EdgeKernelBench and LEKA support unified evaluation and layered optimization of kernels generated by LLMs across edge backends.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。