Abstract
We study a reinforcement learning setting where the state transition function is a convex combination of a stochastic continuous function and a deterministic function. This setting generalizes the widely-studied stochastic state transition setting used in Deterministic Policy Gradient (DPG) methods. We demonstrate that deterministic policy gradients may become infinite under purely deterministic transitions and introduce a theoretical technique to prove the existence of the policy gradient in this generalized setting. We prove that the gradient exists for specific discount factors and identify conditions guaranteeing existence for all discount factors. Furthermore, we propose the Generalized Deterministic Policy Gradient (GDPG) algorithm, which integrates model-based techniques into the model-free Deep Deterministic Policy Gradient (DDPG) framework. GDPG optimizes rewards in a model-based augmented MDP subject to a constraint that ensures performance relative to the original MDP. Extensive experiments on continuous control benchmarks show that GDPG substantially outperforms DDPG and other state-of-the-art baselines in convergence speed and long-term rewards.
Introduction
In continuous control tasks, such as robotics and autonomous systems, the Deterministic Policy Gradient (DPG) and its deep learning implementation, DDPG, have become standard tools. However, these algorithms rely on a critical mathematical assumption: the probability density of the next state must be a continuous function of the action.
In practice, many physical environments are deterministic. In a physics simulator, applying a specific force results in a predictable next state rather than a probability distribution. Mathematically, this introduces Dirac delta functions into the transition dynamics, which can cause the standard policy gradient to become infinite or non-existent. Additionally, model-free algorithms often suffer from high sample complexity, requiring millions of interactions to learn effective behaviors. This paper addresses these challenges by studying transitions that are a "convex combination" of deterministic and stochastic functions, providing both a theoretical foundation and a practical algorithm for these mixed environments.
Theoretical Analysis of Mixed Transitions
The authors first illustrate the "Infinite Gradient Trap." In purely deterministic settings, the gradient of the value function can blow up, explaining why DPG theory occasionally fails when applied to rigid physics simulations.
To resolve this, the researchers introduce a technique of "unrolling" the value function into infinite steps. By analyzing the multi-step expansion of the transition dynamics, they prove that the deterministic policy gradient exists in mixed settings under specific conditions. These conditions involve either a specific range for the discount factor $\gamma$ or constraints on the smoothness of the transition function’s Jacobian matrix. This theoretical bridge allows for the derivation of a closed-form policy gradient that remains valid even when the environment contains deterministic components.
The GDPG Algorithm
To address the sample complexity of model-free learning, the authors propose the Generalized Deterministic Policy Gradient (GDPG) algorithm. GDPG is a hybrid approach that leverages the strengths of both model-based and model-free methods.
Augmented MDP and Optimization
The algorithm constructs an augmented MDP where the transition function is defined as the expectation of the original transition. While this model-based version is easier to compute and provides a smoother gradient signal, it can be myopic if the model is inaccurate.
GDPG frames the learning process as a constrained optimization problem: maximize the rewards within this easier model-based version while ensuring it acts as a lower bound for the original objective. Using a Lagrangian dual approach, the policy is updated using a weighted gradient:
$$ \nabla_{\theta} J \approx (1-\alpha) \nabla_{model-free} + \alpha \nabla_{model-based} $$
Here, $\alpha$ serves as a hyperparameter that balances the stable, low-variance signal from the model with the high-fidelity (but high-variance) data from the real environment.
Experimental Evaluation
The authors evaluated GDPG against several competitive baselines, including DDPG, TRPO, and ACKTR, using the OpenAI Gym and MuJoCo physics engines. The test suite included Pendulum-v0, LunarLanderContinuous-v2, and high-dimensional tasks like Humanoid-v2 and Swimmer-v2.
Key Findings
- Superior Performance: GDPG consistently outperformed baselines across almost all environments. In the complex Humanoid-v2 task, GDPG achieved significantly higher rewards where other methods struggled to converge.
- Efficiency: The algorithm demonstrated much faster convergence. In Swimmer-v2, GDPG reached peak performance in approximately half the steps required by standard DDPG.
- Ablation of $\alpha$: Studies indicated that a weight of $\alpha = 0.9$ (favoring the model-free signal while incorporating model-based guidance) generally yielded the best results. This suggests that even a small amount of model-based structure can significantly stabilize the learning process.
Conclusion and Future Work
GDPG provides a robust framework for reinforcement learning in environments that mix deterministic physics with stochastic disturbances. By proving the existence of gradients in these settings and implementing a constrained model-based optimization, the authors have improved both the theoretical reliability and the practical efficiency of deterministic policy gradients.
Future research directions include automating the tuning of the $\alpha$ hyperparameter through the dual program and improving the accuracy of the transition networks in extremely high-dimensional or chaotic environments. Additionally, extending the theory to handle multiple interacting deterministic transitions remains an open challenge.
Summary updated