Introduction
In value-based reinforcement learning (RL), the standard approach for decades has been to treat value estimation as a regression problem. Specifically, practitioners typically minimize the Mean Squared Error (MSE) between a predicted value and an observed return. While MSE is the "default" loss function across much of machine learning, this paper argues that it is often the wrong tool for RL. The authors demonstrate that MSE is fundamentally misaligned with the ultimate goal of RL: making optimal decisions. Instead, they propose that Mean Absolute Error (MAE) and categorical cross-entropy losses provide a much tighter proxy for policy performance.
The Problem: Decision-Making vs. Prediction
The core issue in RL is the "suboptimality gap"—the difference in expected reward between the optimal policy and the policy derived from our value estimates. In traditional regression, we care about minimizing error across the entire data distribution. In RL, however, we only care about errors that lead to a change in the ranking of actions.
Through theoretical analysis, the authors show that MAE provides a tighter bound on the suboptimality gap than the root Mean Squared Error (rMSE). MSE tends to over-emphasize rare, high-variance events (outliers). In an RL context, if a rare state has a high-variance return, an MSE-based learner might drastically alter its policy to account for that outlier, even if that state is unlikely to be visited by an optimal agent. This sensitivity can lead to slower convergence and unstable policies.
Theoretical Insights
The paper provides two significant theoretical contributions regarding loss functions:
- Convergence Rates: The authors construct scenarios where an MSE-based learner is limited to a convergence rate of $1/\sqrt{n}$, while a learner using log-loss (cross-entropy) can achieve a much faster $1/n$ rate. This occurs because log-loss effectively controls the MAE, which is more robust to the "distractions" of rare, high-variance data points.
- The MAE-Decision Link: By proving that minimizing cross-entropy losses effectively minimizes a bound on the MAE, the authors establish a theoretical bridge between classification-style objectives and superior decision-making in RL.
Methods: Reparameterized Categorical Cross-Entropy
While Distributional RL has previously used categorical losses (dividing the reward range into discrete "bins"), these methods often suffer from "projection bias." When a target value falls between two bins, the exact value is lost during the projection onto the discrete distribution.
To solve this, the authors introduce a reparameterized categorical loss (Cat-Loss). This method incorporates the raw target value directly into the loss calculation by choosing the "sufficient statistics" of the exponential family such that the model's expected value exactly recovers the mean. This allows the model to leverage the robust, classification-like structure of cross-entropy without the precision loss associated with traditional binning.
Empirical Validation
The authors tested their hypotheses using the Inverted Pendulum benchmark, a classic control task. To isolate the effects of the loss functions, they used Fourier features (orders 2 and 3) for state representation, creating a linear RL setting where the differences in loss behavior are clearly observable.
Key Findings:
- Performance Superiority: Both the log-loss (LOG) and the new reparameterized categorical loss (CAT) significantly outperformed the squared loss (SQUARE/MSE).
- Data Efficiency: Using order-2 features, the cross-entropy-based methods reached a near-zero failure rate using approximately half the data required by the MSE-based method.
- Robustness: The cross-entropy methods were less likely to be derailed by the variance inherent in the environment's returns, confirming the theoretical claim that MAE-centric losses are more "natural" for RL.
Conclusion and Future Work
This research suggests that the recent success of categorical losses in Deep RL (such as in the "Stop Regressing" line of work) is not merely a heuristic benefit but is grounded in the fundamental relationship between MAE and the suboptimality gap.
While the current empirical results are focused on linear function approximation in classic control, the theoretical framework is general. Future work will involve scaling these insights to high-dimensional deep RL architectures and investigating the hyperparameter sensitivity of the Categorical (CAT) loss, which currently requires more careful tuning of bin spacing and regularization than standard MSE.
Summary updated