AIAny

Toolformer: Language Models Can Teach Themselves to Use Tools

Teaches a language model when and how to call external APIs using a few demonstrations and self-generated training data. Calls are retained only when their results improve prediction of subsequent text.

Introduction

Tool use can be learned from the language model’s own prediction errors. The useful signal is whether an API response makes subsequent text easier to predict, allowing ordinary text to supply supervision for choosing tools and arguments.

Key Findings
  • A few demonstrations seed candidate calls; execution and loss-based filtering create the fine-tuning data without extensive manual annotation.
  • On ASDiv, the GPT-J-based model scores 40.4 versus 14.8 with its APIs disabled, showing the contribution of calculator access.
  • Experiments cover question answering, search, arithmetic, translation, and dates while retaining general language modeling ability.
Who Should Read It

Great fit if you study how to generate tool-use training data. Look elsewhere if you need chained calls or interactive search: the method does not teach either, and useful examples for some tools are costly to obtain.

Information

  • Websitearxiv.org
  • OrganizationsMeta AI Research, Universitat Pompeu Fabra
  • AuthorsTimo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, Thomas Scialom
  • Published date2023/02/09

More Items

Evaluates whether language and generative models can handle the full game-development pipeline, from white-box construction and asset creation to playtesting and refinement. Across 60 tasks and four engines, strong standalone assets often fail to translate into playable integrated games.

Improves 4D video question answering by expressing object motion in the reference coordinate system required by each question. Experiments find that question-aligned relative trajectories work better than supplying world-coordinate trajectories.

Studies how a co-evolving component ecosystem can support the scaling of medical agents, focusing on the systems and components behind medical-agent development.