Spreeze: High-Throughput Parallel Reinforcement Learning Framework

Jing Hou, Guang Chen, Ruiqi Zhang, Zhijun Li, Shangding Gu, Changjun Jiang · DOI

Introduction

Reinforcement learning (RL) is often bottlenecked by the need for agents to generate their own data through environment interaction. This creates a resource conflict between CPU-heavy environment simulation and GPU-heavy neural network updates. Existing frameworks frequently suffer from communication overhead, where hardware sits idle during data transfer or synchronization. Spreeze is a lightweight parallel framework designed to maximize RL throughput on a single desktop computer by optimizing data movement and hardware utilization.

Methodology

Spreeze addresses communication bottlenecks through several architectural innovations focused on asynchronous execution and efficient memory management.

Asynchronous Parallelization

The framework decouples four core operations into independent concurrent processes: Experience Sampling, Network Update, Performance Evaluation, and Visualization. This ensures the GPU remains saturated with update tasks while the CPU continuously simulates environment steps.

System architecture of Spreeze showing asynchronous parallelization and shared memory data transfer.

Shared Memory and Data Transfer

To eliminate the "Queue tax"—the overhead associated with standard Python inter-process communication—Spreeze utilizes shared memory (RAM). This allows the update process to read experience data directly from the sampler's memory space without time-consuming serialization. While high-frequency data stays in RAM, the framework uses SSDs for infrequent model weight synchronization.

Parallelization Strategies

For algorithms like Soft Actor-Critic (SAC), Spreeze supports "Actor-Critic" model parallelism. Unlike standard data parallelism, which splits batches across GPUs, this strategy distributes the Actor and Critic networks across dual GPUs. This minimizes PCIe bus traffic and allows for independent, concurrent updates of policy and value functions.

Comparison between standard data parallelism and the proposed 'Actor-Critic' model parallelism.

Hardware-Aware Scaling

A real-time controller monitors CPU and GPU loads, automatically adjusting the number of sampling processes and batch sizes. This hyperparameter adaptation ensures the framework finds the hardware's "sweet spot," preventing resource exhaustion while maximizing throughput.

Evaluation and Results

Spreeze was evaluated on standard RL benchmarks, including OpenAI Gym (Pendulum-v0) and high-dimensional PyBullet robotics environments (Walker2D, Ant, and Humanoid).

On a desktop equipped with an AMD 5900X and NVIDIA 1060, Spreeze achieved:

  • Throughput: An experience sampling rate of 15,000 Hz and a network update rate of 370,000 Hz.
  • Efficiency: An average 72.7% reduction in training time compared to RLlib, ACME, and rlpyt.
  • Performance: In the complex Humanoid task, Spreeze reached target rewards in approximately 15 minutes, significantly faster than competing frameworks.

Conclusion

Spreeze demonstrates that treating hardware utilization as a first-class optimization problem can yield massive performance gains in RL training on commodity hardware. By eliminating communication bottlenecks through shared memory and asynchronous execution, it enables researchers to iterate significantly faster. Future work will explore extending these optimizations to on-policy algorithms and multi-agent systems.

Summary updated

BibTeX
@article{hou2025spreeze,
  author = {Jing Hou and Guang Chen and Ruiqi Zhang and Zhijun Li and Shangding Gu and Changjun Jiang},
  title = {{Spreeze: High-Throughput Parallel Reinforcement Learning Framework}},
  journal = {IEEE Trans. Parallel Distributed Syst.},
  year = {2025},
  url = {https://openreview.net/forum?id=ST4aX21S2v},
}
Figure