[Paper Review] Reverb: A Framework For Experience Replay
Reverb is a scalable, efficient, and extensible system for experience replay in reinforcement learning, designed to handle thousands of concurrent actors and learners. It supports flexible replay strategies (e.g., prioritized, FIFO, LIFO) and maintains linear throughput scaling with up to 60k inserts/second or 600k samples/second, limited primarily by network bandwidth and mutex contention in insertion workloads.
A central component of training in Reinforcement Learning (RL) is Experience: the data used for training. The mechanisms used to generate and consume this data have an important effect on the performance of RL algorithms. In this paper, we introduce Reverb: an efficient, extensible, and easy to use system designed specifically for experience replay in RL. Reverb is designed to work efficiently in distributed configurations with up to thousands of concurrent clients. The flexible API provides users with the tools to easily and accurately configure the replay buffer. It includes strategies for selecting and removing elements from the buffer, as well as options for controlling the ratio between sampled and inserted elements. This paper presents the core design of Reverb, gives examples of how it can be applied, and provides empirical results of Reverb's performance characteristics.
Motivation & Objective
- Address the growing challenge of efficiently storing and transporting large-scale experience data in distributed reinforcement learning systems.
- Enable seamless support for diverse replay strategies—such as prioritized experience replay, FIFO, and LIFO—within a single unified system.
- Support high-throughput, low-latency data insertion and sampling across thousands of concurrent clients in distributed RL training setups.
- Provide fine-grained control over the ratio of sampled to inserted data elements, crucial for tuning training dynamics in off-policy and on-policy algorithms.
- Decouple data storage and transport from algorithmic logic, allowing researchers to scale experiments without changing infrastructure components.
Proposed method
- Expose a gRPC-based API for clients to write and read raw tensor data, abstracting low-level storage concerns.
- Organize data into 'Chunks'—batched, compressed sequences of experience transitions—improving storage and transmission efficiency.
- Represent data as a two-dimensional table with rows as data elements and columns as fields (tensors), enabling structured access and efficient compression.
- Implement a flexible table abstraction that supports multiple replay strategies (e.g., uniform sampling, prioritized sampling, FIFO, LIFO) via configurable policies.
- Use sharding and concurrent access patterns to scale across multiple machines and clients, with minimal performance degradation under high load.
- Optimize for low-latency sampling by reducing mutex contention in the sampling path, which improves QPS performance by up to 200% in sharded configurations.
Experimental results
Research questions
- RQ1How can experience replay systems be architected to scale efficiently to thousands of concurrent actors and learners in distributed RL training?
- RQ2To what extent can a single system support diverse replay strategies (e.g., PER, FIFO, LIFO) without requiring architectural changes?
- RQ3What are the performance bottlenecks in high-throughput experience replay systems, and how can they be mitigated?
- RQ4How does the system maintain linear scaling under increasing client loads, and what limits its throughput?
- RQ5Can the ratio of sampled to inserted data be effectively controlled in a distributed, concurrent environment, and how does this affect training stability?
Key findings
- Reverb achieves a maximum throughput of 11 GB/s for both insertion and sampling, indicating that network bandwidth is the primary performance bottleneck.
- Insertion and sampling workloads scale linearly with the number of concurrent clients up to 200 clients, with no performance degradation under overload.
- The maximum insert QPS is limited by mutex contention, which is alleviated by sharding—increasing throughput by approximately 200%.
- Sampling throughput reaches up to 600k items per second, significantly higher than insertion (60k items per second), due to targeted optimizations reducing mutex contention.
- The system maintains consistent performance across a wide range of data payload sizes (400B to 400kB), demonstrating robustness and adaptability.
- Reverb enables researchers to run experiments with up to thousands of concurrent actors and learners using the same configuration, ensuring seamless scale-up without infrastructure changes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.