Agents & Tool Use · 2023

Toolformer: LMs Can Teach Themselves to Use Tools

Timo Schick, Jane Dwivedi-Yu, Roberto Dessi, et al.

Trains a model to decide when to call external APIs and with what arguments using a self-supervised objective, removing the need for human annotation of tool-use demonstrations.

Editorial record

Plain-language summary

The model samples candidate API calls (calculator, search, calendar, question-answering, translation) inside ordinary text, executes them, and keeps only the calls whose returned results lower the perplexity of the following tokens, producing a training set it then fine-tunes on. As a result a 6.7B-parameter model learns to invoke tools where they help and gains on arithmetic, factual QA, and temporal tasks without degrading its core language modeling. The mechanism showed tool use can be bootstrapped from the model's own predictions rather than curated examples.

Knowledge graph

Relationships

Antecedents

Descendants

Source record

Provenance

Record ID
P-231
Record created
2026-07-13
Last reviewed
2026-07-14
Record version
2

Citation caveat: Citation metadata is approximate and marked unverified in the source dataset.