Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
51 tokens/sec
GPT-4o
60 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
8 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Reverse Chain: A Generic-Rule for LLMs to Master Multi-API Planning (2310.04474v3)

Published 6 Oct 2023 in cs.SE, cs.AI, and cs.PL

Abstract: While enabling LLMs to implement function calling (known as APIs) can greatly enhance the performance of LLMs, function calling is still a challenging task due to the complicated relations between different APIs, especially in a context-learning setting without fine-tuning. This paper introduces ``Reverse Chain'', a controllable, target-driven approach designed to empower LLMs with the capability to operate external APIs only via prompts. Recognizing that most LLMs have limited tool-use capabilities, Reverse Chain limits LLMs to executing simple tasks, e.g., API Selection and Argument Completion. Furthermore, to manage a controllable multi-function calling, Reverse Chain adopts a generic rule based on a backward reasoning process. This rule determines when to do API selection or Argument completion. To evaluate the multi-tool-use capability of LLMs, we have released a compositional multi-tool task dataset, available at \url{https://anonymous.4open.science/r/reverse-chain-8681}. Extensive numerical experiments validate the remarkable proficiency of Reverse Chain in managing multiple API calls.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Yinger Zhang (7 papers)
  2. Hui Cai (10 papers)
  3. Yicheng Chen (24 papers)
  4. Rui Sun (105 papers)
  5. Jing Zheng (12 papers)
  6. Xeirui Song (1 paper)
Citations (3)
X Twitter Logo Streamline Icon: https://streamlinehq.com