Replicability in Reinforcement Learning
We initiate the mathematical study of replicability as an algorithmic property in the context of reinforcement learning (RL). We focus on the fundamental setting of discounted tabular MDPs with access to a generative model. Inspired by Impagliazzo et al. [2022], we say that an RL algorithm is replicable if, with high probability, it outputs the exact same policy after two executions on i.i.d. samples drawn from the generator when its internal randomness is the same. We first provide an efficient ρ-replicable algorithm for (ε, δ)-optimal policy estimation with sample and time complexity O(N^3·log(1/δ)/(1-γ)^5·ε^2·ρ^2), where N is the number of state-action pairs. Next, for the subclass of deterministic algorithms, we provide a lower bound of order Ω(N^3/(1-γ)^3·ε^2·ρ^2). Then, we study a relaxed version of replicability proposed by Kalavasis et al. [2023] called TV indistinguishability. We design a computationally efficient TV indistinguishable algorithm for policy estimation whose sample complexity is O(N^2·log(1/δ)/(1-γ)^5·ε^2·ρ^2). At the cost of exp(N) running time, we transform these TV indistinguishable algorithms to ρ-replicable ones without increasing their sample complexity. Finally, we introduce the notion of approximate-replicability where we only require that two outputted policies are close under an appropriate statistical divergence (e.g., Renyi) and show an improved sample complexity of O(N·log(1/δ)/(1-γ)^5·ε^2·ρ^2).
READ FULL TEXT