Stop Regressing: Training Value Functions via Classification for Scalable Deep RL

Jesse Farebrother, Jordi Orbay, Quan Vuong, Adrien Ali Taïga, Yevgen Chebotar +7 more
3/6/2024
cs.LGcs.AIstat.ML

No official code found. Best implementation: AlxSp/gauss-searchless-chess (6 stars, Apache-2.0, last commit 2024-07-29). 2 more below.

Abstract

Value functions are a central component of deep reinforcement learning (RL). These functions, parameterized by neural networks, are trained using a mean squared error regression objective to match bootstrapped target values. However, scaling value-based RL methods that use regression to large networks, such as high-capacity Transformers, has proven challenging. This difficulty is in stark contrast to supervised learning: by leveraging a cross-entropy classification loss, supervised methods have scaled reliably to massive networks. Observing this discrepancy, in this paper, we investigate whether the scalability of deep RL can also be improved simply by using classification in place of regression for training value functions. We demonstrate that value functions trained with categorical cross-entropy significantly improves performance and scalability in a variety of domains. These include: single-task RL on Atari 2600 games with SoftMoEs, multi-task RL on Atari with large-scale ResNets, robotic manipulation with Q-transformers, playing Chess without search, and a language-agent Wordle task with high-capacity Transformers, achieving state-of-the-art results on these domains. Through careful analysis, we show that the benefits of categorical cross-entropy primarily stem from its ability to mitigate issues inherent to value-based RL, such as noisy targets and non-stationarity. Overall, we argue that a simple shift to training value functions with categorical cross-entropy can yield substantial improvements in the scalability of deep RL at little-to-no cost.

View on arXivView PDF

Code Implementations(3)

MIT

Jax implementation of HL-Gauss loss (from the paper "Stop Regressing: Training Value Functions via Classification for Scalable Deep RL") on top of DRL algorithms.

31Shell, PythonOct 17, 20241 years agoMIT
PyTorchApache-2.0

About Pytorch implementation of "Grandmaster-Level Chess Without Search" and "Stop Regressing: Training Value Functions via Classification for Scalable Deep RL"

10Shell, PythonJul 4, 20251 years agoApache-2.0
artificial-intelligencechess-aideep-learningmodel-trainingpytorch
Apache-2.0

Pytorch implementation of "Grandmaster-Level Chess Without Search" and "Stop Regressing: Training Value Functions via Classification for Scalable Deep RL"

60Shell, PythonMay 7, 20242 years agoApache-2.0
artificial-intelligencechess-aideep-learning

Cite this paper

@article{farebrother2024stop,
  title  = {Stop Regressing: Training Value Functions via Classification for Scalable Deep RL},
  author = {Jesse Farebrother and Jordi Orbay and Quan Vuong and Adrien Ali Taïga and Yevgen Chebotar and Ted Xiao and Alex Irpan and Sergey Levine and Pablo Samuel Castro and Aleksandra Faust and Aviral Kumar and Rishabh Agarwal},
  year   = {2024},
  eprint = {2403.03950},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.03950v1},
  journal = {ICML 2024 2024}
}

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

Discussion