Skip to main content
QUICK REVIEW

[Paper Review] Variance Reduction for Deep Q-Learning using Stochastic Recursive Gradient

Haonan Jia, Xiao Zhang|arXiv (Cornell University)|Jul 25, 2020
Domain Adaptation and Few-Shot LearningComputer Science23 references5 citations
TL;DR

This paper proposes SRG-DQN, a novel deep Q-learning algorithm that uses stochastic recursive gradient (SRG) to reduce gradient variance, eliminating the need for inaccurate full-gradient anchors in online reinforcement learning. By recursively updating gradient estimates and integrating Adam optimization, SRG-DQN achieves faster convergence, improved stability, and superior performance on Atari games compared to SGD- and SVRG-based baselines.

ABSTRACT

Deep Q-learning algorithms often suffer from poor gradient estimations with an excessive variance, resulting in unstable training and poor sampling efficiency. Stochastic variance-reduced gradient methods such as SVRG have been applied to reduce the estimation variance (Zhao et al. 2019). However, due to the online instance generation nature of reinforcement learning, directly applying SVRG to deep Q-learning is facing the problem of the inaccurate estimation of the anchor points, which dramatically limits the potentials of SVRG. To address this issue and inspired by the recursive gradient variance reduction algorithm SARAH (Nguyen et al. 2017), this paper proposes to introduce the recursive framework for updating the stochastic gradient estimates in deep Q-learning, achieving a novel algorithm called SRG-DQN. Unlike the SVRG-based algorithms, SRG-DQN designs a recursive update of the stochastic gradient estimate. The parameter update is along an accumulated direction using the past stochastic gradient information, and therefore can get rid of the estimation of the full gradients as the anchors. Additionally, SRG-DQN involves the Adam process for further accelerating the training process. Theoretical analysis and the experimental results on well-known reinforcement learning tasks demonstrate the efficiency and effectiveness of the proposed SRG-DQN algorithm.

Motivation & Objective

  • To address the instability and poor sampling efficiency in deep Q-learning caused by high-variance gradient estimates.
  • To overcome the limitation of SVRG-based methods in online reinforcement learning, where anchor point estimation is inaccurate due to non-iid, dynamically generated transitions.
  • To design a variance-reduction framework that avoids full-gradient computation by using recursive gradient updates.
  • To integrate adaptive optimization (Adam) with recursive gradient estimation for faster convergence.
  • To empirically validate the superiority of the proposed method over state-of-the-art DQN variants in terms of reward, convergence speed, and training stability.

Proposed method

  • Introduces a two-loop structure: an outer loop samples N transitions from the replay buffer, and an inner loop performs recursive gradient updates.
  • Employs a recursive gradient estimator inspired by SARAH, where the stochastic gradient is updated using past gradient differences instead of relying on full-batch anchors.
  • Replaces the anchor point in SVRG with a recursively updated estimate, avoiding the need for computationally expensive full-gradient calculations.
  • Integrates the Adam optimizer at the end of each outer loop to accelerate convergence and improve parameter update direction.
  • Uses a recursive update rule: $ g_{k} = g_{k-1} + \nabla f_{i_k}(\theta_k) - \nabla f_{i_k}(\theta_{k-1}) $, which accumulates gradient information over iterations.
  • Theoretical analysis shows that the method achieves an $ \varepsilon $-optimal solution with $ O(1/\varepsilon) $ query complexity to the IFO, matching the best-known rate for variance-reduced methods.

Experimental results

Research questions

  • RQ1Can recursive gradient estimation effectively reduce variance in online deep Q-learning without relying on full-gradient anchors?
  • RQ2How does the recursive gradient update compare to SVRG’s anchor-based approach in terms of gradient accuracy and training stability?
  • RQ3Does combining recursive gradient estimation with Adam optimization lead to faster convergence and better performance on Atari environments?
  • RQ4To what extent does SRG-DQN reduce gradient variance compared to SVR-DQN, as measured by the standard deviation of gradients?
  • RQ5Can the proposed method achieve better sample efficiency and final performance than existing SGD- and SVRG-based DQN variants?

Key findings

  • SRG-DQN achieves significantly faster convergence and lower standard deviation in episode length compared to standard DQN with SGD, as shown in the episode-average size experiment.
  • The algorithm reduces the $ \ell_2 $ distance between recursive anchors and exact anchors by a large margin, confirming improved anchor estimation accuracy.
  • On average, SRG-DQN reduces the standard deviation of gradients (across the first layer parameters) by up to 50% compared to SVR-DQN, especially at later training steps.
  • In Atari game benchmarks, SRG-DQN outperforms both SGD-based DQN and SVR-DQN in final average reward scores, with gains of up to 0.966 in Breakout and 0.632 in Q*bert.
  • The combination of recursive gradient estimation and Adam leads to a 30-40% reduction in training time compared to SVR-DQN, while maintaining or improving performance.
  • Empirical results confirm that SRG-DQN stabilizes training and reduces variance more effectively than existing variance-reduction baselines, particularly in high-variance, non-stationary environments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.