Loss Dynamics of Temporal Difference Reinforcement Learning

Blake Bordelon, Paul Masset, Henry Kuo, Cengiz Pehlevan
7/10/2023
stat.MLcond-mat.dis-nncs.AI

Official code: Pehlevan-Group/TD-RL-dynamics (3 stars, MIT, last commit 2024-04-01).

Abstract

Reinforcement learning has been successful across several applications in which agents have to learn to act in environments with sparse feedback. However, despite this empirical success there is still a lack of theoretical understanding of how the parameters of reinforcement learning models and the features used to represent states interact to control the dynamics of learning. In this work, we use concepts from statistical physics, to study the typical case learning curves for temporal difference learning of a value function with linear function approximators. Our theory is derived under a Gaussian equivalence hypothesis where averages over the random trajectories are replaced with temporally correlated Gaussian feature averages and we validate our assumptions on small scale Markov Decision Processes. We find that the stochastic semi-gradient noise due to subsampling the space of possible episodes leads to significant plateaus in the value error, unlike in traditional gradient descent dynamics. We study how learning dynamics and plateaus depend on feature structure, learning rate, discount factor, and reward function. We then analyze how strategies like learning rate annealing and reward shaping can favorably alter learning dynamics and plateaus. To conclude, our work introduces new tools to open a new direction towards developing a theory of learning dynamics in reinforcement learning.

View on arXivView PDF

Code Implementations(1)

MIT

Theory of Temporal Difference Learning Dynamics for High Dimensional Features

30Python, Jupyter NotebookJul 9, 20232 years agoMIT

Similar Papers

Cite this paper

@article{bordelon2023loss,
  title  = {Loss Dynamics of Temporal Difference Reinforcement Learning},
  author = {Blake Bordelon and Paul Masset and Henry Kuo and Cengiz Pehlevan},
  year   = {2023},
  eprint = {2307.04841},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.04841v2},
  journal = {NEURIPS 2023 2023}
}

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/2307.04841.svg)](https://codeofpaper.com/paper/2307.04841)

Discussion