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

Jesse Farebrother Jesse Farebrother 1 2 4
Jordi Orbay Jordi Orbay 1
Quan Vuong Quan Vuong 1
Adrien Ali Taïga Adrien Ali Taïga 1
Yevgen Chebotar Yevgen Chebotar 1
Ted Xiao Ted Xiao 1
Alex Irpan Alex Irpan 1
Sergey Levine Sergey Levine 1
Pablo Samuel Castro Pablo Samuel Castro 1 3 4
Aleksandra Faust Aleksandra Faust 1
Aviral Kumar Aviral Kumar 1
Rishabh Agarwal Rishabh Agarwal 1 3 4

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.


Untitled ICML 2024
Oral Presentation

Citing

To cite this paper, please use the following reference:

@inproceedings{farebrother24classification,
	title        = {Stop Regressing: Training Value Functions via Classification for Scalable Deep RL},
	author       = {
		Farebrother, Jesse and Orbay, Jordi and Vuong, Quan and Ali Taïga, Adrien and Chebotar,
		Yevgen and Xiao, Ted and Irpan, Alex and Levine, Sergey and Samuel Castro, Pablo and Faust,
		Aleksandra and Kumar, Aviral and Agarwal, Rishabh
	},
	year         = 2024,
	booktitle    = {International Conference on Machine Learning (ICML)}
}