Lean4AgenticRL: Multi-Level Process Rewards Push LAR-27B to 77.3%
Long-horizon software engineering tasks require agents to understand not just the final outcome, but also the quality of intermediate actions. A simple outcome reward provides minimal information about the usefulness of individual steps. Lean4AgenticRL combines multi-level process rewards with Lean4 formalization for open reinforcement learning. The framework builds a workflow for each task, formalizes it in Lean4, and annotates it at three levels: final outcome, stage progress, and tool calls. The GRPO algorithm with stage-wise normalization distributes credit across comparable stages of different attempts, significantly improving training efficiency. • LAR-27B: 77.3% on TerminalBench-2.1, 84.2% on SWE-Bench-Verified, outperforming the baseline by 9.89% • Three annotation levels: task outcome, workflow stage, tool-call behavior • The first framework to integrate multi-level rewards into a unified Lean4 formalization scheme
AI-processed from Hugging Face Daily Papers; edited by Hamidun News
Long-horizon software engineering tasks — whether development, debugging, or terminal automation — require agents to learn at two levels: the final outcome and the intermediate actions. However, standard outcome rewards provide limited information about which specific steps were actually useful, making efficient reinforcement learning difficult. Amazon researchers have introduced Lean4AgenticRL — the first framework to ground multi-level process rewards in a unified Lean4 formalization scheme for open agent training. Using this framework, they trained the LAR-9B and LAR-27B models, which outperform comparable counterpart models and reach 77.3% on TerminalBench-2.1.
Three annotation levels instead of one
Existing approaches rely mostly on high-level rewards for the final outcome, largely ignoring information about low-level tool-call behavior and mid-level progress through workflow stages. Lean4AgenticRL addresses this by adding three interconnected reward levels:
• Outcome reward — evaluates the success of the task's final result • Workflow-stage reward — evaluates progress at each stage of plan execution • Tool-call reward — evaluates the correctness of calls to external tools and functions
Lean4 formalization as the basis for verification
The framework starts by building a problem-specific workflow — a solution plan that balances the agent's own capabilities against the controllability of its execution. This workflow is then formalized within a unified Lean4 scheme, and all three reward levels are annotated within the same system. This formalization makes it possible to verify the agent's behavior within a shared system, guaranteeing logical consistency of its actions.
Training relies on a modified GRPO algorithm with stage-wise normalization (workflow-stage-normalized GRPO). Instead of processing each step independently, the algorithm distributes credit across comparable stages from different execution attempts. This significantly improves training efficiency, since the agent receives more precise information about which solution phases and actions actually contribute to success.
LAR-9B and LAR-27B: benchmark results
Using Lean4AgenticRL, the researchers trained two model families:
• LAR-9B (a 9-billion-parameter model) • LAR-27B (a 27-billion-parameter model)
The test results are impressive:
• LAR-27B achieved 77.3% on TerminalBench-2.1 • LAR-27B achieved 84.2% on SWE-Bench-Verified • Both models in the LAR family outperform the baseline model by an average of 9.89% • LAR-27B outperforms the best known comparably sized counterpart by 5.07%
These results demonstrate the potential of integrating formal methods into open reinforcement learning for agents. Lean4AgenticRL shows that more granular process annotation and formal verification can substantially improve agent performance on complex engineering tasks.
- Oct 27, 2026BioStack raises $9.5M for medical AI training data
- Oct 27, 2026Anthropic Files S-1 with the SEC: IPO Under Ticker ANT and $16.3 Billion in Six Months
- Oct 27, 2026Qwen3.8 Tried to Upload a File to Alibaba's Cloud in Beijing From Inside Cohere's Sandbox
- Oct 26, 2026Anthropic files S-1 with SEC, plans Nasdaq listing under ticker ANT
Key Questions Answered
What are the key details on Three annotation levels instead of one?
Existing approaches rely mostly on high-level rewards for the final outcome, largely ignoring information about low-level tool-call behavior and mid-level progress through workflow stages. Lean4AgenticRL addresses this by adding three interconnected reward levels: Outcome reward — evaluates the success of the task's final result Workflow-stage reward — evaluates progress at each stage of plan execution Tool-call reward — evaluates the correctness of calls to external tools and functions
What are the key details on Lean4 formalization as the basis for verification?
The framework starts by building a problem-specific workflow — a solution plan that balances the agent's own capabilities against the controllability of its execution. This workflow is then formalized within a unified Lean4 scheme, and all three reward levels are annotated within the same system. This formalization makes it possible to verify the agent's behavior within a shared system, guaranteeing logical consistency of its actions. Training relies on a modified GRPO algorithm with stage-wise normalization (workflow-stage-normalized GRPO). Instead of processing each step
What are the key details on LAR-9B and LAR-27B: benchmark results?
Using Lean4AgenticRL, the researchers trained two model families: LAR-9B (a 9-billion-parameter model) LAR-27B (a 27-billion-parameter model) The test results are impressive: LAR-27B achieved 77.3% on TerminalBench-2.1 LAR-27B achieved 84.2% on SWE-Bench-Verified Both models in the LAR family outperform the baseline model by an average of 9.89% LAR-27B outperforms the best known comparably sized counterpart by 5.07% These results demonstrate the potential of integrating formal methods into open reinforcement learning for agents. Lean4AgenticRL shows that more granular proce
Delegate Deep Research, Coding & Multi-Step Workflows to Nomad Agent
Deploy autonomous task execution with Nomad Agent (agent.nomadnet.ai) — automated web research, data synthesis, code generation, and MCP tool orchestration.
The AI world, distilled — once a week
Seven stories that actually mattered, hand-picked. No noise, no reposts, no press releases.
Done! Check your inbox for a confirmation.