Introduction
Standard Reinforcement Learning (RL) typically focuses on finding a policy that maximizes cumulative rewards. While effective, this approach often results in "brittle" policies that converge prematurely to sub-optimal solutions or struggle in multimodal environments. Maximum Entropy RL addresses these issues by augmenting the objective with an entropy term, encouraging agents to explore more broadly and develop more robust behaviors.
Researchers from Tsinghua University have introduced a novel Soft Policy Gradient (SPG) theorem that directly optimizes this maximum entropy objective. Their implementation, Deep Soft Policy Gradient (DSPG), offers a stable, off-policy alternative to existing methods like Soft Actor-Critic (SAC) and Deep Deterministic Policy Gradient (DDPG).
Methodology: Deep Soft Policy Gradient (DSPG)
The core contribution of this work is the formal derivation of the Soft Policy Gradient theorem. Unlike SAC, which minimizes the KL divergence between the current policy and a target Boltzmann distribution, DSPG derives the gradient directly from the expected entropy-regularized reward objective.
To implement this theoretical framework in a deep learning context, the authors introduced three critical components:
- Soft Bellman Equation: An off-policy version of the Bellman equation is used to update a soft Q-function, enabling the agent to leverage experience replay.
- Double Sampling: To estimate the gradient without requiring on-policy interaction, the algorithm samples states from the replay buffer and then samples multiple actions ($M=64$) from the current policy for those states. This "double sampling" effectively decouples the state distribution from action selection and eliminates the need for a separate state-value ($V$) critic, reducing potential approximation errors.
- Gradient Clipping: The derived gradient is directly proportional to the Q-value, making it susceptible to instability if Q-values grow large. Global norm clipping (typically tuned via grid search over values like $\{1, 3, 5\}$) is employed to maintain training stability.
Experimental Setup
The DSPG algorithm was evaluated on four standard continuous control benchmarks from the OpenAI Gym, utilizing the MuJoCo physics engine: Ant-v2, Hopper-v2, HalfCheetah-v2, and Walker2d-v2. These tasks require learning complex locomotion patterns for virtual robotic agents.
Results and Analysis
DSPG was compared against DDPG (a standard off-policy baseline) and SAC (the state-of-the-art Maximum Entropy baseline).
Performance and Stability
As shown in the training curves, DSPG significantly outperforms DDPG across all benchmarks. DDPG often suffers from high sensitivity to hyperparameters and a tendency to collapse into deterministic, non-exploratory behaviors. In contrast, DSPG demonstrates competitive performance with SAC, even surpassing it in the Hopper-v2 and Walker2d-v2 environments.
The results indicate that DSPG provides a more stable training process. By avoiding the need for a separate state-value function, DSPG simplifies the architecture and reduces the risk of compounding errors between multiple critics.
Conclusion and Future Work
The Soft Policy Gradient method provides a mathematically grounded and stable approach to Maximum Entropy RL. While the "Double Sampling" technique introduces some computational overhead due to multiple action samples per update, the gains in stability and performance are significant.
Future research could explore automated temperature ($\tau$) tuning to further enhance the algorithm's robustness and reduce the need for manual hyperparameter search.
Summary updated