arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.07581cs.LG
收藏

扩展大语言模型的行动空间以超越语言进行推理

Expanding the Action Space of LLMs to Reason Beyond Language

Chalmers University of Technology and University of Gothenburg(查尔姆斯理工大学和哥德堡大学);SAP(SAP公司);Zhejiang University(浙江大学)

Zhongqi Yue, Weishi Wang, Yundaichuan Zhan, Juncheng Li, Daniel Dahlmeier, Fredrik D. Johansson

AI总结:

本文提出扩展行动空间(ExpA)及EARL强化学习方法,将LLM的环境交互从语言中解耦,通过路由行动切换外部环境,在排序任务中实现完美准确率并自发现高效算法。

摘要:

大语言模型(LLMs)是自然语言中的强大推理器,但其行动通常局限于输出词汇标记。因此,与外部环境(如符号运算符或模拟器)的交互必须通过预定义格式的文本表达,经过解析后路由到外部接口。这使模型的语言同时承担了推理和控制的双重职责,并且需要一个手工设计的、独立于LLM的解析器。为解决这一问题,我们将环境交互从语言中解耦,通过将其内化到词汇之外的扩展行动空间(ExpA)中。模型在默认语言环境中开始推理,但可随时触发路由行动并切换到外部环境。从那里,模型只能调用特定于环境的行动,接收来自环境的反馈,并可能因此路由回语言。为了促进对扩展行动空间和新环境的有效探索,我们引入了带有反事实策略优化的ExpA强化学习(EARL)。在需要多轮交互和条件规划的任务上,EARL优于受词汇约束行动的强基线。它在基于计算器的多任务学习中表现稳健,并且在部分可观测的排序问题中,实现了完美的Sort-4准确率,同时自我发现了一种与经典设计相竞争的高效算法。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑