Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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.

Rui Yang, Lin Song, Yanwei Li, Sijie Zhao, Yixiao Ge, Xiu Li, Ying Shan• 2023

Related benchmarks

TaskDatasetResultRank
3D Human Pose Estimation3DPW (test)
PA-MPJPE71
505
Visual Question AnsweringGQA (test-dev)
Accuracy41.2
178
Reasoning-based 3D Human Pose EstimationRPE benchmark
MPJPE190.5
29
Visual ReasoningNLVR2 v2 (dev)
Accuracy45.4
20
Tool Use AccuracySeen Tools
SRt82.5
7
Tool Use AccuracyUnseen Tools
SRt0.904
7
Large Multi-modal Model EvaluationLLaVA-Bench COCO v1
Conv Score0.753
6
Large Multi-modal Model EvaluationLLaVA-Bench In-the-Wild v1
Conversational Score31.1
6
Tool usage in multi-turn dialogueChatHuman Multi-turn Dialogue Benchmark 1.0 (test)
Success Rate (Args)58.2
4
Language-guided Image EditingCustom Language-Guided Image Editing (test)
Accuracy17.8
4
Showing 10 of 10 rows

Other info

Follow for update