Lean4AgenticRL:基于可验证多级过程奖励推进智能体强化学习
Lean4AgenticRL: Advancing Agentic RL with Verifiable Multi-level Process Rewards
AI总结:
本研究提出首个基于Lean4形式化模式的多级过程奖励智能体RL框架Lean4AgenticRL,训练出LAR系列模型,在TerminalBench-2.1等基准上优于同等规模模型,验证了形式化方法对智能体RL的提升潜力。
摘要:
提升大型语言模型(LLM)的智能体能力以解决复杂软件工程(SWE)及通用终端使用问题是一项紧迫挑战。当前最先进的LLM通常经过大规模智能体强化学习(RL)训练,但大多依赖高层结果奖励,极少考虑低层工具调用和中层工作流阶段奖励,导致训练效果不佳。为克服这一局限,我们提出Lean4AgenticRL,据我们所知,这是首个将多级过程奖励基于统一Lean4形式化模式的开放场景智能体RL框架。Lean4AgenticRL首先构建特定问题的工作流系统,在执行过程中平衡智能体自身能力与可控性,为后续验证奠定基础;随后,我们的工作流形式化与多级奖励标注方法可在通用 harness 系统内实现智能体行为验证,提供多级奖励以支持采用工作流阶段归一化GRPO算法的更有效智能体RL。利用Lean4AgenticRL,我们训练了LAR-9B/27B系列增强智能体能力的模型。大量实验表明,我们的模型优于同等规模的领先模型:LAR-27B在TerminalBench-2.1上达到77.3%的准确率;平均而言,我们的模型比基础模型高出9.89%,且超过我们所知的同等规模次优模型5.07%。这些结果表明,将形式化方法整合到开放场景智能体RL中具有潜力。
英文摘要:
Enhancing the agentic capabilities of Large Language Models (LLMs) to tackle complex software engineering (SWE) and general terminal-usage problems is a pressing challenge. Current state-of-the-art LLMs often go through large-scale agentic Reinforcement Learning (RL). However, they mostly rely on high-level outcome rewards, with minimal consideration of low-level toolcall and mid-level workflow-stage rewards, which makes the training less effective. To overcome this limitation, we propose **Lean4AgenticRL**, which, to the best of our knowledge, is the first framework that grounds multi-level process rewards in the unified Lean4 formalization schema for open-ended agentic RL. **Lean4AgenticRL** first builds a *problem-specific workflow* system that balances the agent's own capability and controllability during execution, laying the foundation for further verification. Subsequently, our workflow formalization and multi-level reward annotation methods enable agent behavior verification within a general harness system. It provides multi-level rewards to support more effective agentic RL with the workflow-stage-normalized GRPO algorithm. Using **Lean4AgenticRL**, we train **LAR-9B/27B**, a family of models with enhanced agentic capability. Extensive experiments indicate that our model outperforms the leading model of similar size. **LAR-27B** achieves **77.3%** on TerminalBench-2.1. On average, our models outperform the base model by **9.89%** and surpass the second-best model of comparable size we know by **5.07%**. These results indicate the potential of integrating formal methods in enhancing open-ended agentic RL.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。