paper-with-me

홈 › Papers

Toolformer: Language Models Can Teach Themselves to Use Tools

2023-02-09 · NeurIPS 2023 11 · Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, Thomas Scialom

Language models (LMs) exhibit remarkable abilities to solve new tasks from just a few examples or textual instructions, especially at scale. They also, paradoxically, struggle with basic functionality, such as arithmetic or factual lookup, where much simpler and smaller models excel. In this paper, we show that LMs can teach themselves to use external tools via simple APIs and achieve the best of both worlds. We introduce Toolformer, a model trained to decide which APIs to call, when to call them, what arguments to pass, and how to best incorporate the results into future token prediction. This is done in a self-supervised way, requiring nothing more than a handful of demonstrations for each API. We incorporate a range of tools, including a calculator, a Q\&A system, two different search engines, a translation system, and a calendar. Toolformer achieves substantially improved zero-shot performance across a variety of downstream tasks, often competitive with much larger models, without sacrificing its core language modeling abilities.

📄 PDF Abstract BibTeX arXiv:2302.04761

Code (1)

lucidrains/toolformer-pytorch pytorch

Tasks

Language ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

Graph-ToolFormer: To Empower LLMs with Graph Reasoning Ability via Prompt Augmented by ChatGPT

2023-04-10 · Jiawei Zhang

In this paper, we aim to develop a large language model (LLM) with the reasoning ability on complex graph data. Currently, LLMs have achieved very impressive performance on various natural language learning tasks, extens…

Graph LearningKnowledge GraphsLanguage ModellingLarge Language Model+1

Graph-ToolFormer: To Empower LLMs with Graph Reasoning Ability via Prompt Dataset Augmented by ChatGPT

2023-04-10 · Preprint 2023 4 · Jiawei Zhang

In this paper, we aim to develop a large language model (LLM) with the reasoning ability on complex graph data. Currently, LLMs have achieved very impressive performance on various natural language learning tasks, extens…

Community DetectionGraph ClassificationGraph LearningIn-Context Learning+5

OR-Toolformer: Modeling and Solving Operations Research Problems with Tool Augmented Large Language Models

2025-09-24 · Jianzhang Zhang, Jialong Zhou, Chuang Liu arxiv

Large language models (LLMs) demonstrate strong mathematical reasoning, but reliance on closed-source APIs for OR tasks raises privacy concerns, and training open-source models from scratch incurs high compute costs. We …

Mathematical Reasoning

Internalizing Tools as Morphisms in Graded Transformers

2025-11-21 · Tony Shaska arxiv

We introduce a graded formulation of internal symbolic computation for transformers. The hidden space is endowed with a grading $V=\bigoplus_{g\in G}V_g$, and symbolic operations are realized as typed block maps (morphis…

A Piece of Theatre: Investigating How Teachers Design LLM Chatbots to Assist Adolescent Cyberbullying Education

2024-02-27 · Michael A. Hedderich, Natalie N. Bazarova, Wenting Zou, Ryun Shim 외

Cyberbullying harms teenagers' mental health, and teaching them upstanding intervention is crucial. Wizard-of-Oz studies show chatbots can scale up personalized and interactive cyberbullying education, but implementing s…

Chatbot