GPT4Tools: Teaching Large Language Model to Use Tools via Self-instruction

By Lin Song, Yanwei Li, Sijie Zhao, Yixiao Ge, Xiu Li, Ying Shan. Neural Information Processing Systems, 2023

329 citations recorded by the source corpus.

This paper aims to efficiently enable Large Language Models (LLMs) to use multimodal tools. Advanced proprietary LLMs, such as ChatGPT and GPT-4, have shown great potential for tool usage through sophisticated prompt engineering. Nevertheless, these models typically rely on prohibitive computational costs and publicly inaccessible data. To address these challenges, we propose the GPT4Tools based on self-instruct to enable open-source LLMs, such as LLaMA and OPT, to use tools. It generates an instruction-following dataset by prompting an advanced teacher with various multi-modal contexts. By using the Low-Rank Adaptation (LoRA) optimization, our approach facilitates the open-source LLMs to solve a range of visual problems, including visual comprehension and image generation. Moreover, we provide a benchmark to evaluate the ability of LLMs to use tools, which is performed in both zero-shot and fine-tuning ways. Extensive experiments demonstrate the effectiveness of our method on various language models, which not only significantly improves the accuracy of invoking seen tools, but also enables the zero-shot capacity for unseen tools. The code and demo are available at https://github.com/StevenGrove/GPT4Tools.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition

View Paper: https://www.semanticscholar.org/paper/b458fc5261595f44b36325e5eaea1f874d65138f

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yu Qiao
  2. Ping Luo
  3. Hongsheng Li
  4. Ziwei Liu
  5. Jifeng Dai
  6. Jiaya Jia
  7. Peng Gao
  8. Renrui Zhang

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Yu Qiao
  3. Xiaogang Wang
  4. Dacheng Tao
  5. Hongsheng Li
  6. Chen Change Loy
  7. Ming-Hsuan Yang
  8. Chunhua Shen

Citations in the corpus