Can LLMs Learn Tools Just by Reading Their Manuals?
A research team found that language models trained on tool documentation could use tools without task-specific demonstrations. In tests across six tasks, documentation-based training matched or beat demonstration-only training, and a model trained on 200 tools significantly outperformed the demonstration-based model.
Language models can use tools such as APIs, but teaching them through worked examples can be difficult when tools are complex or examples are scarce. A research team from the University of Washington, National Taiwan University, and Google explored another route: train models to learn from the tools’ documentation.
“Teaching models to use a wider range of tools increases their capabilities, though the reported results are limited to research tasks.”Why it scores Terminator
Why manuals may teach more than examples
A demonstration shows how a tool was used for a particular task. Documentation, such as an API reference or README file, explains what the tool does and how its functions work. That broader description may help a model adapt what it learns to different requests.
The researchers’ idea was that manuals could offer a practical way to teach models about many tools. Documentation is commonly available for software, while demonstrations may be limited, especially for more complex tools. The team therefore investigated whether models could learn tool use from documentation alone.
Documentation held up in zero-shot tests
The team trained several models using documentation and demonstrations, then compared their performance across six different tasks. With documentation alone, zero-shot results were equal to or better than those of models trained only on demonstrations.
Zero-shot tool use means the model can attempt a task without having been shown a task-specific example. The finding suggests that reading how a tool works can give a model enough information to apply it in a new situation, at least for the tasks examined.
The researchers also scaled the comparison to a dataset of 200 tools. At that scale, the first model significantly outperformed the model trained on demonstrations. The result points to documentation as a potentially useful way to extend training across a larger collection of tools.
Image processing offered a harder test
The study also examined image processing, where the model learned from documentation for new, state-of-the-art modules. It carried out complex image processing and video tracking functions without additional demonstrations.
The team highlighted the model’s ability to reproduce recently released techniques, including Grounded-SAM and video tracking with Track Anything. In the researchers’ account, this showed the potential for models to discover how to use tools by learning from their documentation, rather than relying on examples that explicitly walk through the desired behavior.
A different approach to tool use
The work shifts attention toward how a model can plan and reason with written instructions about a tool. Demonstrations guide behavior through examples; documentation gives information that a model may need to interpret and apply. The researchers describe this as a new perspective on tool use with large language models.
The results do not establish that manuals will work equally well for every tool or task. They do show that, in the evaluated tasks, documentation-based training could match or exceed demonstration-only training, with a stronger result when the dataset covered 200 tools. That makes documentation a promising source of training material for models expected to work with varied software.
Read next