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

SimpleTool: 并行解码用于实时大语言模型功能调用

SimpleTool: Parallel Decoding for Real-Time LLM Function Calling

Shanghai Jiao Tong University, Shanghai, China(上海交通大学);Shanghai Innovation Institute, Shanghai, China(上海创新研究院);Fudan University, Shanghai, China(复旦大学)

Xiaoxin Shi, Jiaxin Wan, Linkang Dong, Wei Jiang, Yue Liu, Zengfeng Huang

AI总结:

SimpleTool通过并行解码技术实现大语言模型功能调用的实时加速,提升效率并降低延迟,适用于实时应用场景。

摘要:

基于大语言模型的功能调用使智能代理能够与外部工具和环境交互,但自回归解码引入了一个根本性的延迟瓶颈,限制了实时应用,如具身智能、游戏AI和交互式虚拟角色(例如10 Hz控制频率)。我们发现功能调用与自由文本生成有根本差异:结构化输出表现出显著的令牌冗余(分隔符、参数名称),而参数表现出弱因果依赖。关键的是,这两个属性必须共同利用才能实现实时性能。我们提出了SimpleTool,它引入了特殊令牌,起到双重作用:压缩低熵令牌(减少4-6倍)同时作为模式选择器,使功能名称和参数的独立并行生成成为可能。这种协同设计实现了3-6倍的端到端加速(最高9.6倍),仅需+8.2%的并行化开销。在五个基准测试上,跨Qwen系列模型(0.5B-14B)的实验显示,速度提升显著,同时保持竞争或改进的准确性。在Mobile Actions上,ST-Qwen-0.5B在准确性和延迟一致性上均优于Google的FunctionGemma。通过在消费级GPU上量化,SimpleTool实现了61.2ms P50延迟,使4B模型规模下能够实现16 Hz的实时控制,弥合了大语言模型功能调用与延迟敏感的现实世界部署之间的差距。

英文摘要:

LLM-based function calling enables intelligent agents to interact with external tools and environments, yet autoregressive decoding imposes a fundamental latency bottleneck that limits real-time applications such as embodied intelligence, game AI, and interactive avatars (e.g., 10 Hz control frequency). We observe that function calling differs fundamentally from free-form text generation: structured outputs exhibit substantial token redundancy (delimiters, parameter names), and arguments exhibit weak causal dependencies. Crucially, these two properties must be exploited jointly to achieve real-time performance. We present SimpleTool, which introduces special tokens that serve a dual role: compressing low-entropy tokens (4-6x reduction) while acting as mode selectors that enable independent parallel generation of function name and arguments. This synergistic design achieves 3-6x end-to-end speedup (up to 9.6x) with only +8.2% parallelization overhead. Experiments on five benchmarks across Qwen-series models (0.5B-14B) demonstrate substantial speedup while maintaining competitive or improved accuracy. On Mobile Actions, ST-Qwen-0.5B outperforms Google's FunctionGemma in both accuracy and latency consistency. With quantization on consumer-grade GPU, SimpleTool achieves 61.2ms P50 latency, enabling 16 Hz real-time control at 4B model scale, bridging the gap between LLM function calling and latency-critical real-world deployment.

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

↑