Shared Experience Replay in Reinforcement Learning

78 concepts64 papers1 proposal

Standard reinforcement learning (RL) algorithms are notoriously data-hungry because agents typically learn strictly from their own sequential interactions with an environment. In traditional off-policy frameworks, an agent stores its transitions in a local experience replay buffer and samples from it to update its policy. However, when scaling up to populations of agents, multi-task environments, or hybrid architectures, keeping experience data siloed inside individual agents introduces massive computational and sample inefficiencies.

Shared experience replay breaks this isolation. By pooling transitions from a diverse population of actors, multiple tasks, or distinct exploration strategies into a single centralized repository, any off-policy learner can exploit discoveries made by others.

Why It Works: The Mechanics of Cross-Pollination

The fundamental reason shared experience replay works lies in the mathematical decoupling of the behavior policy (the policy generating the data) from the target policy (the policy being optimized). Off-policy algorithms—such as Q-learning or actor-critic methods using importance sampling—do not require training data to be generated by the current target policy. They only require valid state-action-reward-next-state transitions ($s, a, r, s'$).

When multiple agents contribute to a single global buffer, they collectively map out the state space much faster than a single agent could. As highlighted in Off-Policy Actor-Critic with Shared Experience Replay by Simon Schmitt et al., this architecture creates a "cross-pollination" effect. If a single agent in a population stumbles upon a rare reward or a breakthrough trajectory, that transition is immediately logged in the shared pool. Consequently, every other agent in the system can sample that transition and update its value function without needing to independently rediscover the behavior.

Bridging Exploration and Exploitation

A classic challenge in RL is the exploration-exploitation dilemma. Evolutionary algorithms (EAs) excel at broad, global exploration and avoiding local optima, but they are highly sample-inefficient because they discard trajectory details. Conversely, gradient-based RL is highly sample-efficient at local optimization but suffers from brittle convergence in sparse-reward landscapes.

Shared experience replay acts as an information bridge between these two paradigms. In Evolution-Guided Policy Gradient in Reinforcement Learning, Shauharda Khadka et al. demonstrated that a centralized replay buffer can aggregate experiences from an entire population of diverse evolutionary actors to train a single gradient-based learner.

[ Evolutionary Population ]       [ Gradient Learner ]
   (Diverse Exploration)            (Precise Exploitation)
            │                                 ▲
            ▼                                 │
   ┌──────────────────────────────────────────┴┐
   │         Centralized Replay Buffer         │
   └───────────────────────────────────────────┘

Because the gradient learner has access to the rich variety of trajectories generated by the population's exploration, it avoids local optima and stabilizes its policy updates. This hybrid synergy, also explored in Evolutionary Reinforcement Learning for Sample-Efficient Multiagent Coordination by Somdeb Majumdar et al., ensures that the gradient-based agent achieves high sample efficiency by learning from the population's collective trial-and-error.

Similarly, the mechanism allows distinct algorithmic strategies to cooperate. In KEA: Keeping Exploration Alive by Proactively Coordinating Exploration Strategies, Shih-Min Yang et al. showed that a shared buffer allows novelty-seeking exploration policies to seamlessly feed data into high-entropy stochastic policies, maximizing the utility of every environment transition across complex state spaces.

Multi-Task Learning and Behavior Borrowing

The shared experience paradigm extends naturally to multi-task reinforcement learning. In traditional setups, training an agent on multiple distinct tasks causes negative interference, as gradients from different objectives conflict. Shared experience replay re-frames multi-task learning as an off-policy data collection advantage.

In The Intentional Unintentional Agent: Learning to Solve Many Continuous Control Tasks Simultaneously, Serkan Cabi demonstrated that an agent can focus its behavior on a difficult "intentional" goal while simultaneously utilizing those exact same transitions off-policy to train multiple "unintentional" auxiliary tasks. Because all transitions are pooled, data gathered while practicing one skill directly informs the mastery of others.

This concept of behavior reuse is pushed further by Grace Zhang in QMP: Q-switch Mixture of Policies for Multi-Task Behavior Sharing, which allows tasks to actively "borrow" trajectories from one another during data collection. By using a task's own Q-function to select the most promising action from a pool of all active policies, the system populates a shared buffer with high-quality transitions. This accelerates learning across the entire suite of objectives without requiring the final policies to share parameters or architectures, a benefit also documented in continuous control domains by Zhaoyang Yang et al. in Multi-Task Deep Reinforcement Learning for Continuous Action Control and by Trevor Ablett et al. in Learning from Guided Play: A Scheduled Hierarchical Approach for Improving Exploration in Adversarial Imitation Learning.

Multi-Agent Systems and Self-Play

In multi-agent reinforcement learning (MARL) and parallel self-play, shared experience replay directly addresses the challenges of non-stationarity and high sample complexity. When multiple agents learn simultaneously, the environment appears non-stationary from the perspective of any single agent because the policies of its peers are constantly shifting.

By sharing experience, agents can treat teammate or opponent data as off-policy samples. In Off-Agent Trust Region Policy Optimization, Ruiqing Chen established a theoretical trust region for cross-agent experience sharing, demonstrating that reusing trajectories generated by other agents significantly multiplies the effective sample size available for training each individual policy.

In competitive self-play settings, the efficiency gains are equally pronounced. As shown in Efficient Parallel Design for Self-Play in Two-Player Zero-Sum Games by Hongsong Tang et al., interaction data generated between any two active policies—regardless of their level in a game's hierarchy—is highly valuable for training both participating policies. Recycling this cross-level interaction data ensures that no computational effort is wasted, accelerating the discovery of robust counter-strategies.

Eliminating the Population Sample Tax

Beyond multi-agent and multi-task coordination, shared experience replay serves as a foundational tool for parallel hyperparameter tuning and ensemble methods. Standard population-based training (PBT) algorithms are computationally expensive because each candidate configuration must interact with the environment independently, creating a linear "sample tax" relative to the population size.

Shared experience replay eliminates this tax. Frameworks like SEARL, introduced in Sample-Efficient Automated Deep Reinforcement Learning by Jörg K. H. Franke et al., and the framework proposed in Towards Automatic Actor-Critic Solutions to Continuous Control by Jake Grigsby et al., maintain a population of agents operating with distinct hyperparameters or neural architectures that all contribute to and sample from a single global buffer.

┌────────────────────────────────────────────────────────┐
│               Global Replay Buffer                     │
└──────────────────────────┬─────────────────────────────┘
       ▲                   │                   ▲
       │                   ▼                   │
┌──────┴──────┐     ┌──────┴──────┐     ┌──────┴──────┐
│   Agent A   │     │   Agent B   │     │   Agent C   │
│ (LR: 1e-3)  │     │ (LR: 3e-4)  │     │ (LR: 1e-4)  │
└─────────────┘     └─────────────┘     └─────────────┘

This architecture allows underperforming parameter configurations to still provide valuable exploration data to the rest of the population, while allowing the best configurations to train on a massively diversified dataset.

Finally, this shared data pool stabilizes ensemble methods. In frameworks like SUNRISE, developed by Kimin Lee et al. in SUNRISE: A Simple Unified Framework for Ensemble Learning in Deep Reinforcement Learning, and MeanQ, developed by Litian Liang et al. in Reducing Variance in Temporal-Difference Value Estimation via Ensemble of Deep Networks, multiple independent value networks share a single experience replay buffer. This ensures high data diversity across all ensemble members while simultaneously stabilizing target estimates and mitigating overestimation bias, proving that pooling experience is a simple yet powerful mechanism for robust reinforcement learning.

Key Foundational Work

Off-Policy Natural Actor-Critic (2005) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_shared_experience_replay_52d6d06b,
  title = {shared experience replay},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/shared-experience-replay/rdr_52d6d06ba2e244f8b7b19df5762667d8},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_shared_experience_replay_52d6d06b_v1,
  title = {shared experience replay},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/shared-experience-replay/rdr_52d6d06ba2e244f8b7b19df5762667d8/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake