Toolformer: Language Models Can Teach Themselves to Use Tools
Timo SchickJane Dwivedi-YuRoberto DessiRoberta RaileanuMaria LomeliEric HambroLuke ZettlemoyerNicola CanceddaThomas Scialom
Timo Schick
Jane Dwivedi-Yu
Roberto Dessi
Roberta Raileanu
Maria Lomeli
Eric Hambro
Luke Zettlemoyer
Nicola Cancedda
Thomas Scialom
+9
Toolformer trains language models to self-supervise the use of external tools, deciding which API to call, when, with what arguments, and how to integrate results into future token prediction. Requiring only a few demonstrations per API, it integrates tools like a calculator, Q&A system, search engine, translator, and calendar. This substantially improves zero-shot performance on downstream tasks, often rivaling larger models, without sacrificing core language-modeling ability.

OpenReview ·
· May 10, 2023