Expanding the Action Space of LLMs to Reason Beyond Language

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Yue, Zhongqi, Wang, Weishi, Zhan, Yundaichuan, Li, Juncheng, Dahlmeier, Daniel, Johansson, Fredrik D.
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866918162329501696
author Yue, Zhongqi
Wang, Weishi
Zhan, Yundaichuan
Li, Juncheng
Dahlmeier, Daniel
Johansson, Fredrik D.
author_facet Yue, Zhongqi
Wang, Weishi
Zhan, Yundaichuan
Li, Juncheng
Dahlmeier, Daniel
Johansson, Fredrik D.
contents Large Language Models (LLMs) are powerful reasoners in natural language, but their actions are typically confined to outputting vocabulary tokens. As a result, interactions with external environments -- such as symbolic operators or simulators -- must be expressed through text in predefined formats, parsed, and routed to external interfaces. This overloads the model's language with both reasoning and control duties, and requires a hand-crafted parser, external to the LLM. To address this, we decouple environment interactions from language by internalizing them in an Expanded Action space (ExpA), beyond the vocabulary. The model starts reasoning in the default language environment, but may trigger routing actions and switch to an external environment at any time. From there, the model can only invoke environment-specific actions, receive feedback from the environment, and potentially route back to language as a result. To promote effective exploration of the expanded action space and new environments, we introduce ExpA Reinforcement Learning (EARL) with counterfactual policy optimization. On tasks requiring multi-turn interactions and contingent planning, EARL outperforms strong baselines with vocabulary-constrained actions. It performs robustly across calculator-based multi-task learning and, in the partially observed sorting problem, achieves perfect Sort-4 accuracy while self-discovering an efficient algorithm competitive with classical designs.
format Preprint
id arxiv_https___arxiv_org_abs_2510_07581
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Expanding the Action Space of LLMs to Reason Beyond Language
Yue, Zhongqi
Wang, Weishi
Zhan, Yundaichuan
Li, Juncheng
Dahlmeier, Daniel
Johansson, Fredrik D.
Machine Learning
Large Language Models (LLMs) are powerful reasoners in natural language, but their actions are typically confined to outputting vocabulary tokens. As a result, interactions with external environments -- such as symbolic operators or simulators -- must be expressed through text in predefined formats, parsed, and routed to external interfaces. This overloads the model's language with both reasoning and control duties, and requires a hand-crafted parser, external to the LLM. To address this, we decouple environment interactions from language by internalizing them in an Expanded Action space (ExpA), beyond the vocabulary. The model starts reasoning in the default language environment, but may trigger routing actions and switch to an external environment at any time. From there, the model can only invoke environment-specific actions, receive feedback from the environment, and potentially route back to language as a result. To promote effective exploration of the expanded action space and new environments, we introduce ExpA Reinforcement Learning (EARL) with counterfactual policy optimization. On tasks requiring multi-turn interactions and contingent planning, EARL outperforms strong baselines with vocabulary-constrained actions. It performs robustly across calculator-based multi-task learning and, in the partially observed sorting problem, achieves perfect Sort-4 accuracy while self-discovering an efficient algorithm competitive with classical designs.
title Expanding the Action Space of LLMs to Reason Beyond Language
topic Machine Learning
url https://arxiv.org/abs/2510.07581