Cog-Rethinker:面向 LLM 推理的分层元认知强化学习
Cog-Rethinker: Hierarchical Metacognitive Reinforcement Learning for LLM Reasoning
AI总结:
本文提出 Cog-Rethinker 分层元认知 RL 框架,通过问题分解与参考错误解答修正两阶段 rollout 提升弱 LLM 的样本利用率,并结合 SFT 冷启动,在数学推理基准上实现更优性能与更快收敛。
摘要:
大语言模型(LLM)的最新进展表明,通过采用可验证奖励的强化学习(RL),模型能够展现出显著的推理能力,从而推动了类 O1 和类 R1 推理模型的发展。直接使用 RL 从基础模型进行训练被称为 zero-RL。然而,以往工作依赖通过固定提示模板激活 LLM 的内在能力。对于能力较弱的 LLM,这种策略会造成严重的采样低效,因为在推理任务中,以准确率为导向的过滤阶段会使大多数问题产生无效输出,从而浪费样本。为解决该问题,我们提出 Cog-Rethinker,这是一种用于 LLM 推理的新型分层元认知 RL 框架。Cog-Rethinker 主要关注 RL 训练中的 rollout 过程。在直接 rollout 之后,Cog-Rethinker 通过分层元认知两阶段框架提高样本利用率。该框架借鉴人类解决问题时的认知过程:首先,提示策略将零准确率问题分解为若干子问题,以生成最终推理结果;其次,针对前一 rollout 阶段中的零准确率问题,进一步提示策略参考此前的错误解答来修正这些答案。此外,为实现两种新推理模式的冷启动,并保持提示模板在训练与测试之间的一致性,Cog-Rethinker 使用两个阶段中的正确样本并采用直接 rollout 模板,对策略进行监督微调。实验结果表明,Cog-Rethinker 在多个数学推理基准上表现优越;我们还分析了其提升的样本效率,即与基线方法相比能够加快收敛。
英文摘要:
Contemporary progress in large language models (LLMs) has revealed notable inferential capacities via reinforcement learning (RL) employing verifiable reward, facilitating the development of O1 and R1-like reasoning models. Directly training from base models with RL is called zero-RL. However, previous works rely upon activating LLMs' inherent capacities through fixed prompt templates. This strategy introduces substantial sampling inefficiencies for weak LLMs, as the majority of problems generate invalid outputs during accuracy-driven filtration in reasoning tasks, which causes a waste of samples. To solve this issue, we propose Cog-Rethinker, a novel hierarchical metacognitive RL framework for LLM reasoning. Our Cog-Rethinker mainly focuses on the rollout procedure in RL training. After the direct rollout, our Cog-Rethinker improves sample utilization in a hierarchical metacognitive two-stage framework. By leveraging human cognition during solving problems, firstly, it prompts policy to decompose zero-accuracy problems into subproblems to produce final reasoning results. Secondly, with zero-accuracy problems in previous rollout stage, it further prompts policy to refine these answers by referencing previous wrong solutions. Moreover, to enable cold-start of the two new reasoning patterns and maintain train-test consistency across prompt templates, our Cog-Rethinker applies supervised fine-tuning on the policy using correct samples of the two stages with direct rollout template. Experimental results demonstrate Cog-Rethinker's superior performance on various mathematical reasoning benchmarks, we also analyzed its improved sample efficiency that accelerates convergence compared to baseline methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。