arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.13389cs.AI
收藏

使用强化功能令牌微调进行推理

Reasoning with Reinforced Functional Token Tuning

Zhejiang University(浙江大学);Alibaba Cloud Computing(阿里巴巴云计算);Nanyang Technological University(南洋理工大学)

Kongcheng Zhang, Qi Yao, Baisheng Lai, Jiaxing Huang, Wenkai Fang, Dacheng Tao, Mingli Song, Shunyu Liu

AI总结:

本文提出 RFTT 框架,通过可学习功能令牌、监督微调与在线强化学习,使 LLM 能自我改进推理,并在 MATH 上显著提升 Qwen 与 LLaMA 模型性能。

摘要:

在本工作中,我们提出了强化功能令牌微调(Reinforced Functional Token Tuning,RFTT),这是一种新颖的强化微调框架,可赋予大语言模型(LLM)自我博弈式学习推理的能力。与以往由提示驱动的推理研究不同,RFTT 将一组丰富的可学习功能令牌(例如 <analyze>、<verify>、<refine>)直接嵌入模型词表,使思维链构建能够具备多样的类人推理行为。具体而言,RFTT 包含两个阶段:(1)监督微调执行提示驱动的树搜索,以获得带有功能令牌标注的自生成训练数据,从而预热模型,使其学习这些用于推理的令牌;(2)在线强化学习进一步允许模型通过功能令牌采样探索不同的推理路径,而无需依赖提示,从而促进功能性推理的有效自我改进。大量实验证明了所提出的 RFTT 在数学基准上的优越性,在 MATH 数据集上显著提升了 Qwen-2.5-7B-Instruct(从 70.6% 到 79.8%)和 LLaMA-3.1-8B-Instruct(从 32.2% 到 60.2%)。此外,在推理时,随着搜索 rollout 数量增加,RFTT 的性能持续提升。我们的代码可在 https://github.com/sastpg/RFTT 获取。

英文摘要:

In this work, we propose Reinforced Functional Token Tuning (RFTT), a novel reinforced fine-tuning framework that empowers Large Language Models (LLMs) with self-play learn-to-reason capabilities. Unlike prior prompt-driven reasoning efforts, RFTT embeds a rich set of learnable functional tokens (e.g., <analyze>, <verify>, <refine>) directly into the model vocabulary, enabling chain-of-thought construction with diverse human-like reasoning behaviors. Specifically, RFTT comprises two phases: (1) supervised fine-tuning performs prompt-driven tree search to obtain self-generated training data annotated with functional tokens, which warms up the model to learn these tokens for reasoning; and (2) online reinforcement learning further allows the model to explore different reasoning pathways through functional token sampling without relying on prompts, thereby facilitating effective self-improvement for functional reasoning. Extensive experiments demonstrate the superiority of the proposed RFTT on mathematical benchmarks, significantly boosting Qwen-2.5-7B-Instruct (70.6% to 79.8%) and LLaMA-3.1-8B-Instruct (32.2% to 60.2%) on the MATH dataset. Moreover, the performance of RFTT consistently improves with more search rollouts at inference time. Our code is available at https://github.com/sastpg/RFTT.

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

↑