From Generative to Episodic: Sample-Efficient Replicable Reinforcement Learning

Max Hopkins, Sihan Liu, Christopher Ye, Yuichi Yoshida

Introduction

In empirical science, a result that cannot be replicated is often considered an anomaly rather than a discovery. Machine learning is currently grappling with its own "replicability crisis," where different training runs on independent data samples frequently yield vastly different models. To formalize and address this, researchers have introduced the concept of replicable learning: an algorithm is considered replicable if, when executed twice on independent data samples from the same distribution using the same internal random seed, it produces the exact same output with high probability.

While the statistical cost of replicability is relatively well understood for standard batch learning tasks (like image classification), Reinforcement Learning (RL) presents a much steeper challenge. In RL, an agent must actively explore a shifting environment rather than passively consume a static dataset. Previous theoretical work suggested a massive "exploration tax" for replicability. Learning a replicable policy using a generative model (where an agent can teleport to any state) required roughly $\tilde{O}(S^2)$ samples. However, achieving the same in episodic RL—where the agent must physically explore the environment—seemed to demand a staggering $\tilde{O}(S^7)$ samples.

This paper asks a fundamental question: Is replicable exploration inherently more expensive, or were previous algorithms simply inefficient? The authors demonstrate the latter, proving that exploration is not a significant bottleneck for replicable RL.

Methodology: The REPEXPLORE Framework

To bridge the massive theoretical gap between generative and episodic settings, the authors introduce a novel framework that decouples the process of exploration from the output of the policy. Their primary algorithmic contribution is REPEXPLORE, which operates on finite-horizon Tabular Markov Decision Processes (MDPs).

The framework relies on four key mechanisms:

  1. Ignorable State Combinations: Recognizing that reaching every state is impossible in certain MDPs, the algorithm identifies and discards "ignorable" states that have a negligible impact on the final policy's value.
  2. Fractional Rounding & Correlated Sampling: This is the core innovation of the paper. The exploration process itself does not need to be perfectly replicable. Instead, the algorithm executes a non-replicable exploration process multiple times to estimate the "mean" of under-explored states. It then utilizes correlated sampling to round these fractional estimates into a discrete, highly stable set of critical states.
  3. Tiered State Partition: To optimize for the target error parameter ($\epsilon$), states are grouped into "tiers" based on their reachability. The algorithm allocates more samples to easily reachable tiers, ensuring the final policy remains accurate without wasting samples on exceedingly rare states.
  4. Backward Induction: Once a stable set of states and sufficient samples are collected, the agent applies a replicable variant of standard backward induction to compute the final, stable policy.

Key Insights and Theoretical Contributions

  • The "Exploration Tax" is a Myth: The most surprising takeaway is that episodic RL can achieve nearly the same sample efficiency as RL with a generative model. The barrier to replicability lies in how we aggregate data, not in the act of exploration itself.
  • Stability via Aggregation: A replicable exploration path is not a prerequisite for a replicable policy. By aggregating the results of numerous "unstable" exploration runs, agents can extract a highly stable map of the environment.
  • Sign-One-Way Marginals: On a technical level, the authors provide a new lower bound for a fundamental statistical problem known as "sign-one-way marginals." This mathematical engine is what allows them to prove their RL algorithm is nearly as efficient as theoretically possible.

Main Results

The paper successfully bridges the gap between generative and episodic replicable RL, offering both upper and lower bounds that nearly match:

  • Near-Optimal Upper Bound: The authors prove that their algorithm achieves a sample complexity of $\tilde{O}(S^2A / (\rho^2 \epsilon^2))$. This represents a monumental improvement over the previous state-of-the-art requirement of $\tilde{O}(S^7)$.
  • Tight Lower Bound: They complement their algorithm with a lower bound of $\tilde{\Omega}(S^2 / (\rho^2 \epsilon^2))$ in the episodic setting, demonstrating that their approach is near-optimal with respect to the state space $S$.
  • Computational Efficiency: While the primary algorithm is optimized strictly for sample complexity, the authors also provide a computationally efficient variant that runs in polynomial time, trading off a slightly higher sample complexity of $\tilde{O}(S^3)$.

Limitations and Future Work

While this work fundamentally advances the theory of replicable RL, it operates under specific constraints. The results are currently limited to Tabular MDPs with discrete, manageable state and action spaces, leaving high-dimensional and continuous Deep RL environments unaddressed. Furthermore, the proofs rely on a low-horizon assumption, meaning they are most effective when the number of steps in an episode is small relative to the number of states. Finally, there remains a minor theoretical gap between the upper bound ($\tilde{O}(S^2A)$) and the lower bound ($\tilde{\Omega}(S^2)$). Future research will need to determine if the dependency on the action space ($A$) can be entirely eliminated.

Summary updated

BibTeX
@inproceedings{hopkins2026from,
  author = {Max Hopkins and Sihan Liu and Christopher Ye and Yuichi Yoshida},
  title = {{From Generative to Episodic: Sample-Efficient Replicable Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=agN2CgTCIW},
}
Figure