Abstract
This paper introduces Differentially Private Policy Gradient (DPPG), a scalable framework that brings robust privacy guarantees to deep reinforcement learning. By demonstrating that the gradient clipping used in Differential Privacy (DP) is mathematically equivalent to the "trust regions" used to stabilize RL, the authors show that we can protect sensitive user data in complex tasks—like healthcare simulations and LLM fine-tuning—with surprisingly little impact on performance.
Introduction
Reinforcement Learning (RL) is increasingly deployed in high-stakes, data-sensitive domains such as personalized medicine, financial recommendations, and the alignment of Large Language Models (LLMs) via Reinforcement Learning from Human Feedback (RLHF). These systems often train on private user trajectories—browsing histories, medical records, or personal preferences—which are vulnerable to membership inference attacks that can leak specific user data.
While Differential Privacy (DP) is the standard for protecting data in supervised learning, its application to RL has been historically difficult. Previous research was largely theoretical and limited to simple "tabular" environments. DPPG bridges this gap, providing a practical method to train deep RL agents while guaranteeing that no single user's trajectory can be significantly exposed.
Methods
DPPG adapts the principles of DP-SGD to the Policy Gradient framework. The core innovation is the conceptual link between DP gradient clipping and Trust Region methods (e.g., TRPO or PPO).
- Clipping as a Trust Region: In standard DP, gradients are clipped to a maximum norm to limit individual data influence. In RL, trust regions prevent drastic policy changes that cause training collapse. The authors prove that setting a DP clipping norm is mathematically analogous to defining a trust region in the policy space.
- Trajectory-level DP (TDP): Instead of protecting individual state-action pairs, DPPG protects entire user trajectories. This provides more meaningful privacy for real-world applications, such as protecting a patient's full medical history.
- The Algorithm: The proposed PPO-like algorithm computes local updates for a batch of users, clips them, aggregates them, and injects Gaussian noise. This ensures the final policy update is $(\epsilon, \delta)$-differentially private.
Experimental Setup
The authors evaluated DPPG across a diverse range of benchmarks to prove its versatility:
- Riverswim: A classic tabular MDP for testing exploration.
- Gym Control & MuJoCo: Standard continuous control benchmarks (CartPole, Acrobot, HalfCheetah, Hopper).
- DOSING: A personalized medication simulator managing insulin for Type-1 diabetic patients.
- RLHF Sentiment Tuning: Fine-tuning GPT-2 using IMDB reviews to produce positive text, demonstrating relevance to LLM alignment.
Key Results and Insights
Privacy-Utility Trade-off
On tasks like CartPole and Acrobot, DPPG achieved strong privacy ($\epsilon \approx 1$ to $10$) with negligible performance degradation compared to non-private PPO. This suggests that for many standard control tasks, privacy can be integrated with almost no cost to utility.
Comparison with Baselines
In the Riverswim environment, DPPG significantly outperformed existing theoretical private RL algorithms like UCB-VI. This result highlights that policy gradient approaches are more robust to privacy noise than traditional value-based methods in exploration-heavy tasks.
Real-World and LLM Applications
In the DOSING healthcare task, the agent successfully managed blood glucose levels while maintaining strong privacy protections ($\epsilon \approx 8$). Furthermore, the RLHF experiment showed that GPT-2 could be successfully fine-tuned for sentiment under privacy constraints, enabling private alignment on sensitive human preference data.
The "Free Lunch" of Stability
A striking insight is that the noise and clipping required for privacy align with RL stability requirements. Because policy gradients are naturally high-variance, DP constraints can act as a regularizer, preventing destructive large updates. Additionally, the authors found that clipping based on the Fisher Information Matrix (KL-trust regions) performs better than simple Euclidean ($L_2$) clipping by accounting for the policy space's geometry.
Limitations and Future Work
While KL-based clipping (DPPG-KL) performed best, estimating the Fisher Information Matrix (FIM) privately remains a challenge; the current work uses public data for approximation. Additionally, this study focuses on on-policy methods. Off-policy methods involving "replay buffers" would require more complex privacy accounting. Finally, balancing the privacy-utility trade-off still requires careful hyperparameter tuning of the clipping norm and noise multiplier.
Summary updated