vix.ing · top · new · best · stats

Toolformer: Language Models Can Teach Themselves to Use Tools

2023/02/09 by Timo Schick, Schick, Timo, Jane Dwivedi-Yu +15 · 7 voices · 1,163 citations
Computer Science · #Artificial intelligence #Calculator #Computer science #Data mining #Language model #Natural Language Processing Techniques #Natural language processing #Programming language #Range (aeronautics) #Scale (ratio) #Security token #Simple (philosophy) #Table (database) #Topic Modeling #Variety (cybernetics)

paper · pdf · doi:10.48550/arxiv.2302.04761

published in arXiv (Cornell University) (Cornell University)

openalex publication_date 2023/02/09 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

Language models (LMs) exhibit remarkable abilities to solve new tasks from just a few examples or textual instructions, especially at scale. They also, paradoxically, struggle with basic functionality, such as arithmetic or factual lookup, where much simpler and smaller models excel. In this paper, we show that LMs can teach themselves to use external tools via simple APIs and achieve the best of both worlds. We introduce Toolformer, a model trained to decide which APIs to call, when to call them, what arguments to pass, and how to best incorporate the results into future token prediction. This is done in a self-supervised way, requiring nothing more than a handful of demonstrations for each API. We incorporate a range of tools, including a calculator, a Q&A system, two different search engines, a translation system, and a calendar. Toolformer achieves substantially improved zero-shot performance across a variety of downstream tasks, often competitive with much larger models, without sacrificing its core language modeling abilities.

Cited by

Discussions

Related