Lune

ICLR2025Top-tier venue

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

Abstract

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 .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Gorilla: Large Language Model Connected with Massive APIs cites Toolformer: Language Models Can Teach Themselves to Use Tools
  • Gorilla: Large Language Model Connected with Massive APIs cites HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face
  • The Flan Collection: Designing Data and Methods for Effective Instruction Tuning cites Training language models to follow instructions with human feedback
  • ReSearch: Learning to Reason with Search for LLMs via Reinforcement Learning cites Toolformer: Language Models Can Teach Themselves to Use Tools
  • ReSearch: Learning to Reason with Search for LLMs via Reinforcement Learning cites HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face
  • ReSearch: Learning to Reason with Search for LLMs via Reinforcement Learning cites Training language models to follow instructions with human feedback
  • LoopTool: Closing the Data-Training Loop for Robust LLM Tool Calls cites ReSearch: Learning to Reason with Search for LLMs via Reinforcement Learning
  • LoopTool: Closing the Data-Training Loop for Robust LLM Tool Calls cites Toolformer: Language Models Can Teach Themselves to Use Tools
  • LoopTool: Closing the Data-Training Loop for Robust LLM Tool Calls cites HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face
  • LoopTool: Closing the Data-Training Loop for Robust LLM Tool Calls cites Training language models to follow instructions with human feedback
  • LoopTool: Closing the Data-Training Loop for Robust LLM Tool Calls cites 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 cites Training language models to follow instructions with human feedback
  • Unsafer in Many Turns: Benchmarking and Defending Multi-Turn Safety Risks in Tool-Using Agents cites Magnet: Multi-turn Tool-use Data Synthesis and Distillation via Graph Translation
  • Imitation Learning for Multi-turn LM Agents via On-policy Expert Corrections cites Training language models to follow instructions with human feedback
  • HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face cites The Flan Collection: Designing Data and Methods for Effective Instruction Tuning
  • HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face cites Toolformer: Language Models Can Teach Themselves to Use Tools
  • HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face cites Training language models to follow instructions with human feedback
  • Magnet: Multi-turn Tool-use Data Synthesis and Distillation via Graph Translation cites Gorilla: Large Language Model Connected with Massive APIs
  • Magnet: Multi-turn Tool-use Data Synthesis and Distillation via Graph Translation cites Toolformer: Language Models Can Teach Themselves to Use Tools
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. ReSearch: Learning to Reason with Search for LLMs via Reinforcement LearningMingyang Chen, Linzhuang Sun, Tianpeng Li, Haoze Sun et al.NeurIPS 2025 · 125 citations
  2. Magnet: Multi-turn Tool-use Data Synthesis and Distillation via Graph TranslationFan Yin, Zifeng Wang, I-Hung Hsu, Jun Yan et al.ACL 2025 · 23 citations
  3. LoopTool: Closing the Data-Training Loop for Robust LLM Tool CallsKangning Zhang, Weiwen Liu, Wenxiang Jiao, Kounianhua Du et al.ACL 2026 · 18 citations
  4. Unsafer in Many Turns: Benchmarking and Defending Multi-Turn Safety Risks in Tool-Using AgentsXu Li, Simon Yu, Minzhou Pan, Yiyou Sun et al.ICML 2026 · 16 citations
  5. Imitation Learning for Multi-turn LM Agents via On-policy Expert CorrectionsNiklas Lauffer, Xiang Deng, Srivatsa Kundurthy, Brad Kenstler et al.ICML 2026 · 10 citations

Builds on14

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. Toolformer: Language Models Can Teach Themselves to Use ToolsTimo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu et al.NeurIPS 2023 · 5,989 citations
  3. HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging FaceYongliang Shen, Kaitao Song, Xu Tan, Dongsheng Li et al.NeurIPS 2023 · 1,778 citations
  4. Gorilla: Large Language Model Connected with Massive APIsShishir G. Patil, Tianjun Zhang, Xin Wang, Joseph E. GonzalezNeurIPS 2024 · 1,715 citations
  5. The Flan Collection: Designing Data and Methods for Effective Instruction TuningShayne Longpre, Le Hou, Tu Vu, Albert Webson et al.ICML 2023 · 908 citations

Related papers

  1. API-BLEND: A Comprehensive Corpora for Training and Benchmarking API LLMsKinjal Basu, Ibrahim Abdelaziz, Subhajit Chaudhury, Soham Dan et al.ACL 2024 · 6 citations
  2. Progra: Progress-Aware Reinforcement Learning for Multi-Turn Function CallingHuacan Chai, Zijie Cao, Maolin Ran, Yingxuan Yang et al.ACL Findings 2026
  3. HammerBench: Fine-Grained Function-Calling Evaluation in Real Mobile Assistant ScenariosJun Wang, Jiamu Zhou, Xihuai Wang, Xiaoyun Mo et al.ACL Findings 2025 · 5 citations
  4. GenesisFunc: Multi-Agent Data Generation for Accurate and Generalizable Function-CallingHao-Xiang Xu, Chong Deng, Jiaqing Liu, Wen Wang et al.ACL 2026
  5. ToolACE: Winning the Points of LLM Function CallingWeiwen Liu, Xu Huang, Xingshan Zeng, Xinlong Hao et al.ICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines