arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.14356cs.OScs.AIcs.CLcs.SE
收藏

EngineAgent:具备推理栈层次感知与硬件能力的设备端LLM推理引擎智能体

EngineAgent: Agentizing On-Device LLM Inference Engines with Inference Stack Hierarchy Awareness and Hardware Abilities

Shanghai Jiao Tong University(上海交通大学);Alibaba Group(阿里巴巴集团)

Zhengxiang Huang, Yujie Sun, Shengheng Chen, Zhaode Wang, Chaoyue Niu, Zeyu Zhao, Chengfei Lv, Fan Wu, Guihai Chen

AI总结:

EngineAgent是具备推理栈层次感知与硬件能力的设备端LLM推理引擎智能体,可自动化设备端LLM模型适配,在12项任务中成功率达75%,远超33.3%的基线,还降低了任务时间与API成本。

摘要:

快速演进的大语言模型(LLM)架构与异构移动硬件,使得在设备端推理引擎中支持新模型成为反复出现且成本高昂的系统挑战。每个模型可能需要在转换、图构建、算子及硬件后端层面进行协同修改。现有编码智能体常忽略这些跨层依赖,难以诊断主机-设备执行路径中的故障。我们提出EngineAgent,一种用于自动化设备端LLM模型适配的智能体系统。其核心思路是将可复用的引擎与硬件知识,与模型特定实现分离。在适配前,EngineAgent构建层次感知的引擎索引,该索引捕获引擎抽象层与跨层依赖,并利用已支持的模型预验证特定后端的构建、执行与调试工作流。对于每个新模型,构建器利用该知识协调跨层修改,而审计器检查实现完整性,并通过设备端验证推动迭代调试。在覆盖3种移动LLM、4种引擎-后端对(涉及CPU、GPU、NPU)的12项任务中,EngineAgent在两种底层LLM下均实现75%的端到端成功率,而最强编码智能体基线仅为33.3%。成功需满足编译、设备端执行及输出logit与参考实现一致的要求。与使用相同底层LLM的基线相比,EngineAgent还降低了平均单任务时间与模型API成本。

英文摘要:

Rapidly evolving LLM architectures and heterogeneous mobile hardware make supporting new models in on-device inference engines a recurring and costly system challenge. Each model may require coordinated changes across conversion, graph construction, operators, and hardware backends. Existing coding agents often miss these cross-layer dependencies and struggle to diagnose failures across host--device execution paths. We present EngineAgent, an agentic system for automating on-device LLM model enablement. Its key insight is to separate reusable engine and hardware knowledge from model-specific implementation. Before enablement, EngineAgent constructs a hierarchy-aware engine index that captures engine abstraction layers and cross-layer dependencies, and pre-validates backend-specific build, execution, and debugging workflows using already supported models. For each new model, a builder uses this knowledge to coordinate cross-layer changes, while an auditor checks implementation completeness and drives iterative debugging through device-side validation. Across 12 tasks spanning three mobile LLMs and four engine--backend pairs on CPUs, GPUs, and NPUs, EngineAgent achieves 75% end-to-end success with either of two underlying LLMs, versus 33.3% for the strongest coding-agent baseline. Success requires compilation, on-device execution, and output-logit agreement with reference implementations. EngineAgent also reduces average per-task time and model-API cost relative to baselines using the same underlying LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑