Agents & Tool Use · 2023
Toolformer: LMs Can Teach Themselves to Use Tools
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
Converts into infrastructureEvidence: Strongly supported
Function Calling / MRKL / Model Context Protocol
Tool use becomes function-calling/MCP infrastructure
P-232
Descendants
ExtendsEvidence: Strongly supported
ReAct: Synergizing Reasoning and Acting in LMs
Toolformer trains tool use rather than prompting it
P-231
Source record
Provenance
- Record ID
- P-231
- Record created
- 2026-07-13
- Last reviewed
- 2026-07-14
- Record version
- 2
- https://arxiv.org/abs/2302.04761
- arXiv:2302.04761
Citation caveat: Citation metadata is approximate and marked unverified in the source dataset.