AgentRL: Scaling Agentic Reinforcement Learning with a Multi-Turn, Multi-Task Framework

Hanchen Zhang, Xiao Liu, Bowen Lv, Xueqiao Sun, Bohao Jing, Iat Long Iong, Zhenyu Hou, Zehan Qi, Hanyu Lai, Yifan Xu, Rui Lu, Hongning Wang, Jie Tang, Yuxiao Dong · DOI

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:

  1. Infrastructure Bottlenecks: Variable trajectory lengths in multi-turn tasks lead to GPU idle time in traditional synchronous pipelines.
  2. Exploration Decay: Massive state spaces often cause models to "collapse" into repeating stale data rather than exploring new successful paths.
  3. 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.

The AgentRL architecture featuring an asynchronous pipeline, cross-policy sampling, and task advantage normalization.

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.

Success rate improvements across environments (left) and scaling performance compared to proprietary models (right).

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

BibTeX
@misc{zhang2025agentrl,
  author = {Hanchen Zhang and Xiao Liu and Bowen Lv and Xueqiao Sun and Bohao Jing and Iat Long Iong and Zhenyu Hou and Zehan Qi and Hanyu Lai and Yifan Xu and Rui Lu and Hongning Wang and Jie Tang and Yuxiao Dong},
  title = {{AgentRL: Scaling Agentic Reinforcement Learning with a Multi-Turn, Multi-Task Framework}},
  year = {2025},
  eprint = {2510.04206},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.04206},
}
Figure