Highly Parallelized Reinforcement Learning Training with Relaxed Assignment Dependencies

Zhouyu He, Peng Qiao, Rongchun Li, Yong Dou, Yusong Tan

Abstract

As the demands for superior agents grow, the training complexity of Deep Reinforcement Learning (DRL) becomes higher. Dividing the DRL training process into sub-tasks and using parallel computation can effectively reduce training costs. However, current DRL training systems lack sufficient parallelization due to data assignment between sub-task components. We propose TianJi, a high-throughput distributed RL training system that relaxes assignment dependencies between sub-task components and enables event-driven asynchronous communication. TianJi achieves a convergence time acceleration ratio of up to 4.37x compared to related frameworks and demonstrates superior scalability and efficiency.

The Bottleneck of Assignment Dependencies

Deep Reinforcement Learning (DRL) is notoriously computationally expensive. To accelerate training, systems typically split the workload into Actors (data collectors) and Learners (model updaters). However, most current frameworks suffer from "assignment dependencies"—synchronous "stop-and-wait" moments where one component idles while waiting for data or weights from another.

The authors identify three primary bottlenecks that prevent systems from reaching theoretical maximum throughput:

  1. Dependency I: Actors waiting for updated weights from the Learner.
  2. Dependency II: Internal delays within the Actor between policy inference and environment simulation.
  3. Dependency III: Learners waiting for trajectory data from Actors.
Comparison of DRL training styles, highlighting how TianJi (f) relaxes the assignment dependencies (I, II, III) found in serial and existing parallel frameworks.

The TianJi Framework

TianJi addresses these bottlenecks by "relaxing" rigid dependencies, allowing components to run asynchronously. The system is built on three main pillars:

  • Decentralized Data-driven Training: By merging inference and simulation into a single Actor unit, TianJi eliminates internal delays (Dependency II). It treats the exchange of weights and trajectories as asynchronous events rather than blocking requirements.
  • Event-driven Asynchronous Communication: Instead of a "pull" model where components request data, TianJi uses an "active pushing" mode. Senders push data as soon as it is ready, allowing computation and communication to overlap significantly.
  • Production-Consumption Balance Strategy: To prevent issues like data staleness (training on obsolete data), TianJi employs a mathematical model to balance resource allocation between Actors (producers) and Learners (consumers). This ensures high throughput while maintaining the sample quality necessary for convergence.

The TianJi System Architecture

The architecture is designed to maintain clear boundaries between sub-task components while facilitating high-speed data exchange through asynchronous loops.

The TianJi system architecture, illustrating the asynchronous Collector, Actor, and Learner loops and their event-driven communication paths.

As shown in the architecture, the Collector Loop acts as a buffer that decouples the production of trajectories from their consumption by the Learner Loop. The Actor Loops interact with environments independently, pushing results to the collector as events occur, which minimizes idle time across the cluster.

Experimental Evaluation

TianJi was evaluated using standard benchmarks, including Atari 2600 games and OpenAI Gym. The system was tested with both off-policy (DQN) and on-policy (PPO) algorithms to demonstrate its versatility.

Key Results:

  • Convergence Speed: TianJi achieved a convergence time acceleration ratio of up to 4.37x compared to baseline systems.
  • Scalability: When scaled to eight nodes, TianJi showed a 7.13x increase in throughput relative to the XingTian framework.
  • On-Policy Efficiency: For PPO, which is sensitive to data staleness, TianJi outperformed RLlib and XingTian by factors of 4.36x and 2.95x, respectively.
  • Hardware Efficiency: The communication layer approaches physical hardware limits (Ethernet/InfiniBand), significantly outperforming previous state-of-the-art systems.

Conclusion

TianJi demonstrates that relaxing strict serial logic in parallel DRL systems can yield massive throughput gains without sacrificing convergence. While the "balance strategy" effectively manages data staleness in practice, future research will focus on providing more rigorous theoretical proofs of convergence under these relaxed conditions and testing the system on high-fidelity 3D environments like autonomous driving simulators.

Summary updated

BibTeX
@misc{he2025highly,
  author = {Zhouyu He and Peng Qiao and Rongchun Li and Yong Dou and Yusong Tan},
  title = {{Highly Parallelized Reinforcement Learning Training with Relaxed Assignment Dependencies}},
  year = {2025},
  eprint = {2502.20190},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.20190},
}
Figure