New RL Algorithm Boosts Language Agent Performance in Sandboxes

Bowei He, Yankai Chen, Xiaokun Zhang, Xue Liu· July 17, 2026 View original

Summary

Researchers introduce Branching Policy Optimization (BPO), a novel reinforcement learning algorithm designed for language agents interacting with deterministic, snapshottable sandboxes. BPO improves success rates and reduces variance by sharing prefixes in rollouts, outperforming existing methods like GRPO and RLOO.

Traditional reinforcement learning algorithms for training large language model agents in sandboxes often treat each trajectory independently, similar to how human feedback is used. However, this approach overlooks a key characteristic of agent sandboxes: their deterministic, snapshottable, and resumable nature. This paper proposes a new algorithm, Branching Policy Optimization (BPO), which leverages this property. BPO constructs a single tree of rollouts where siblings share common prefixes, allowing for shared variance and more efficient learning. It adaptively snapshots the sandbox at high-entropy decision points, forks alternative actions, and computes advantages from sibling returns. This method is proven to be unbiased with strictly lower variance than trajectory-level baselines. Evaluations on benchmarks like WebShop, ALFWorld, and SWE-bench Verified, using Qwen2.5-7B and Llama-3.1-8B, show BPO significantly improves success rates by 3.6-6.1 absolute points over GRPO and RLOO at equivalent compute. It also halves gradient-norm variance and achieves top baseline performance with 38% fewer policy updates, demonstrating a more efficient and effective approach to training LLM agents.

Why it matters

This research offers a more efficient and effective way to train AI agents, particularly large language models, in simulated environments, leading to more robust and capable autonomous systems.

How to implement this in your domain

  1. 1Explore BPO's principles for developing more efficient training pipelines for LLM-based agents.
  2. 2Evaluate existing agent training workflows to identify areas where sandbox-native optimizations could be applied.
  3. 3Consider integrating snapshotting and branching strategies into custom simulation environments for AI agent development.
  4. 4Benchmark BPO-inspired techniques against current reinforcement learning methods for agent performance and computational efficiency.

Who benefits

AI DevelopmentRoboticsSoftware TestingGamingAutonomous Systems

Key takeaways

  • Branching Policy Optimization (BPO) is a new RL algorithm for LLM agents in sandboxes.
  • BPO leverages sandbox determinism and snapshotting for more efficient learning.
  • It significantly improves success rates and reduces variance compared to prior methods.
  • The algorithm achieves better performance with less computational effort.

Original post by Bowei He, Yankai Chen, Xiaokun Zhang, Xue Liu

"arXiv:2607.14171v1 Announce Type: new Abstract: Reinforcement learning has emerged as the dominant paradigm for training large language model (LLM) agents that interact with executable sandboxes. State-of-the-art algorithms such as PPO, RLOO, and GRPO inherit their rollout topolo…"

View on X

Originally posted by Bowei He, Yankai Chen, Xiaokun Zhang, Xue Liu on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses