Paper commentary
From Generative to Episodic: Sample-Efficient Replicable Reinforcement Learning
Replicable reinforcement learning needs only S²A samples without a generative model
- Problem Without a generative model, the best known replicable RL bound was O(S⁷A⁷) samples. That is far above the batch case, where a generative model needs O(S²A²) samples, because the agent's own exploration makes runs visit different states.
- Method The authors separate exploration from decision making. Their exploration phase outputs a set of critical states, and tiered backward induction then picks a replicable policy using only those states.
- Results The paper shows a 0.02-replicable episodic PAC policy estimator using Õ(S²A) samples, with a matching lower bound in the generative setting.
Why exploration makes replicable RL costly
Replicable RL is hard because the agent's own trajectory depends on random transitions, so two runs can visit different states. Replicability asks that two runs on independent samples from the same environment output exactly the same policy with high probability. With a generative model, the algorithm can query any state-action pair directly, and replicable learning then needs O(S²A²) samples.
Without that access, the best known replicable upper bound was O(S⁷A⁷), set by EHKS23. That gap left open whether exploration itself is the barrier, or whether replicable RL is simply expensive.
The authors point out that no known lower bound separates replicable exploration from learning with a generative model. Their answer is that exploration isn't a significant barrier to replicability in the low-horizon tabular setting. Their replicable algorithm uses only Õ(S²A) samples and no generative model. A matching Ω̃(S²A) lower bound holds in the generative setting under the parallel sampling assumption.
An unconditional Ω̃(S²) lower bound holds in the episodic setting, so the algorithm is near-optimal in S.
Splitting exploration from the decision
The core move is to separate exploration from decision making, so exploration doesn't have to produce a fully replicable trace. Instead, the exploration phase outputs a set of critical states, and the paper's footnote clarifies that this doesn't mean the same states are visited in both runs. Replicability here means methods keep internal statistics, such as visitation counts of state-action pairs, replicable throughout exploration.
Each critical state must be easy to sample from, and it must hold enough value that a good policy can be learned on those states alone. Because of these two properties, the problem reduces to the generative model setting, where the agent can query state-action pairs directly. The authors build the set in two stages: they first estimate a fractional set of critical states using a non-replicable algorithm.
The MDP setting is defined with finite states S, actions A, horizon H, and transition and reward distributions per step. An episode starts at an initial state, and the agent chooses an action, receives a reward, and moves to the next state at each step. Each transition-reward pair observed in this process counts as one sample, which is the unit that the exploration phase must pay for.
How the pipeline runs, step by step
The pipeline has two stages: a replicable exploration step builds a tiered reachability partition and datasets, and then tiered backward induction selects a policy. States are grouped into tiers by their reachability under some optimal policy, so the partition depends on that policy. Each tier ℓ ≥ 2 has total reachability at most 2^(1−ℓ), so for states within tiers ℓ ≫ log(H/ε) the reachability is far below ε/H.
Because rarely reached tiers contribute little to the V*/Q* values, the authors can learn them only to accuracy roughly (ε/H)2^ℓ. That lets each tier carry its own sample requirement, and the number of samples per tier can fluctuate in the episodic setting. The datasets must be ζ-nice: each state-action pair's samples follow the product of its transition and reward distributions.
Minimum sample sizes must also satisfy a summed inverse-size bound, with a right-hand side of 2^ℓ ζ.
RepRLBandit runs backwards over the time steps, and in each tier it calls RepVarBandit to pick a near-optimal arm and estimate that arm's reward. At the last step, RepVarBandit runs on each tier with accuracy 2^ℓ ε0 and failure probability δ/(HL), where ε0 = ε/(8HL). The reward estimate for each state is then shifted down by a tier-dependent term 2^ℓ ε/(8HL), so it underestimates the arm's utility with high probability.
Each step's estimates feed the step before it: the algorithm adds them to the observed rewards to build the next dataset Rs,a. The authors argue the tier-ℓ error is enough because that tier's reachability is at most O(2^−ℓ).
The exploration side, RepExplore, runs Qexplore m times and records how often each state-step pair is not fully explored, giving µ̂s,h. Correlated sampling then draws a state combination from B(µ̂), and the paper uses this draw to keep the output replicable across two runs. Two runs give estimates whose total variation distance is at most 2κ, so the sampled combinations are O(κ)-replicable.
The replicability of the whole policy is argued by a union bound over the tiers and the H steps. Each step's policy and estimates match across runs with probability at least 1 − Σℓ ρh,ℓ, and the total failure is at most 0.01 by Equation (14). The guarantee holds only when the input datasets are ζ-nice, so the replicability claim depends on that condition.
Combining RepLevelExplore with RepRLBandit gives a 0.02-replicable episodic PAC policy estimator with accuracy ε/2.
Do the proofs back the claim
The replicability argument goes through a union bound over tiers and time steps, so the per-tier failure terms have to stay small. For two runs of RepRLBandit on ζ-nice datasets, the proof gives a replicability failure probability of at most 0.01. The dataset sample-size claim is that the numbers m_{s,h,ℓ} satisfy a bound of order 0.01/L over the tier sums, which is what makes the per-tier terms summable.
The key rearrangement defines ρ_{h,ℓ} from the square-root sums over states, and then Equation (14) bounds their total by 0.01. Each step h is handled by induction: the estimates r̂ from step h+1 are identical across runs, so the datasets R_{s,a} have the same distribution. Union bounding over all H steps gives a final policy that is identical with probability at least 0.99.
The episodic estimator is 0.1-replicable before boosting, and the authors then apply boosting (Lemma 4.1) to reach 0.02-replicability. Conditioned on RepLevelExplore producing the same tier partition, which happens with probability at least 0.99, Theorem 4.5 gives identical policies in the two runs with probability at least 0.99. The accuracy is ε/2, and the failure probability is at most 0.1.
The sample complexity comes from RepLevelExplore, which uses O˜(S²AH⁷ζ⁻²) samples, with ζ set to c·ε/(H² polylog(SAH/ε)). Substituting that ζ gives an overall sample bound of O˜(S²AH¹¹ log(1/δ)/ε²), which matches Theorem 6.1 with the ρ dependence.
On the lower-bound side, Theorem 1.4 states that any ρ-replicable (εH, 0.001)-PAC policy estimator needs Ω˜(S²AH²/(ρ²ε²)) samples in the parallel sampling model. The proof reduces the sign-one-way marginals problem to reinforcement learning, where each state gets a single-step MDP with two actions a+ and a−. Theorem 7.2 gives a lower bound of Ω(n/(ρ²ε²) · log⁶ n) for the n-dimensional sign-one-way marginals problem with ε-accuracy and δ = 0.01.
The paper states this resolves an open problem of prior work, which had only an Ω̃(n) bound. The paper doesn't run empirical experiments, so the support is theorems and their proofs.
Limits and open questions
The upper bound of S²A and the unconditional episodic lower bound of S² still differ by a factor of A. The authors attribute this gap to the algorithm sampling every arm equally in the generative setting.
The replicability guarantee of RepRLBandit holds only when the input datasets are ζ-nice. The authors note that, technically, the replicability definition asks for identical outputs regardless of the input distribution. So the footnoted guarantee doesn't cover arbitrary data, only datasets promised to be ζ-nice. Niceness requires conditionally independent samples with per-tier lower bounds on dataset sizes, which is a real assumption on the data collection.
The reachability tiers are defined relative to an optimal policy π*, so the partition depends on that choice. Tier ℓ states are those whose total reachability under π* is at most 2^(1−ℓ) for ℓ ≥ 2. The paper's analysis is for low horizons, and it doesn't optimize the dependence on H. The authors point to the non-replicable horizon-dependence work of [ZCLD24] as a reference for this open direction.
Paper info
- Authors
- Max Hopkins, Sihan Liu, Christopher Ye, Yuichi Yoshida
- Venue
- arXiv · Preprint
- First published
- 2025-7-16
- Added
- 2026-10-31
- Updated
- 2025-7-16
- Version
- v1
- arXiv
- 2507.11926
- Category
- cs.LG
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
The epidemic failure of replicability across empirical science and machine learning has recently motivated the formal study of replicable learning algorithms [Impagliazzo et al. (2022)]. In batch settings where data comes from a fixed i.i.d. source (e.g., hypothesis testing, supervised learning), the design of data-efficient replicable algorithms is now more or less understood. In contrast, there remain significant gaps in our knowledge for control settings like reinforcement learning where an agent must interact directly with a shifting environment. Karbasi et. al show that with access to a generative model of an environment with $S$ states and $A$ actions (the RL 'batch setting'), replicably learning a near-optimal policy costs only $\tilde{O}(S^2A^2)$ samples. On the other hand, the best upper bound without a generative model jumps to $\tilde{O}(S^7 A^7)$ [Eaton et al. (2024)] due to the substantial difficulty of environment exploration. This gap raises a key question in the broader theory of replicability: Is replicable exploration inherently more expensive than batch learning? Is sample-efficient replicable RL even possible? In this work, we (nearly) resolve this problem (for low-horizon tabular MDPs): exploration is not a significant barrier to replicable learning! Our main result is a replicable RL algorithm on $\tilde{O}(S^2A)$ samples, bridging the gap between the generative and episodic settings. We complement this with a matching $\tildeΩ(S^2A)$ lower bound in the generative setting (under the common parallel sampling assumption) and an unconditional lower bound in the episodic setting of $\tildeΩ(S^2)$ showcasing the near-optimality of our algorithm with respect to the state space $S$.
Quote from the paper
Max Hopkins, Sihan Liu, Christopher Ye, Yuichi Yoshida (2025). From Generative to Episodic: Sample-Efficient Replicable Reinforcement Learning. arXiv:2507.11926v1. https://arxiv.org/abs/2507.11926v1
BibTeX
@misc{hopkins2025from,
title = {{From Generative to Episodic: Sample-Efficient Replicable Reinforcement Learning}},
author = {Max Hopkins and Sihan Liu and Christopher Ye and Yuichi Yoshida},
year = {2025},
eprint = {2507.11926},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2507.11926v1}
}