Offline Reinforcement Learning with Differential Privacy

Dan Qiao, Yu-Xiang Wang · DOI

Introduction

Reinforcement Learning (RL) is increasingly transitioning from simulated environments to high-stakes, real-world applications such as healthcare, finance, and legal technology. In these domains, the standard "trial and error" exploration of online RL is often impractical or unethical. Instead, researchers rely on Offline RL, where an agent learns an optimal policy from a static, pre-collected dataset of historical decisions.

However, these datasets frequently contain sensitive individual information. For instance, a hospital's records used to train a treatment policy could inadvertently leak a specific patient's medical history.

A representation of a longitudinal medical dataset where each patient's history (health condition, treatment, and outcome) is recorded over time.

A recent study from UC Santa Barbara, "Offline Reinforcement Learning with Differential Privacy," addresses this critical vulnerability by providing the first provably efficient algorithms for offline RL that maintain formal differential privacy (DP) guarantees.

The Privacy-Utility Challenge

The primary obstacle in this field is the privacy-utility trade-off. Offline RL models are prone to memorizing training data. In a medical context, a model might learn that a unique combination of rare symptoms and a specific drug led to a recovery, effectively "fingerprinting" a specific individual.

While DP has been explored in online RL, the offline setting presents unique difficulties. Without the ability to collect more data to mitigate the noise introduced by privacy mechanisms, algorithms must estimate environment uncertainty privately from a fixed, potentially sparse dataset.

Methodology: Integrating Pessimism and Privacy

The researchers propose two novel algorithms rooted in the principle of pessimism, which penalizes state-action pairs with low data coverage to avoid overestimating their value:

  1. DP-APVI (Differentially Private Adaptive Pessimistic Value Iteration): Tailored for tabular Markov Decision Processes (MDPs), this algorithm adds Gaussian noise to transition counts to satisfy privacy requirements.
  2. DP-VAPVI (Differentially Private Variance-Aware Pessimistic Value Iteration): Designed for linear MDPs using function approximation, this approach privately releases conditional variance statistics to enable more precise learning.

The authors found that pessimism is naturally synergistic with privacy. By being cautious in low-data regions, the algorithms inherently avoid over-reliance on the rare, individual trajectories that are most difficult to privatize.

Key Insights and Results

Theoretical Efficiency

A major theoretical contribution of the paper is the discovery that the "cost" of privacy—the error introduced by noise—appears only in the lower-order terms of sub-optimality bounds. This implies that as the dataset size increases, the performance gap between a private and a non-private agent effectively vanishes.

Empirical Performance

In simulations using a synthetic linear MDP environment (2 states, 100 actions, $H=20$), the DP-VAPVI algorithm demonstrated strong utility. While the added noise caused it to perform slightly below its non-private counterpart, it consistently outperformed standard non-private baselines like PEVI. Crucially, as the number of episodes ($K$) increased, the sub-optimality gap converged toward the non-private version, validating the algorithm's scalability.

Conclusion

This work establishes a landmark for private RL by proving that high-performing agents can coexist with rigorous privacy protections. By privatizing Bernstein-type pessimism, the authors have paved the way for RL to be safely deployed in sensitive, human-centric industries where data protection is paramount.

Summary updated

BibTeX
@inproceedings{qiao2023offline,
  author = {Dan Qiao and Yu-Xiang Wang},
  title = {{Offline Reinforcement Learning with Differential Privacy}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=YVMc3KiWBQ},
}
Figure