Robust and Data-efficient Q-learning by Composite Value-estimation

Gabriel Kalweit, Maria Kalweit, Joschka Boedecker

Abstract

In the past few years, off-policy reinforcement learning methods have shown promising results in their application to robot control. Q-learning based methods, however, still suffer from poor data-efficiency and are susceptible to stochasticity or noise in the immediate reward, which is limiting with regard to real-world applications. We alleviate this problem by proposing two novel off-policy Temporal-Difference formulations: (1) Truncated Q-functions which represent the return for the first $n$ steps of a target-policy rollout with respect to the full action-value and (2) Shifted Q-functions, acting as the farsighted return after this truncated rollout. This decomposition allows us to optimize both parts with their individual learning rates, achieving significant learning speedup and robustness to variance in the reward signal, leading to the Composite Q-learning algorithm. We show the efficacy of Composite Q-learning in the tabular case and furthermore employ Composite Q-learning within TD3. We compare Composite TD3 with TD3 and TD3($\Delta$), which we introduce as an off-policy variant of TD($\Delta$). Moreover, we show that Composite TD3 outperforms TD3 as well as TD3($\Delta$) significantly in terms of data-efficiency in multiple simulated robot tasks and that Composite Q-learning is robust to stochastic immediate rewards.

Introduction

Standard Q-learning faces significant hurdles in real-world applications like robotics. Two primary challenges are data inefficiency—where reward signals take a long time to propagate back through action sequences—and stochasticity, where noisy rewards from sensor errors or actuator lag create high variance in value estimates. While $n$-step returns are a common solution to speed up propagation, they are notoriously difficult to implement in off-policy settings where the agent learns from data gathered by different policies.

Methodology: Composite Q-learning

The core innovation of this work is the decomposition of the full action-value function ($Q$) into two distinct components:

  1. Truncated Q-functions ($Q_n$): Representing the expected return for the first $n$ steps of a rollout.
  2. Shifted Q-functions ($Q_{n:\infty}$): Representing the "farsighted" return following those initial $n$ steps.
Architecture of the Composite Q-learning framework showing the decomposition into truncated and shifted components.

As illustrated in the architecture above, the framework utilizes Consecutive Bootstrapping. Instead of requiring full $n$-step trajectories, the algorithm learns these components using single-step transitions through a chain of intermediate predictions. Each "head" in the network learns to predict a slightly longer horizon than the previous one.

A key insight is the use of Independent Learning Rates. The authors demonstrate that the "Shifted" (long-term) component often suffers from less variance than the immediate reward signal. By applying a higher learning rate to this stable long-term component and a lower rate to the short-term component, the algorithm achieves faster convergence without sacrificing stability. Additionally, entropy regularization is employed to maintain stability across the distribution of intermediate predictions.

Experimental Setup

The efficacy of Composite Q-learning was evaluated across several benchmarks:

  • Tabular MDPs: Simple chain environments used for theoretical analysis of task horizons.
  • MuJoCo (OpenAI Gym): High-dimensional continuous control tasks including Walker2d-v2, Hopper-v2, and Humanoid-v2.
  • LunarLander-v2: Testing performance in discrete action spaces with noisy rewards.

Results and Discussion

The proposed Composite TD3 (integrating the framework into the TD3 algorithm) demonstrated superior performance and robustness:

  • Efficiency Gains: Composite TD3 outperformed standard TD3 and TD3($\Delta$) by 24% to 32% in terms of area under the learning curve across MuJoCo tasks.
  • Noise Robustness: In scenarios where rewards were replaced by random noise 40% of the time, Composite TD3 maintained high performance while baseline methods often failed to learn.
  • Temporal Complexity: The performance gap widened as task horizons increased, suggesting the "divide and conquer" approach to temporal complexity effectively prevents immediate reward errors from poisoning long-term estimates.

Conclusion and Future Work

Composite Q-learning provides a robust framework for off-policy RL by isolating long-term value estimates from short-term noise. While the method introduces additional hyperparameters (truncation horizon $n$, multiple learning rates) and slight computational overhead due to the multi-head architecture, the gains in data efficiency are substantial.

Future research may explore using the variance between intermediate "heads" as an uncertainty estimate for exploration. Furthermore, Shifted Q-functions could serve as an implicit dynamics model, potentially bridging the gap between model-based and model-free reinforcement learning.

Summary updated

BibTeX
@article{kalweit2022robust,
  author = {Gabriel Kalweit and Maria Kalweit and Joschka Boedecker},
  title = {{Robust and Data-efficient Q-learning by Composite Value-estimation}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=ak6Bds2DcI},
}
Figure