arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.17436cs.AI
收藏

SchemaWeaver:通过模式引导的并行LLM解码加速设备端移动智能体AI

SchemaWeaver: Accelerating On-Device Mobile Agentic AI via Schema-Guided Parallel LLM Decoding

University of Pittsburgh(匹兹堡大学)

Boyuan Yang, Wei Gao

AI总结:

针对移动设备LLM工具调用延迟高的问题,提出SchemaWeaver技术,通过模式引导的并行解码降低延迟,无需修改LLM,在主流移动SoC和LLM上可将延迟最多降低3.9倍。

摘要:

移动设备上的大语言模型(LLM)可作为调用外部软件工具完成复杂任务的智能体,但用LLM支持设备端移动智能体AI的主要挑战是移动设备上LLM工具调用的延迟过长。尤其解码阶段是该延迟的主要来源,且因受内存带宽而非计算能力限制,在移动处理器上难以加速。为解决此局限,本文提出SchemaWeaver,一种新的设备端移动智能体AI技术,在LLM工具调用的解码阶段强制执行模式引导的并行解码,通过每次解码过程生成多个token以降低延迟。SchemaWeaver可通用应用于移动设备上的LLM推理引擎,无需任何训练工作或对LLM进行修改,且在主流移动SoC和LLM系列上的实验结果显示,与竞争基线相比,SchemaWeaver可将LLM工具调用的延迟降低最多3.9倍。

英文摘要:

Large language models (LLMs) on mobile devices can act as agents that call external software tools to complete complex tasks, but the major challenge of supporting on-device mobile agentic AI with LLMs is the long latency of LLM tool calling on mobile devices. In particular, the decode phase is the main contributor of such long latency, but is hard to speed up on mobile processors as it is bound by memory bandwidth rather than compute power. To address this limitation, in this paper we present SchemaWeaver, a new on-device mobile agentic AI technique that enforces schema-guided parallel decoding in the decode phase of LLM tool calling, to reduce its latency by producing multiple tokens in each decode pass. SchemaWeaver can be generically applied to the LLM inference engine on mobile devices without involving any training efforts or changes on LLMs, and our experiment results on major mobile SoCs and LLM families show that SchemaWeaver can reduce the LLM tool calling latency by up to 3.9 times, compared to the competitive baselines.

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

↑