Replacing thinking with tool usage enables reasoning in small language models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Rainone, Corrado, Bakker, Tim, Memisevic, Roland
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909677538770944
author Rainone, Corrado
Bakker, Tim
Memisevic, Roland
author_facet Rainone, Corrado
Bakker, Tim
Memisevic, Roland
contents Recent advances have established a new machine learning paradigm based on scaling up compute at inference time as well as at training time. In that line of work, a combination of Supervised Fine-Tuning (SFT) on synthetic demonstrations and Reinforcement Learning with Verifiable Rewards (RLVR) is used for training Large Language Models to expend extra compute during inference in the form of "thoughts" expressed in natural language. In this paper, we propose to instead format these tokens as a multi-turn interaction trace with a stateful tool. At each turn, the new state of the tool is appended to the context of the model, whose job is to generate the tokens necessary to control the tool via a custom DSL. We benchmark this approach on the problem of repairing malfunctioning Python code, and show that this constrained setup allows for faster sampling of experience and a denser reward signal, allowing even models of size up to 3B parameters to learn how to proficiently expend additional compute on the task.
format Preprint
id arxiv_https___arxiv_org_abs_2507_05065
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Replacing thinking with tool usage enables reasoning in small language models
Rainone, Corrado
Bakker, Tim
Memisevic, Roland
Machine Learning
Artificial Intelligence
Recent advances have established a new machine learning paradigm based on scaling up compute at inference time as well as at training time. In that line of work, a combination of Supervised Fine-Tuning (SFT) on synthetic demonstrations and Reinforcement Learning with Verifiable Rewards (RLVR) is used for training Large Language Models to expend extra compute during inference in the form of "thoughts" expressed in natural language. In this paper, we propose to instead format these tokens as a multi-turn interaction trace with a stateful tool. At each turn, the new state of the tool is appended to the context of the model, whose job is to generate the tokens necessary to control the tool via a custom DSL. We benchmark this approach on the problem of repairing malfunctioning Python code, and show that this constrained setup allows for faster sampling of experience and a denser reward signal, allowing even models of size up to 3B parameters to learn how to proficiently expend additional compute on the task.
title Replacing thinking with tool usage enables reasoning in small language models
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2507.05065