Facilitating Multi-turn Function Calling for LLMs via Compositional Instruction Tuning
Mingyang Chen, Haoze Sun, Tianpeng Li, Fan Yang, Hao Liang, Keer Lu, Bin Cui, Wentao Zhang, Zenan Zhou, Weipeng Chen
摘要
Large Language Models (LLMs) have exhibited significant potential in performing diverse tasks, including the ability to call functions or use external tools to enhance their performance. While current research on function calling by LLMs primarily focuses on single-turn interactions, this paper addresses the overlooked necessity for LLMs to engage in multi-turn function calling-critical for handling compositional, real-world queries that require planning with functions but not only use functions. To facilitate this, we introduce an approach, BUTTON, which generates synthetic compositional instruction tuning data via bottom-up instruction construction and top-down trajectory generation. In the bottom-up phase, we generate simple atomic tasks based on real-world scenarios and build compositional tasks using heuristic strategies based on atomic tasks. Corresponding function definitions are then synthesized for these compositional tasks. The top-down phase features a multi-agent environment where interactions among simulated humans, assistants, and tools are utilized to gather multi-turn function calling trajectories. This approach ensures task compositionality and allows for effective function and trajectory generation by examining atomic tasks within compositional tasks. We produce a dataset BUTTONInstruct comprising 8k data points and demonstrate its effectiveness through extensive experiments across various LLMs 1 .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 11 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Gorilla: Large Language Model Connected with Massive APIs 引用了 Toolformer: Language Models Can Teach Themselves to Use Tools
- Gorilla: Large Language Model Connected with Massive APIs 引用了 HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face
- The Flan Collection: Designing Data and Methods for Effective Instruction Tuning 引用了 Training language models to follow instructions with human feedback
- ReSearch: Learning to Reason with Search for LLMs via Reinforcement Learning 引用了 Toolformer: Language Models Can Teach Themselves to Use Tools
- ReSearch: Learning to Reason with Search for LLMs via Reinforcement Learning 引用了 HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face
- ReSearch: Learning to Reason with Search for LLMs via Reinforcement Learning 引用了 Training language models to follow instructions with human feedback
- LoopTool: Closing the Data-Training Loop for Robust LLM Tool Calls 引用了 ReSearch: Learning to Reason with Search for LLMs via Reinforcement Learning
- LoopTool: Closing the Data-Training Loop for Robust LLM Tool Calls 引用了 Toolformer: Language Models Can Teach Themselves to Use Tools
- LoopTool: Closing the Data-Training Loop for Robust LLM Tool Calls 引用了 HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face
- LoopTool: Closing the Data-Training Loop for Robust LLM Tool Calls 引用了 Training language models to follow instructions with human feedback
- LoopTool: Closing the Data-Training Loop for Robust LLM Tool Calls 引用了 Magnet: Multi-turn Tool-use Data Synthesis and Distillation via Graph Translation
- Unsafer in Many Turns: Benchmarking and Defending Multi-Turn Safety Risks in Tool-Using Agents 引用了 Training language models to follow instructions with human feedback
- Unsafer in Many Turns: Benchmarking and Defending Multi-Turn Safety Risks in Tool-Using Agents 引用了 Magnet: Multi-turn Tool-use Data Synthesis and Distillation via Graph Translation
- Imitation Learning for Multi-turn LM Agents via On-policy Expert Corrections 引用了 Training language models to follow instructions with human feedback
- HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face 引用了 The Flan Collection: Designing Data and Methods for Effective Instruction Tuning
- HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face 引用了 Toolformer: Language Models Can Teach Themselves to Use Tools
- HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face 引用了 Training language models to follow instructions with human feedback
- Magnet: Multi-turn Tool-use Data Synthesis and Distillation via Graph Translation 引用了 Gorilla: Large Language Model Connected with Massive APIs
- Magnet: Multi-turn Tool-use Data Synthesis and Distillation via Graph Translation 引用了 Toolformer: Language Models Can Teach Themselves to Use Tools
引用它的顶会 Paper11
- ReSearch: Learning to Reason with Search for LLMs via Reinforcement LearningMingyang Chen, Linzhuang Sun, Tianpeng Li, Haoze Sun 等NeurIPS 2025 · 125 次引用
- Magnet: Multi-turn Tool-use Data Synthesis and Distillation via Graph TranslationFan Yin, Zifeng Wang, I-Hung Hsu, Jun Yan 等ACL 2025 · 23 次引用
- LoopTool: Closing the Data-Training Loop for Robust LLM Tool CallsKangning Zhang, Weiwen Liu, Wenxiang Jiao, Kounianhua Du 等ACL 2026 · 18 次引用
- Unsafer in Many Turns: Benchmarking and Defending Multi-Turn Safety Risks in Tool-Using AgentsXu Li, Simon Yu, Minzhou Pan, Yiyou Sun 等ICML 2026 · 16 次引用
- Imitation Learning for Multi-turn LM Agents via On-policy Expert CorrectionsNiklas Lauffer, Xiang Deng, Srivatsa Kundurthy, Brad Kenstler 等ICML 2026 · 10 次引用
它引用的 Paper14
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida 等NeurIPS 2022 · 24,707 次引用
- Toolformer: Language Models Can Teach Themselves to Use ToolsTimo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu 等NeurIPS 2023 · 5,989 次引用
- HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging FaceYongliang Shen, Kaitao Song, Xu Tan, Dongsheng Li 等NeurIPS 2023 · 1,778 次引用
- Gorilla: Large Language Model Connected with Massive APIsShishir G. Patil, Tianjun Zhang, Xin Wang, Joseph E. GonzalezNeurIPS 2024 · 1,715 次引用
- The Flan Collection: Designing Data and Methods for Effective Instruction TuningShayne Longpre, Le Hou, Tu Vu, Albert Webson 等ICML 2023 · 908 次引用
相关 Paper
- API-BLEND: A Comprehensive Corpora for Training and Benchmarking API LLMsKinjal Basu, Ibrahim Abdelaziz, Subhajit Chaudhury, Soham Dan 等ACL 2024 · 6 次引用
- Progra: Progress-Aware Reinforcement Learning for Multi-Turn Function CallingHuacan Chai, Zijie Cao, Maolin Ran, Yingxuan Yang 等ACL Findings 2026
- HammerBench: Fine-Grained Function-Calling Evaluation in Real Mobile Assistant ScenariosJun Wang, Jiamu Zhou, Xihuai Wang, Xiaoyun Mo 等ACL Findings 2025 · 5 次引用
- GenesisFunc: Multi-Agent Data Generation for Accurate and Generalizable Function-CallingHao-Xiang Xu, Chong Deng, Jiaqing Liu, Wen Wang 等ACL 2026
- ToolACE: Winning the Points of LLM Function CallingWeiwen Liu, Xu Huang, Xingshan Zeng, Xinlong Hao 等ICLR 2025
