Saved in:
Bibliographic Details
Main Authors: Zou, Xingze, Wang, Jing, Zheng, Yuhua, Chen, Xueyi, Bai, Haolei, Kong, Lingcheng, Abu-Bakar, Syed A. R., Wang, Zhaode, Lv, Chengfei, Hu, Haoji, Wang, Huan
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2603.11935
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915863903338496
author Zou, Xingze
Wang, Jing
Zheng, Yuhua
Chen, Xueyi
Bai, Haolei
Kong, Lingcheng
Abu-Bakar, Syed A. R.
Wang, Zhaode
Lv, Chengfei
Hu, Haoji
Wang, Huan
author_facet Zou, Xingze
Wang, Jing
Zheng, Yuhua
Chen, Xueyi
Bai, Haolei
Kong, Lingcheng
Abu-Bakar, Syed A. R.
Wang, Zhaode
Lv, Chengfei
Hu, Haoji
Wang, Huan
contents Large language models (LLMs) have demonstrated remarkable capabilities in code generation, yet their potential for generating kernels specifically for mobile devices remains largely unexplored. In this work, we extend the scope of automated kernel generation to the mobile domain to investigate the central question: Can LLMs write efficient kernels for mobile devices? To enable systematic investigation, we introduce MobileKernelBench, a comprehensive evaluation framework comprising a benchmark prioritizing operator diversity and cross-framework interoperability, coupled with an automated pipeline that bridges the host-device gap for on-device verification. Leveraging this framework, we conduct extensive evaluation on the CPU backend of Mobile Neural Network (MNN), revealing that current LLMs struggle with the engineering complexity and data scarcity inherent to mobile frameworks; standard models and even fine-tuned variants exhibit high compilation failure rates (over 54%) and negligible performance gains due to hallucinations and a lack of domain-specific grounding. To overcome these limitations, we propose the Mobile Kernel Agent (MoKA), a multi-agent system equipped with repository-aware reasoning and a plan-and-execute paradigm. Validated on MobileKernelBench, MoKA achieves state-of-the-art performance, boosting compilation success to 93.7% and enabling 27.4% of generated kernels to deliver measurable speedups over native libraries.
format Preprint
id arxiv_https___arxiv_org_abs_2603_11935
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle MobileKernelBench: Can LLMs Write Efficient Kernels for Mobile Devices?
Zou, Xingze
Wang, Jing
Zheng, Yuhua
Chen, Xueyi
Bai, Haolei
Kong, Lingcheng
Abu-Bakar, Syed A. R.
Wang, Zhaode
Lv, Chengfei
Hu, Haoji
Wang, Huan
Machine Learning
Artificial Intelligence
Large language models (LLMs) have demonstrated remarkable capabilities in code generation, yet their potential for generating kernels specifically for mobile devices remains largely unexplored. In this work, we extend the scope of automated kernel generation to the mobile domain to investigate the central question: Can LLMs write efficient kernels for mobile devices? To enable systematic investigation, we introduce MobileKernelBench, a comprehensive evaluation framework comprising a benchmark prioritizing operator diversity and cross-framework interoperability, coupled with an automated pipeline that bridges the host-device gap for on-device verification. Leveraging this framework, we conduct extensive evaluation on the CPU backend of Mobile Neural Network (MNN), revealing that current LLMs struggle with the engineering complexity and data scarcity inherent to mobile frameworks; standard models and even fine-tuned variants exhibit high compilation failure rates (over 54%) and negligible performance gains due to hallucinations and a lack of domain-specific grounding. To overcome these limitations, we propose the Mobile Kernel Agent (MoKA), a multi-agent system equipped with repository-aware reasoning and a plan-and-execute paradigm. Validated on MobileKernelBench, MoKA achieves state-of-the-art performance, boosting compilation success to 93.7% and enabling 27.4% of generated kernels to deliver measurable speedups over native libraries.
title MobileKernelBench: Can LLMs Write Efficient Kernels for Mobile Devices?
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2603.11935