arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.15077cs.CLcs.AIcs.LG
收藏

无需模型变更的并发性:面向LLMs的未来式异步函数调用

Concurrency without Model Changes: Future-based Asynchronous Function Calling for LLMs

University of California, Berkeley(加州大学伯克利分校)

Guangyu Feng, Huanzhi Mao, Prabal Dutta, Joseph E. Gonzalez

AI总结:

本文提出AsyncFC框架,通过解耦LLM解码与函数执行,实现解码与执行的重叠及函数间并行,减少端到端延迟并保持任务精度,揭示LLMs具备处理未决执行结果的符号未来推理能力。

摘要:

函数调用,也称为工具使用,是现代LLM代理的核心能力,但通常受限于同步执行语义。在这些语义下,LLM解码会阻塞直到每个函数调用完成,导致端到端延迟增加。在本工作中,我们引入AsyncFC,一个纯执行层框架,将LLM解码与函数执行解耦,使模型解码与函数执行重叠,并在依赖允许时实现函数间并行。AsyncFC在现有模型和未修改的函数实现上叠加,无需微调或更改标准同步函数调用协议。在标准函数调用基准和改编的软件工程基准上,AsyncFC显著减少了端到端任务完成时间,同时保持任务准确性。此外,这些结果表明LLMs具备处理符号未来的能力,这些符号未来代表未解决的执行结果,使模型-工具交互能够采用异步范式。

英文摘要:

Function calling, also known as tool use, is a core capability of modern LLM agents but is typically constrained by synchronous execution semantics. Under these semantics, LLM decoding is blocked until each function call completes, resulting in increasing end-to-end latency. In this work, we introduce AsyncFC, a pure execution-layer framework that decouples LLM decoding from function execution, enabling overlap between model decoding and function execution as well as inter-function parallelism when dependencies permit. AsyncFC layers over existing models and unmodified function implementations, requiring no fine-tuning or changes to the standard synchronous function-calling protocol. On coding tasks, AsyncFC achieves a $1.4\times$ end-to-end speedup while preserving task accuracy. Furthermore, these results reveal that LLMs possess a native capability to reason over symbolic futures that represent unresolved execution results, enabling an asynchronous paradigm for model-tool interaction.

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

↑