Home / Research / How a model learns when to use a tool

How a model learns when to use a tool

Toolformer showed that a language model can teach itself when to call a tool, such as a calculator or a search engine.

What it means for you

Tool use is what turns a chatbot into an agent. A tool that cannot pick when to check a fact is just guessing.

When you test an agent, watch for this. Does it look things up when it should? Or does it answer from memory and get the number wrong for you?

Toolformer is the early proof that this judgment can be taught. The model learns when a tool helps, and when it does not.

The idea in plain words

Language models are good at words. They are bad at plain sums and at facts they must look up. A calculator or a search engine would do those jobs far better.

Toolformer let the model try out tool calls. It tried a calculator, a question system, a search engine, a translation system, and a calendar.

It kept only the calls that helped it guess what comes next. The rest it dropped.

After that training, a fairly small model beat a much larger model on several tasks. The small model had 6.7 billion parameters. It kept its skill with words too.

The key point is this. The model picks for itself when a tool is needed. No one tells it each time.

Where it shows up today

You can read the full paper on arXiv: Toolformer: Language Models Can Teach Themselves to Use Tools.

Go deeper

Want to get more from working with AI agents? Co-Intelligence by Ethan Mollick is the plain-English book on working with AI as a thinking partner. See it on Amazon.

As an Amazon Associate, MyLife's Nanny earns from qualifying purchases. The price is the same for you.

Source: Toolformer: Language Models Can Teach Themselves to Use Tools. Authors: Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, and Roberta Raileanu. Also: Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. Meta AI Research, 2023. Read the paper here: arXiv:2302.04761. These numbers are the ones in the paper when it came out. They are not a current table.

Quick check

Did it stick?

Seven quick questions from the piece above. Answer them all, then put in your email to see your score.

0 of 7 answered

The MyLife’s Nanny Newsletter

Be the first to find out about new AI agent tools and pages added to the directory.

Unsubscribe anytime. Read our Privacy Policy.