Abstract
Many reinforcement learning (RL) applications involve the use of sensitive data, such as medical records or financial information. However, most current RL methods can leak information contained within the data on which they are trained. To address this problem, we present the first differentially private approach for off-policy evaluation (OPE). We provide a theoretical analysis of the privacy-preserving properties of our algorithm and analyze its utility in terms of convergence speed. Empirically, our method outperforms previous methods, which were restricted to the on-policy setting, and demonstrates scalability to complex, high-dimensional simulators.
Introduction
Reinforcement Learning is increasingly being deployed in high-stakes domains like healthcare—for instance, in optimizing sepsis treatments—and finance. In these contexts, the training data often consists of sensitive individual trajectories. Standard RL algorithms are not designed with privacy in mind and can inadvertently "leak" private information about the individuals in the training set through the resulting models or policy evaluations.
Differential Privacy (DP) provides a rigorous mathematical framework to mitigate this risk, ensuring that the output of an algorithm is not overly sensitive to the inclusion or exclusion of any single individual's data. While DP has been applied to RL in the past, previous attempts suffered from two primary limitations: they were restricted to on-policy evaluation (evaluating the policy currently generating data) and they relied on inefficient noise injection techniques that severely degraded the utility of the results.
The GPOPE Algorithm
We introduce Gradient Perturbed Off-Policy Evaluation (GPOPE), the first algorithm specifically designed for differentially private OPE. GPOPE is built upon the GTD2 algorithm, a standard method for off-policy evaluation that treats the problem as a minimax optimization (saddle-point) problem.
Gradient vs. Output Perturbation
The core innovation of GPOPE lies in its approach to noise injection. Previous methods typically used "output perturbation," which involves running a non-private algorithm to completion and then adding a large amount of noise to the final result. This often leads to poor accuracy because the noise must account for the worst-case sensitivity of the entire learning process.
In contrast, GPOPE utilizes gradient perturbation. By injecting smaller amounts of Gaussian noise directly into the stochastic gradient updates at each step, the algorithm can "learn" around the noise. To maintain a strict privacy budget ($ε, δ$) over many iterations, we employ advanced privacy accounting techniques, specifically Rényi Differential Privacy and the Moments Accountant. This allows for a much tighter analysis of cumulative privacy loss than standard composition theorems.
Episodic Updates and Clipping
To bound the influence of any single individual, GPOPE performs gradient clipping. We found that using an entire "trajectory" (a patient's full history) for a single update—rather than breaking trajectories into individual transitions—provided a significant "Episodic Advantage." This approach balances the trade-off between the number of updates and the amount of noise required per update, leading to more stable convergence.
Empirical Evaluation
We evaluated GPOPE across three environments of increasing complexity to test its accuracy, handling of continuous states, and real-world applicability.
- Synthetic Chain Domain: In this 40-state environment mimicking medical recovery stages, GPOPE outperformed previous state-of-the-art private methods (such as DP-LSW and DP-LSL) by an order of magnitude in terms of Mean Squared Projected Bellman Error (MSPBE).
- Mountain Car: This classic benchmark features a continuous state space. While previous private RL methods often failed or lacked guarantees for non-tabular data, GPOPE successfully evaluated policies with high precision. Notably, the performance remained robust in both on-policy and off-policy settings.
- HIV Simulator: To test scalability, we applied GPOPE to a high-dimensional simulator of HIV treatment involving six state features, such as viral load and immune cell counts. Even under a strict privacy budget ($ε = 0.1$), GPOPE maintained a low error rate, demonstrating its potential for clinical decision support.
Theoretical Insights and Limitations
Our theoretical analysis shows that while privacy noise naturally slows the rate of convergence, the error eventually settles at an information-theoretic limit determined by the privacy budget. Achieving this limit requires a carefully chosen diminishing step size to prevent the algorithm from diverging due to accumulated noise.
Despite its successes, GPOPE faces challenges common to DP algorithms. Performance is sensitive to hyperparameters like the clipping bound and step size. Because these cannot be tuned using private data without additional privacy loss, future work should explore the use of public proxy data for hyperparameter optimization. Additionally, we aim to extend GPOPE to more modern optimization frameworks, such as Stochastic Variance Reduction (SVRG), to further enhance convergence speeds.
Conclusion
GPOPE represents a significant step forward in making reinforcement learning safe for sensitive data. By moving from output perturbation to gradient perturbation and supporting off-policy evaluation, we provide a tool that is both theoretically sound and practically viable for complex domains like personalized medicine.
Summary updated