NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Jesse Farebrother, Jordi Orbay, Quan Vuong, Adrien Ali Taiga, Yevgen Chebotar, Ted Xiao, Alex Irpan, Sergey Levine, Pablo Samuel Castro, Aleksandra Faust, Aviral Kumar, Rishabh Agarwal

Deep Reinforcement Learning (RL) has long struggled to scale as reliably as supervised learning. In supervised domains like natural language processing or computer vision, scaling up models—such as Large Language Models (LLMs) or Vision Transformers—almost universally leads to better performance. In value-based Deep RL (e.g., DQN), however, this is rarely true. Scaling the neural network often leads to performance plateaus or even catastrophic degradation.

This paper identifies a fundamental discrepancy at the heart of this issue: supervised learning thrives on categorical cross-entropy (classification), while RL typically relies on Mean Squared Error (MSE) regression to match "bootstrapped" target values. Regression is highly sensitive to outliers, struggles with the "non-stationarity" of RL (where targets change as the agent learns), and often fails to provide the rich gradients needed to train massive networks.

The authors ask a pivotal question: Can we unlock "supervised-level" scaling in RL simply by changing the loss function? By reframing value prediction as a classification task using categorical cross-entropy—specifically via a method called HL-Gauss—they demonstrate dramatic improvements in performance, robustness to noise, and scalability across architectures ranging from ResNets to large Transformers.

Reframing Regression as Classification

The core proposal of the paper is to treat the continuous scalar value (the "Q-value") not as a single regression target, but as a categorical distribution.

  1. Discretization: The range of possible values (e.g., -10 to 10) is split into $m$ evenly spaced "bins."
  2. HL-Gauss (Histogram Loss with Gaussian Smoothing): Instead of using a "one-hot" label—where only the specific bin containing the target value has a probability of 1—the authors apply a Gaussian distribution centered at the target value. This spreads the probability mass smoothly across neighboring bins.
  3. Cross-Entropy Loss: The neural network is then trained to predict this smoothed distribution using standard categorical cross-entropy. To extract a continuous scalar value for actual decision-making, the system simply calculates the expected value of the predicted distribution.
Comparison of value distribution methods: Two-Hot, HL-Gauss, and Categorical Distributional RL.

Importantly, this approach differs from standard Distributional RL algorithms like C51. While C51 attempts to model the inherent randomness and variance of the environment's actual returns, HL-Gauss uses the categorical format primarily as a more robust, stable numerical "wrapper" for what is fundamentally still a regression task.

Why Classification Works Better

Through extensive analysis, the authors uncovered several key reasons why classification unlocks better scaling and performance in RL:

  • The Scaling "Aha!": On a multi-task Asteroids benchmark, as the network grew from a small CNN to a massive ResNet-101, the MSE-based agent's performance actually collapsed. In stark contrast, the HL-Gauss agent's performance continued to climb, proving that classification is a key ingredient for high-capacity RL.
  • Robustness to "Trash" Data: RL targets are notoriously noisy because they rely on bootstrapping from the agent's own evolving predictions. Because MSE squares the error, a single "outlier" target can pull the network weights violently. Cross-entropy provides much more stable, bounded gradients, making HL-Gauss significantly more robust to reward noise.
  • Maintaining Plasticity: A common failure mode in RL is the "loss of plasticity," where a network loses its ability to learn new things over time. The authors show that classification losses help the network retain its adaptability, even when the magnitude of the targets shifts due to non-stationarity.
  • Better Representations: Using "linear probing" (training a simple linear layer on top of frozen network features), the researchers found that features learned via classification were substantially more useful for downstream tasks than those learned via regression.

Key Results Across Domains

The authors evaluated HL-Gauss across a massive breadth of benchmarks, consistently achieving state-of-the-art results:

  • Atari 2600 (ALE): Tested across 60 games for online RL and 17 games for offline RL, HL-Gauss outperformed both MSE and the popular C51 algorithm. In multi-task setups, it achieved 1.8–2.1× the performance of standard methods.
Performance comparison on Atari benchmarks showing HL-Gauss outperforming MSE and C51.
  • Chess: The authors trained a 270M parameter Transformer using HL-Gauss on a distillation task of 10 million games (15 billion data points) annotated by Stockfish 16. Remarkably, without any search mechanisms, it nearly matched the performance of AlphaZero using 400 MCTS simulations, significantly outperforming previous "one-hot" classification attempts.
  • Robotic Manipulation: In a simulated vision-based environment involving a 7-DoF arm grasping 17 different kitchen objects, HL-Gauss led to 67% higher peak performance and much faster learning compared to MSE.
  • Wordle: On a language-agent task requiring a GPT-like Transformer to guess words, the agent performed 40% better when trained with classification.

Limitations and Future Directions

While highly effective, the HL-Gauss approach does introduce a few practical considerations. First is Bin Sensitivity: the user must pre-define the range $[v_{min}, v_{max}]$ and the number of bins. If the agent encounters values outside this range, they are clipped, which can lead to value underestimation. Second, it requires Hyperparameter Tuning; although the authors suggest a default smoothing ratio ($\sigma/\varsigma = 0.75$), this is an extra parameter that standard regression doesn't require. Finally, computing a softmax over 51 or 101 bins introduces a slight Computational Overhead, though this cost is generally negligible when using large backbones like Transformers.

Ultimately, shifting to categorical cross-entropy for training value functions offers a massive leap forward for the scalability of deep RL at little-to-no cost. The authors suggest that future work should explore how this reframing might impact "pre-training" in RL, potentially paving the way for RL foundation models trained on massive, diverse datasets similar to modern LLMs.

Summary updated

BibTeX
@inproceedings{farebrother2024stop,
  author = {Jesse Farebrother and Jordi Orbay and Quan Vuong and Adrien Ali Taiga 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},
  title = {{Stop Regressing: Training Value Functions via Classification for Scalable Deep RL}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=dVpFKfqF3R},
}
Figure