A Theoretical Understanding of Gradient Bias in Meta-Reinforcement Learning

Xidong Feng, Bo Liu, Jie Ren, Luo Mai, Rui Zhu +3 more
12/31/2021
cs.LGcs.AI
rl

Official code: Benjamin-eecs/Theoretical-GMRL (4 stars, Python, MIT, last commit 2022-11-30).

Abstract

Gradient-based Meta-RL (GMRL) refers to methods that maintain two-level optimisation procedures wherein the outer-loop meta-learner guides the inner-loop gradient-based reinforcement learner to achieve fast adaptations. In this paper, we develop a unified framework that describes variations of GMRL algorithms and points out that existing stochastic meta-gradient estimators adopted by GMRL are actually \textbf{biased}.

Show full abstract

Such meta-gradient bias comes from two sources: 1) the compositional bias incurred by the two-level problem structure, which has an upper bound of $\mathcal{O}\big(Kα^{K}\hatσ_{\text{In}}|τ|^{-0.5}\big)$ \emph{w.r.t.} inner-loop update step $K$, learning rate $α$, estimate variance $\hatσ^{2}_{\text{In}}$ and sample size $|τ|$, and 2) the multi-step Hessian estimation bias $\hatΔ_{H}$ due to the use of autodiff, which has a polynomial impact $\mathcal{O}\big((K-1)(\hatΔ_{H})^{K-1}\big)$ on the meta-gradient bias. We study tabular MDPs empirically and offer quantitative evidence that testifies our theoretical findings on existing stochastic meta-gradient estimators. Furthermore, we conduct experiments on Iterated Prisoner's Dilemma and Atari games to show how other methods such as off-policy learning and low-bias estimator can help fix the gradient bias for GMRL algorithms in general.

View on arXivView PDF

Code Implementations(1)

MIT

NeurIPS-2022: A Theoretical Understanding of Gradient Bias in Meta-Reinforcement Learning.

40Python, ShellSep 21, 20224 years agoMIT

Similar Papers

Cite this paper

@article{feng2021theoretical,
  title  = {A Theoretical Understanding of Gradient Bias in Meta-Reinforcement Learning},
  author = {Xidong Feng and Bo Liu and Jie Ren and Luo Mai and Rui Zhu and Haifeng Zhang and Jun Wang and Yaodong Yang},
  year   = {2021},
  eprint = {2112.15400},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.15400}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.15400.svg)](https://codeofpaper.com/paper/2112.15400)

Discussion