EdgeKernelBench:面向边缘后端的统一LLM驱动内核生成
研究论文 · 2026/10/21
EdgeKernelBench 是一个统一的基于 LLM 的边缘后端内核生成基准与框架。它结合了统一 IR 部署框架和分层基准,覆盖从单个算子到紧凑模型图的边缘工作负载,并通过编译器接口连接异构边缘后端。实验表明,单次生成的最佳模型仅达到 64.5% 的 Correct@1 和 25.5% 的 [email protected],功能正确性并不总能转化为性能提升。为此,作者提出分层边缘内核代理 LEKA,在代理评估子集上达到 43.5% 的 [email protected],优于直接生成(13.0%)和 Claude Code(26.1%)。
该工作填补了 LLM 内核生成在边缘计算场景下的研究空白,提供了统一的评估基准和有效的优化代理,对边缘 AI 部署和编译优化领域具有重要参考价值。
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% [email protected]. 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% [email protected], 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.