Abstract
Standard reinforcement learning (RL) algorithms typically rely on Mean Squared Error (MSE) loss, which implicitly assumes that Bellman errors follow a symmetric Gaussian distribution. However, in practice, the Bellman operator often induces heavily skewed error distributions, leading to suboptimal learning. We present Symmetric Q-learning, a novel approach that symmetrizes the Bellman error distribution by injecting learned "counter-noise" into the training targets. By modeling this noise with a Gaussian Mixture Model (GMM) that adapts to the evolving error distribution, we ensure the resulting total error is symmetric around zero without introducing bias. Our method significantly improves sample efficiency and stability across various MuJoCo benchmarks when integrated with state-of-the-art algorithms like SAC and REDQ.
Introduction
In Deep Reinforcement Learning, the fundamental task is to estimate the Q-function by minimizing the Bellman error—the difference between the current estimate and a target derived from the Bellman equation. Most popular algorithms, such as Soft Actor-Critic (SAC) or Deep Q-Networks (DQN), utilize the Mean Squared Error (MSE) loss function. Mathematically, MSE is optimal when errors are Gaussian. However, the "max" or "mean" operations inherent in Bellman updates often produce skewed error distributions, such as the Gumbel distribution.
Applying Gaussian-assuming tools to non-Gaussian, skewed errors leads to inefficient learning. While specialized regressions like Gumbel regression have been proposed, they often struggle because the error distribution's shape changes dynamically as the agent learns.
Methodology: Symmetrizing the Bellman Error
Symmetric Q-learning offers a flexible solution that does not assume a fixed error shape. Instead, it "symmetrizes" the existing error distribution through the following steps:
- Synthetic Noise Injection: Rather than modifying the loss function, we add zero-mean synthetic noise ($\eta$) to the Q-learning target values.
- Learning the Noise Distribution: We model this noise using a Gaussian Mixture Model (GMM). The GMM is trained to approximate the inverse of the current Bellman error distribution.
- Symmetrization: By adding noise that mirrors the existing skewed error, the total error distribution becomes symmetric around zero.
- Bias-Free Estimation: We prove that adding zero-mean noise does not introduce bias into the Q-value estimates; it merely alters the distribution shape perceived by the model.
This technique is integrated into existing frameworks as SymSAC and SymREDQ. Because the GMM is updated periodically, the counter-noise adapts as the agent's behavior and the resulting Bellman errors evolve.
Experimental Evaluation
We evaluated Symmetric Q-learning on the MuJoCo suite, including high-dimensional tasks like Humanoid-v2, as well as Walker2d-v2, Hopper-v2, Ant-v2, and HalfCheetah-v2.
Key Results
- Sample Efficiency: SymREDQ demonstrates superior efficiency. In Humanoid-v2, SymREDQ reached target performance in 172,000 steps, compared to 255,000 steps for standard REDQ—a 33% improvement in sample efficiency.
- Stability and Performance: Compared to $\mathcal{X}$-SAC (Gumbel regression), Symmetric Q-learning is significantly more stable and achieves higher final returns across almost all tasks.
Discussion and Limitations
The primary insight of this work is that achieving symmetry is often more practical and effective than forcing a distribution to be perfectly Gaussian. However, adding noise naturally increases gradient variance. Consequently, the method is most effective when paired with ensemble-based algorithms like REDQ, which are designed to handle high-variance estimates.
While training a 1D GMM adds minimal computational overhead, it introduces a new hyperparameter: the frequency of noise distribution updates. Future work may explore applying this symmetrization approach to offline reinforcement learning or other domains characterized by non-Gaussian noise.
Conclusion
Symmetric Q-learning addresses a fundamental mismatch in RL training by ensuring that the error distributions align with the assumptions of the loss functions used. By dynamically adapting to skewed Bellman errors, it provides a robust and efficient path to improved performance in complex continuous control tasks.
Summary updated