NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TALM: Tool Augmented Language Models

Aaron Parisi, Yao Zhao, Noah FiedelarXiv 2022 · DOI

Abstract

TALM (Tool Augmented Language Models) is a framework that enables language models to utilize external tools—such as search engines or calculators—through a unified text-to-text interface. By leveraging an iterative "self-play" technique, TALM bootstraps its own training data from a minimal set of demonstrations. This approach allows smaller models to significantly outperform standard models over ten times their size on complex knowledge and reasoning tasks.

Introduction

While scaling Transformer-based language models (LMs) has yielded impressive results, increasing parameter counts does not inherently solve fundamental limitations. Standard LMs often suffer from stale knowledge (limited by training data cutoff), hallucinations (confidently stating incorrect facts), and an inability to access real-time or private data.

TALM addresses these challenges by treating tool use as a simple text-generation task. Unlike previous methods requiring complex architectural modifications or massive human-labeled datasets, TALM enables models to learn tool interaction autonomously.

Methodology

Text-to-Text Tool Interface

TALM maintains the standard text-to-text paradigm of models like T5. Tool interaction is facilitated through specific delimiters. When a model generates a |tool-call token followed by a query, an external system executes the tool and appends the |result back into the text stream. This allows the model to continue generating its final output based on the tool's feedback.

Comparison between a standard Language Model and a Tool Augmented Language Model.

Iterative Self-Play

The core innovation of TALM is its iterative self-play algorithm. Training typically requires thousands of examples, but TALM begins with a "bootstrap" set of as few as 150 demonstrations. During self-play, the model attempts to solve problems using tools. If the final answer is correct (verified against ground truth), the successful execution trace—including the tool call and result—is added to the training set for the next iteration. This creates a virtuous cycle where the model progressively improves its tool-use capabilities.

Evaluation and Results

The researchers evaluated TALM using the T5 architecture in three sizes: Base (220M), Large (770M), and XL (3B). Testing focused on two primary domains:

  • Knowledge (Natural Questions): Using a BM25-based retrieval tool to search Wikipedia.
  • Reasoning (MathQA): Using a calculator/solver tool for mathematical word problems.

Key Performance Metrics

TALM demonstrated that tool integration can serve as a substitute for model scale. For instance, a 220M parameter TALM (Base) achieved an F1 score of ~42 on Natural Questions, surpassing a 3B parameter standard LM (~35).

Performance gains across self-play rounds for Knowledge (NQ) and Reasoning (MathQA) tasks.

The iterative self-play rounds showed consistent performance improvements, particularly in the early stages, proving the model's ability to bootstrap effectively from limited data. Furthermore, TALM exhibited strong generalization to out-of-distribution (OOD) tasks, such as answering questions about "Wordle" (a post-training phenomenon) and solving arithmetic with numbers far larger than those seen during training.

Discussion and Future Work

TALM proves that small, tool-augmented models can be more capable than massive, "closed-book" models. However, several areas for future research remain. Current evaluations focus on "single-hop" tasks; extending TALM to "multi-hop" reasoning—where multiple sequential tool calls are required—is a key next step. Additionally, the self-play loop currently depends on automated verification (ground-truth labels), which may be challenging to implement for more subjective or creative tasks.

Summary updated

BibTeX
@misc{parisi2022talm,
  author = {Aaron Parisi and Yao Zhao and Noah Fiedel},
  title = {{TALM: Tool Augmented Language Models}},
  year = {2022},
  eprint = {2205.12255},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.12255},
}
Figure