Replicable Reinforcement Learning with Linear Function Approximation

Eric Eaton, Marcel Hussing, Michael Kearns, Aaron Roth, Sikata Bela Sengupta, Jessica Sorrell

Introduction

Reinforcement learning (RL) is notoriously unstable. Two researchers running the exact same algorithm on the same environment might end up with completely different policies simply because their agents sampled different trajectories. This instability makes it difficult to verify results, build upon existing work, or deploy RL in safety-critical systems where predictable behavior is a strict requirement.

Recent theoretical work has defined a formal notion of replicability: the requirement that an algorithm produces the exact same output when run on two different datasets from the same distribution, provided they share the same internal random seed. While replicability has been achieved in "tabular" RL (which assumes a small, finite number of states and actions), extending it to more practical settings has remained an open problem. This paper tackles the challenge of achieving replicability in Linear Markov Decision Processes (Linear MDPs), utilizing linear function approximation to handle much larger state-action spaces.

Core Methods: Randomized Rounding and Replicable Primitives

The authors build their framework on a core technique called randomized rounding. Instead of outputting raw continuous values (like model weights), the algorithm maps these values to a randomly shifted grid. If two estimates are sufficiently close to each other, they will "snap" to the same grid point with high probability.

To enable replicable RL, the paper introduces two foundational algorithmic primitives:

1. Replicable Ridge Regression

The first contribution is R-Ridge-Regression, a replicable version of ridge regression that works even when the data distribution is not controlled by the researcher (random design). By leveraging the strong convexity of ridge regression, small changes in training data lead to small, predictable changes in the resulting weights, making them perfect candidates for randomized rounding.

Algorithm for Replicable Ridge Regression

2. Replicable Covariance Estimation

The second primitive is R-UC-Cov-Estimation, a replicable method for estimating uncentered covariance matrices. This algorithm ensures the output remains symmetric and positive semi-definite, which is essential for calculating exploration bonuses in RL.

Algorithm for Replicable Uncentered Covariance Estimation

Building on these primitives, the authors develop two RL algorithms:

  • R-LSVI with Core Sets: A replicable version of Least-Squares Value Iteration for the "generative model" setting (where the agent can query any state-action pair).
  • R-LSVI-UCB: A replicable algorithm for the more difficult "episodic" setting. It uses a batched approach to break the symmetry of standard exploration, ensuring that data-dependent exploration bonuses remain consistent across different runs.

Experimental Validation

The authors validated their theoretical findings using several benchmarks to test both the strict theoretical algorithms and their "spirit" in deep RL contexts:

  • CartPole: Used an offline dataset via the d3rlpy library, applying random Fourier feature encoding to test the replicable ridge regression. The authors achieved near-perfect replicability (identical weight vectors across runs) using only a fraction of the available data.
  • Atari (MsPacman & Breakout): Used to test replicability concepts in deep RL. The authors found that quantizing the outputs (Q-values) rather than the network weights served as an effective proxy for replicability. Regularization (like weight decay) proved crucial to keep values within a range where the rounding grid could effectively synchronize different training runs.
  • Minari: Utilized holdout expert datasets to evaluate "pairwise action agreement"—a measure of how often two independently trained agents choose the same action in the same state. On MsPacman, combining quantization and regularization significantly increased agreement between different training seeds without a major loss in mean episode return.

Key Insights and Trade-offs

  • The Cost of Stability: Replicability isn't free. The theoretical results show that replicable algorithms require significantly higher sample complexity than their non-replicable counterparts.
  • Performance Trade-offs: On games like Breakout, the authors observed a sharper trade-off. While quantization increased policy agreement, it led to lower returns, suggesting that "rounding" might sometimes obscure the subtle value differences needed for optimal play in highly sensitive environments.

Limitations and Future Work

The authors are transparent about several hurdles remaining in the field:

  • Sample Complexity: The current theoretical bounds for sample complexity are quite high, potentially limiting immediate practical application for highly complex environments.
  • Linearity Assumption: The formal proofs rely on the environment being a Linear MDP. Extending these guarantees to non-linear function approximators (like deep neural networks) remains an open theoretical challenge.
  • Feature Learning: The current work assumes the features are fixed and known. A major next step is figuring out how to learn these features replicably.
  • Continuous Actions: The current algorithms are designed for discrete action spaces; scaling to continuous control is a clear path for future research.

Summary updated

BibTeX
@inproceedings{eaton2026replicable,
  author = {Eric Eaton and Marcel Hussing and Michael Kearns and Aaron Roth and Sikata Bela Sengupta and Jessica Sorrell},
  title = {{Replicable Reinforcement Learning with Linear Function Approximation}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=Ccflf8sqjF},
}
Figure