HARNESS ATLASAn Astra × QZ project ↗
← THE CORPUS

RESEARCH NOTE 05 / 2023

Toolformer

Toolformer: Language Models Can Teach Themselves to Use Tools

Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, Thomas Scialom

arXiv:2302.04761v1 · submitted 2023-02-09

Corpus interpretation

The idea in one paragraph.

A model can teach itself when and how to call APIs by self-annotating a corpus with candidate calls and keeping only those that reduce its own loss.

THE MACHINERY

01

Self-supervised API annotation

Sample candidate calls, execute them, keep those that lower perplexity on the following tokens.

02

Loss-reduction filter

Use the model's own loss as the verifier for whether a call was worth making.

What the paper reports.

Findings are reproduced as concise corpus summaries, with their original confidence labels. They are not independent replications.

Paper reports

Trains a model to decide which APIs to call, when to call them, what arguments to pass, and how to incorporate results.

Inspect a source excerpt
a model trained to decide which APIs to call, when to call them, what arguments to pass, and how to…
Read the passage in context on arXiv ↗
Paper reports

Achieves substantially improved zero-shot performance across a variety of downstream tasks, often competitive with much larger models, without sacrificing core language modelling ability.

LIMITATIONS / CORPUS READING

Where to keep your judgement.

  • Tools are fixed at training time; the set cannot grow at inference.
  • Each call is independent - no composition of tools into procedures.
Atlas interpretation

Why it belongs in this atlas.

The complement to WebGPT: rather than prompting tool use, bake it in. Both stop at the same ceiling - a tool list someone else wrote.

Read the connections.