近期研究凸显了大语言模型(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.
Large Language Models Are Read/Write Policy-Makers for Simultaneous Generation
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Key Laboratory of AI Safety, Chinese Academy of Sciences(中国科学院人工智能安全重点实验室);University of Chinese Academy of Sciences(中国科学院大学)
Learning To Guide Human Decision Makers With Vision-Language Models
DI, University of Pisa(比萨大学DI);DISI, University of Trento(特伦托大学DISI);CIMEC, University of Trento(特伦托大学CIMEC);Rajib Pal Bankura Sammilani Medical College(拉吉布·帕尔班克尔医学学院)
Large Decision Models: Repurposing Large Language Models as Single-Pass Decision Makers
University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);National University of Singapore(新加坡国立大学);Zhejiang University(浙江大学);University of Pennsylvania(宾夕法尼亚大学);University of Rochester(罗切斯特大学)
Assessing and Explaining the Persuadability of Large Language Models as Legal Decision Tools
School of Law;Criminology Maynooth University Maynooth Ireland;School of Computer Science University College Dublin Dublin Ireland;Criminology Maynooth University;School of Computer Science University College Dublin
Operationalizing the Blueprint for an AI Bill of Rights: Recommendations for Practitioners, Researchers, and Policy Makers
John A. Paulson School of Engineering and Applied Science, Harvard University(哈佛大学约翰·A·保尔森工程与应用科学学院);Center for Tech Responsibility, Brown University(布朗大学技术责任中心);Harvard Business School, Harvard University(哈佛大学商学院)