Reverse Chain: A Generic-Rule for LLMs to Master Multi-API Planning

Yinger Zhang, Hui Cai, Xeirui Song, Yicheng Chen, Rui Sun +1 more
10/6/2023
cs.SEcs.AIcs.PL

No official code found. Best implementation: ASK-03/Reverse-Chain (15 stars, MIT, last commit 2024-01-18).

Abstract

While enabling large language models to implement function calling (known as APIs) can greatly enhance the performance of Large Language Models (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.

View on arXivView PDF

Code Implementations(1)

MIT

Implementation of paper - Reverse Chain: A Generic-Rule for LLMs to Master Multi-API Planning (https://arxiv.org/abs/2310.04474v2)

152PythonDec 15, 20232 years agoMIT
faisslangchainllmsreseach-development

Similar Papers

Cite this paper

@article{zhang2023reverse,
  title  = {Reverse Chain: A Generic-Rule for LLMs to Master Multi-API Planning},
  author = {Yinger Zhang and Hui Cai and Xeirui Song and Yicheng Chen and Rui Sun and Jing Zheng},
  year   = {2023},
  eprint = {2310.04474},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.04474v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.04474.svg)](https://codeofpaper.com/paper/2310.04474)

Discussion