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

作为工具制造者的大语言模型

Large Language Models as Tool Makers

Google Deepmind(谷歌DeepMind);Princeton University(普林斯顿大学);Stanford University(斯坦福大学)

Tianle Cai, Xuezhi Wang, Tengyu Ma, Xinyun Chen, Denny Zhou

AI总结:

本研究提出LATM闭环框架,让大模型分工制造和使用可复用工具,通过功能缓存降本增效,在复杂推理任务上实现了与全用强模型相当的性能。

摘要:

近期研究凸显了大语言模型(LLM)借助合适的外部工具提升自身问题解决能力的潜力。在本研究中,我们通过提出一个闭环框架——即LLMs As Tool Makers(LATM,大语言模型作为工具制造者)——进一步推进了这一理念,在该框架中LLM可为问题解决创建自身的可复用工具。我们的方法包含两个阶段:1)工具制造阶段:一个LLM充当工具制造者,为一系列任务制作工具。2)工具使用阶段:另一个LLM充当工具使用者,应用工具制造者构建的工具来解决问题。在问题解决服务器端,工具制造阶段可随着新请求的出现持续生成工具并进行缓存。该框架使后续请求能通过对应的API访问已缓存的工具,从而提升任务解决效率。考虑到工具制造需要更复杂的能力,我们将这一任务分配给一个功能强大但资源消耗较高的模型。相应地,较为简单的工具使用阶段则交由轻量级模型完成。这种战略性的劳动分工可将工具制造的一次性成本分摊到多次工具使用实例中,在保持优异性能的同时大幅降低平均成本。此外,我们的方法通过工具的缓存与复用提供了一种功能缓存,它存储的是一类请求的功能而非LLM生成的自然语言响应,由此拓展了传统缓存机制的适用范围。我们在多种复杂推理任务(包括Big-Bench任务)上评估了所提方法。当以GPT-4作为工具制造者、GPT-3.5作为工具使用者时,LATM表现出与两个角色均使用GPT-4相当的性能,但推理成本显著降低。

英文摘要:

Recent research has highlighted the potential of large language models (LLMs) to improve their problem-solving capabilities with the aid of suitable external tools. In our work, we further advance this concept by introducing a closed-loop framework, referred to as LLMs A s Tool Makers (LATM), where LLMs create their own reusable tools for problem-solving. Our approach consists of two phases: 1) tool making: an LLM acts as the tool maker that crafts tools for a set of tasks. 2) tool using: another LLM acts as the tool user, which applies the tool built by the tool maker for problem-solving. On the problem-solving server side, tool-making enables continual tool generation and caching as new requests emerge. This framework enables subsequent requests to access cached tools via their corresponding APIs, enhancing the efficiency of task resolution. Recognizing that tool-making requires more sophisticated capabilities, we assign this task to a powerful, albeit resource-intensive, model. Conversely, the simpler tool-using phase is delegated to a lightweight model. This strategic division of labor allows the once-off cost of tool-making to be spread over multiple instances of tool-using, significantly reducing average costs while maintaining strong performance. Furthermore, our method offers a functional cache through the caching and reuse of tools, which stores the functionality of a class of requests instead of the natural language responses from LLMs, thus extending the applicability of the conventional cache mechanism. We evaluate our approach across various complex reasoning tasks, including Big-Bench tasks. With GPT-4 as the tool maker and GPT-3.5 as the tool user, LATM demonstrates performance equivalent to using GPT-4 for both roles, but with a significantly reduced inference cost.

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

↑