In the rapidly evolving domain of artificial intelligence, Large Language Models (LLMs) play a crucial role due to their advanced text processing and generation abilities. This study introduces a new strategy aimed at harnessing on-device LLMs in invoking software APIs. We meticulously compile a dataset derived from software API documentation and apply fine-tuning to LLMs with capacities of 2B, 3B and 7B parameters, specifically to enhance their proficiency in software API interactions. Our approach concentrates on refining the models' grasp of API structures and syntax, significantly enhancing the accuracy of API function calls. Additionally, we propose \textit{conditional masking} techniques to ensure outputs in the desired formats and reduce error rates while maintaining inference speeds. We also propose a novel benchmark designed to evaluate the effectiveness of LLMs in API interactions, establishing a foundation for subsequent research. Octopus, the fine-tuned model, is proved to have better performance than GPT-4 for the software APIs calling. This research aims to advance automated software development and API integration, representing substantial progress in aligning LLM capabilities with the demands of practical software engineering applications.
Data-Driven Function Calling Improvements in Large Language Model for Online Financial QA
Shenzhen Technology University(深圳技术大学);FiT, Tencent(腾讯FiT);Huazhong University of Science and Technology(华中科技大学);McGill University(麦吉尔大学);The Hong Kong University of Science and Technology(香港科技大学);Shenzhen University(深圳大学)
Self-Guided Function Calling in Large Language Models via Stepwise Experience Recall
The Key Laboratory of Cognition and Decision Intelligence for Complex Systems, Institute of Automation, Chinese Academy of Sciences(认知与决策智能复杂系统重点实验室,自动化研究所,中国科学院);School of Artificial Intelligence, University of Chinese Academy of Sciences(人工智能学院,中国科学院大学);Nanjing University of Information Science & Technology(南京信息工程大学);Institute of Computing Technology, Chinese Academy of Sciences(计算技术研究所,中国科学院)
ToolACE: Winning the Points of LLM Function Calling
Shanghai Jiao Tong University(上海交通大学);University of Science and Technology of China(中国科学技术大学);Huawei Noah’s Ark Lab(华为诺亚实验室);Huawei Technologies Co., Ltd(华为技术有限公司);Tsinghua University(清华大学);The Chinese University of Hong Kong(香港中文大学)
本文提出自动智能体数据合成流水线 ToolACE,通过自演化 API 构建、多智能体对话生成和双层验证,训练出可匹敌 GPT-4 的 8B 函数调用模型。
SoAy: A Solution-based LLM API-using Methodology for Academic Information Seeking
Renmin University of China(中国人民大学);Key Laboratory of Data Engineering and Knowledge Engineering, MOE(数据工程与知识工程重点实验室);Tsinghua University(清华大学);Institute of Education(教育学院);Department of Computer Science and Technology(计算机科学与技术系);Engineering Research Center of Database and Business Intelligence, MOE(数据库与商务智能工程研究中心);School of Information(信息学院)
针对学术查询中的复杂 API 耦合问题,提出基于预构建 API 调用方案与代码推理的 SoAy 方法,并通过 SoAyBench/SoAyEval 验证其显著优于现有基线。
API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMs
Alibaba Group(阿里巴巴集团);Hong Kong University of Science and Technology(香港科技大学);Peking University(北京大学);Shenzhen Intelligent Strong Technology Co., Ltd(深圳智能强科技有限公司)