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

Is Value Functions Estimation with Classification Plug-and- play for Offline Reinforcement Learning?

Denis Tarasov, Kirill Brilliantov, Dmitrii Kharlapenko

Abstract

In deep Reinforcement Learning (RL), value function estimation is traditionally treated as a regression problem using Mean Squared Error (MSE). Recent successes in online RL suggest that discretizing returns into classification bins (HL-Gauss) can improve robustness. This paper investigates whether this approach serves as a "plug-and-play" replacement in Offline RL. Evaluating across three algorithm families—policy regularization (ReBRAC), implicit regularization (IQL), and Q-function regularization (LB-SAC)—we demonstrate that while classification is not a universal drop-in replacement, it can achieve state-of-the-art results, particularly in challenging domains like AntMaze, provided hyperparameters are meticulously tuned.

Introduction

Offline Reinforcement Learning requires agents to learn optimal policies from fixed datasets without environment interaction. A central challenge is the "deadly triad": the combination of bootstrapping, off-policy learning, and function approximation, which often leads to Q-function divergence. While MSE regression is standard, it frequently struggles with gradient stability and feature representation in these settings.

This study explores whether treating value estimation as a classification task—specifically using the Histogram Loss with Gaussian targets (HL-Gauss) framework—can mitigate these issues. The core question is whether classification is a robust, drop-in replacement for MSE or if its effectiveness is contingent on specific algorithmic architectures and hyperparameter configurations.

Methodology

The authors utilize the HL-Gauss framework, where the network outputs a probability distribution over $m$ discrete bins representing the return range $[v_{min}, v_{max}]$. This approach was integrated into three distinct offline RL paradigms:

  1. ReBRAC: Employs policy regularization to keep the learned policy near the data distribution.
  2. IQL (Implicit Q-Learning): Uses expectile regression for implicit regularization, avoiding out-of-distribution actions.
  3. LB-SAC (Large-Batch SAC): Uses ensembles for Q-function regularization to penalize uncertainty.

The integration involved a comprehensive grid search over classification-specific hyperparameters: the number of bins ($m$), the Gaussian target width ($\sigma/\zeta$), and the expansion of the value support range ($v_{expand}$).

Experimental Setup

Evaluations were conducted on the D4RL benchmark, covering three primary domains:

  • Gym-MuJoCo: Locomotion tasks (HalfCheetah, Hopper, Walker2d).
  • AntMaze: Sparse-reward navigation tasks prone to Q-function divergence.
  • Adroit: Complex robotic manipulation with limited human-demonstrated data.

Results and Discussion

Hyperparameter Sensitivity and Algorithmic Fit

A key finding is that classification is not a universal "plug-and-play" solution. While ReBRAC showed relative stability, IQL and LB-SAC experienced significant performance degradation when MSE was swapped for classification without extensive tuning.

Figure 1: Performance heatmaps across different algorithms and domains, showing sensitivity to the number of classes and the sigma/zeta ratio.

As shown in Figure 1, the number of bins ($m$) significantly impacts performance, with higher counts (up to 401) generally yielding better results. The $\sigma/\zeta$ ratio also requires careful selection, though 0.75 emerged as a robust default across most tasks.

State-of-the-Art in AntMaze

The most significant gains were observed in the AntMaze domain. By pairing ReBRAC with tuned classification, the researchers achieved a new state-of-the-art (SOTA) score.

Figure 5: Detailed results for the AntMaze domain, highlighting the performance jump for ReBRAC when using classification (CE+CT) compared to MSE.

In AntMaze, where standard MSE-based methods often fail due to Q-function divergence, the classification approach (specifically the CE+CT variant) improved ReBRAC's average score from 76.8 to 90.1. This suggests that classification is particularly effective when paired with policy regularization in sparse-reward environments.

The Pessimism Gap and Scaling

The study also revealed that extending the value support range ($v_{expand}$) beyond the dataset's observed min/max returns is crucial. This "breathing room" allows pessimistic Q-functions to operate more effectively. Interestingly, the scaling benefits of classification seen in Transformers did not translate to the standard MLPs used here, likely due to architectural differences like the absence of residual connections.

Conclusion

Classification-based value estimation offers a powerful alternative to MSE in offline RL, but it is not a simple drop-in replacement. Its success depends heavily on the underlying algorithm family and meticulous hyperparameter tuning. Future work may explore converting IQL's expectile loss into a classification objective and leveraging categorical distribution entropy for automated uncertainty estimation.

Summary updated

BibTeX
@article{tarasov2024is,
  author = {Denis Tarasov and Kirill Brilliantov and Dmitrii Kharlapenko},
  title = {{Is Value Functions Estimation with Classification Plug-and- play for Offline Reinforcement Learning?}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=MHJlFCqXdA},
}
Figure