Symmetric Q-learning: Reducing Skewness of Bellman Error in Online Reinforcement Learning

Motoki Omura, Takayuki Osa, Yusuke Mukuta, Tatsuya Harada · DOI

Abstract

In deep reinforcement learning (RL), value function estimation is typically performed using the least squares method, which implicitly assumes a Gaussian error distribution. However, the Bellman operator often introduces significant skewness into the error distribution, violating this assumption and hindering learning efficiency. We propose Symmetric Q-learning, a method that restores symmetry by adding synthetic noise, sampled from a zero-mean distribution, to the target values. By transforming the skewed Bellman error into a symmetric distribution, our approach aligns the data with the statistical assumptions of the optimizer. Empirical evaluations on MuJoCo continuous control tasks demonstrate that Symmetric Q-learning significantly improves sample efficiency in state-of-the-art RL algorithms.

Introduction

The estimation of the Q-function—predicting the expected return of state-action pairs—is a cornerstone of modern reinforcement learning. Standard practice involves minimizing the mean squared error (MSE) between the current Q-estimate and a target value derived from the Bellman equation. From a statistical perspective, minimizing MSE is equivalent to maximum likelihood estimation under the assumption that the residuals (Bellman errors) follow a normal distribution.

Recent research indicates that this assumption is frequently violated. The maximization step in the Bellman operator, combined with the stochastic nature of environments, often results in heavily skewed error distributions. When a Gaussian-based loss function is applied to such skewed data, the resulting gradients can be biased, leading to suboptimal updates and poor sample efficiency. While alternative distributions like the Gumbel distribution have been explored, they often lack the flexibility to adapt to the changing error profiles encountered during an agent's training.

Methodology: Symmetric Q-learning

To address the mismatch between the error distribution and the loss function, we introduce Symmetric Q-learning. Rather than modifying the loss function to fit the skewed data, we modify the data to fit the loss function.

Noise Injection and Symmetrization

The core idea is to inject synthetic noise ($\eta$) into the target values during the Bellman update. Let $\delta$ represent the original Bellman error. If $\delta$ is skewed, we aim to find a noise distribution such that the combined error $\delta + \eta$ is symmetric around zero.

Gaussian Mixture Model (GMM) Estimation

To determine the appropriate noise to inject, the algorithm must understand the current shape of the error distribution. We utilize a Gaussian Mixture Model (GMM) to estimate the distribution of the negative Bellman error. By sampling noise from this estimated distribution and adding it to the target, we effectively "cancel out" the skewness.

To ensure the process is computationally efficient and stable for online learning, we employ Variational Bayes expectation maximization. This allows the GMM to update dynamically as the agent learns, ensuring the "corrective noise" evolves alongside the agent’s performance.

Implementation

This technique is modular and can be integrated into existing actor-critic frameworks. In this study, we implemented the method within Soft Actor-Critic (SAC) and Randomized Ensembled Double Q-learning (REDQ), resulting in SymSAC and SymREDQ.

Experimental Evaluation

We evaluated the proposed method on the MuJoCo (Multi-Joint dynamics with Contact) benchmark suite, focusing on high-dimensional continuous control tasks:

  • Humanoid-v2: A complex bipedal locomotion task.
  • Ant-v2: A four-legged robot navigation task.
  • Walker2d-v2, Hopper-v2, and HalfCheetah-v2: Standard locomotion benchmarks.

Results and Discussion

Symmetric Q-learning consistently improved the sample efficiency of the baseline algorithms.

Sample Efficiency Gains

The most notable improvements were observed in the most complex environments. In Humanoid-v2, SymREDQ reached a performance threshold of 5000 in approximately 172,000 steps. In contrast, the baseline REDQ algorithm required 255,000 steps to reach the same level of performance. This represents a significant reduction in the amount of interaction data required for the agent to master the task.

Stability and Robustness

Compared to methods like "Extreme Q-learning," which utilizes Gumbel regression to handle skewness, Symmetric Q-learning demonstrated superior stability. By maintaining the standard least-squares framework and adjusting the error distribution, the method avoids the sensitivity often associated with complex non-Gaussian loss functions.

The Role of Noise

While adding noise typically increases variance, Symmetric Q-learning demonstrates that structured, "corrective" noise can be beneficial. By satisfying the underlying statistical assumptions of the MSE optimizer, the injected noise facilitates more accurate gradient updates. To manage the increased variance inherent in noise injection, the use of Q-function ensembles (as seen in REDQ) proved to be an effective complementary strategy.

Conclusion

Symmetric Q-learning provides a novel solution to the problem of skewed Bellman errors in reinforcement learning. By dynamically estimating the error distribution and injecting corrective noise, the method restores the symmetry required for efficient least-squares optimization. Our results on MuJoCo benchmarks confirm that this approach leads to faster and more stable learning in continuous control tasks. Future work will explore the theoretical convergence properties of this symmetrization process and investigate its application in even higher-dimensional or discrete action spaces.

Summary updated

BibTeX
@inproceedings{omura2024symmetric,
  author = {Motoki Omura and Takayuki Osa and Yusuke Mukuta and Tatsuya Harada},
  title = {{Symmetric Q-learning: Reducing Skewness of Bellman Error in Online Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i13.29362},
}
Figure