Re-Initialization Token Learning for Tool-Augmented Large Language Models

Chenghao Li, Liu Liu, Baosheng Yu, Jiayan Qiu, Yibing Zhan
6/17/2025
cs.CLcs.AI

No official code found. Best implementation: lichenghaobuaa/TokenLearning (1 star, last commit 2025-06-16).

Abstract

Large language models have demonstrated exceptional performance, yet struggle with complex tasks such as numerical reasoning, plan generation. Integrating external tools, such as calculators and databases, into large language models (LLMs) is crucial for enhancing problem-solving capabilities. Current methods assign a unique token to each tool, enabling LLMs to call tools through token prediction-similar to word generation. However, this approach fails to account for the relationship between tool and word tokens, limiting adaptability within pre-trained LLMs. To address this issue, we propose a novel token learning method that aligns tool tokens with the existing word embedding space from the perspective of initialization, thereby enhancing model performance. We begin by constructing prior token embeddings for each tool based on the tool's name or description, which are used to initialize and regularize the learnable tool token embeddings. This ensures the learned embeddings are well-aligned with the word token space, improving tool call accuracy. We evaluate the method on tasks such as numerical reasoning, knowledge-based question answering, and embodied plan generation using GSM8K-XL, FuncQA, KAMEL, and VirtualHome datasets. The results demonstrate clear improvements over recent baselines, including CoT, REACT, ICL, and ToolkenGPT, indicating that our approach effectively augments LLMs with tools through relevant tokens across diverse domains.

View on arXivView PDF

Code Implementations(1)

10Python, Jupyter NotebookJun 15, 20251 years ago

Similar Papers

Cite this paper

@article{li2025reinitialization,
  title  = {Re-Initialization Token Learning for Tool-Augmented Large Language Models},
  author = {Chenghao Li and Liu Liu and Baosheng Yu and Jiayan Qiu and Yibing Zhan},
  year   = {2025},
  eprint = {2506.14248},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.14248v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.14248.svg)](https://codeofpaper.com/paper/2506.14248)

Discussion