Introduction
Reinforcement learning (RL) has recently catalyzed significant advancements in Large Language Model (LLM) capabilities, particularly in alignment (RLHF) and reasoning tasks. However, these successes have primarily been limited to single-turn, single-task settings where feedback is immediate. Real-world autonomous agents require a multi-turn, multi-task approach, interacting with environments over numerous steps and adapting to diverse tools.
Scaling RL for these complex agentic scenarios introduces three primary challenges:
- Infrastructure Bottlenecks: Variable trajectory lengths in multi-turn tasks lead to GPU idle time in traditional synchronous pipelines.
- Exploration Decay: Massive state spaces often cause models to "collapse" into repeating stale data rather than exploring new successful paths.
- Task Interference: Training on diverse tasks (e.g., web browsing vs. SQL querying) can lead to instability as different tasks learn at varying rates.
The AgentRL Framework
AgentRL addresses these hurdles through a combination of systems engineering and algorithmic innovation.
Asynchronous Pipeline and Containerization
To eliminate GPU idle time, AgentRL decouples data generation (rollouts) from model training. Rollout and training engines run concurrently on separate GPU groups. Environments are standardized via a unified function-call API and isolated within Docker containers, managed by a high-performance controller.
Cross-Policy Sampling and Task Normalization
To enhance exploration, AgentRL utilizes a pool of different models or historical checkpoints to generate trajectories. Actions are randomly sampled from this pool at each step, creating "Frankenstein" trajectories that allow the agent to discover novel state spaces. To stabilize multi-task learning, RL advantage estimates are normalized per task within each batch, preventing fast-learning tasks from dominating gradient updates.
Evaluation and Benchmarks
The framework was evaluated using AgentBench-FC, a standardized function-calling version of five tasks: ALFWorld, DB (SQL), KG (Knowledge Graph), OS (Ubuntu), and WebShop. To test out-of-distribution generalization, the authors used the Berkeley Function Calling Leaderboard (BFCL-v3). Initial training sets were bootstrapped using synthetic data generated via Self-Instruct (using Claude 4 and OpenAI o3).
Key Results
AgentRL demonstrates significant performance gains over both base models and leading proprietary systems. When applied to Qwen2.5-32B, the framework achieved a 70.4% average success rate across AgentBench-FC.
As shown in the results, AgentRL-trained models significantly outperform GPT-5 (52.2%), Claude-Sonnet-4 (57.4%), and DeepSeek-R1 (49.3%). Furthermore, the framework proved effective across various model sizes (3B to 32B) and architectures. On the unseen BFCL-v3 benchmark, multi-turn task performance improved by 3%, indicating that the model learned generalizable agentic skills.
Insights and Future Directions
A critical takeaway is that asynchrony is essential for scaling agentic RL; the pipeline nearly doubled training throughput (from ~29K to ~56K tokens/s on 64 GPUs). Additionally, task advantage normalization successfully mitigated the "jack of all trades" problem, allowing a single generalist model to match the performance of five task-specific specialists.
While highly effective, cross-policy sampling can introduce minor distributional shifts. Future work will focus on "adaptive policy weighting" to refine this sampling method and scaling the framework to even larger models in unconstrained, real-world environments.
Summary updated