TL;DR
While Mean Squared Error (MSE) is the default loss function for value-based reinforcement learning, this paper demonstrates that it is theoretically and empirically suboptimal for decision-making. The authors show that Mean Absolute Error (MAE) yields tighter bounds on a policy's suboptimality gap, and they prove that cross-entropy losses act as superior surrogates to squared loss, particularly when an optimal policy achieves near-maximal returns.
What Problem Does This Paper Address?
Value-based reinforcement learning (RL) algorithms, such as Q-learning, traditionally rely on squared loss (MSE) to train value function approximators. However, the ultimate goal of RL is to make optimal decisions (maximizing expected returns), not just to minimize prediction errors.
The authors address a fundamental misalignment: minimizing MSE on data can lead to worse decision-making performance than alternative empirical losses. Because MSE heavily penalizes rare, high-error events, it overestimates the errors relevant to typical decision-making scenarios. This issue is especially pronounced in "near-deterministic" or highly successful settings where the optimal value ($v^\star$) is close to the maximum possible reward.
Methods
The paper tackles this problem through a mix of statistical learning theory and loss function design:
- Theoretical Error Reduction: The authors bound the policy suboptimality gap (regret) using both MAE and root-MSE (rMSE), proving mathematically that MAE provides a tighter, more effective approximation for decision quality.
- Surrogate Loss Analysis: Directly minimizing absolute error ($\ell_1$ loss) is problematic for RL because its mathematical minimizer is the median, not the mean—and greedy choices based on the median lead to suboptimal policies. The authors show that log-loss (binary cross-entropy) serves as an ideal surrogate: its population minimizer is the mean, yet it tightly controls the MAE.
- Reparameterized Categorical Cross-Entropy ($\ell_{\text{cat}}$): Standard categorical cross-entropy losses used in distributional RL introduce an irreducible "projection bias" because they discretize continuous rewards into fixed bins. The authors introduce a novel reparameterization that embeds the raw continuous target directly into the sufficient statistic, eliminating this bias while retaining multi-category classification benefits.
Datasets
The methods were evaluated using a simulated benchmark environment:
- Inverted Pendulum: A classic control task where the agent applies forces to keep a pendulum balanced upright. The state space was mapped using linear function approximation via Fourier features (orders 2 and 3).
- Datasets of varying sizes (1,000 to 5,000 timesteps) were collected using a random policy until failure to evaluate the algorithms in a linear batch RL framework (Fitted Q-Iteration).
Key Insights and Ideas
- The "Over-Weighting" Flaw of MSE: MSE over-penalizes rare states. If an algorithm performs poorly on a rare state but perfectly on common states, MSE flags a massive error, whereas MAE keeps the error proportional to the state's actual probability of occurrence.
- Log-Loss as an MAE Ally: Log-loss naturally scales its bounds with $(1 - v^\star)$. When an optimal policy is highly effective ($v^\star \approx 1$), log-loss converges much faster than squared loss.
- Unifying Classification and Regression: By altering the sufficient statistic of the categorical cross-entropy loss, the authors successfully bridged the gap between predicting discrete action distributions (classification) and continuous value functions (regression) without losing fine-grained data granularity.
Key Results
- Theoretical Bounds: The authors proved that log-loss minimization achieves a fast convergence rate of $O(1/n)$ for MAE when $v^\star \approx 1$. Conversely, they proved that directly minimizing squared loss can get stuck at a slower $O(1/\sqrt{n})$ error rate under the exact same conditions.
- Empirical Performance: In the inverted pendulum experiments with order-2 Fourier features, both the log-loss (LOG) and the reparameterized categorical loss (CAT) significantly outperformed the squared loss (SQUARE), maintaining a much lower policy failure rate across smaller dataset sizes. With order-3 features, LOG demonstrated the fastest learning rate.
Order-2 Fourier Features Performance Trend:
Failure Rate: SQUARE (High) > LOG & CAT (Significantly Lower)
Limitations and Future Work
- Limited Experimental Scope: The empirical results are restricted to a single, low-dimensional environment (inverted pendulum) utilizing linear function approximation (Fourier features).
- Hyperparameter Sensitivity: The proposed reparameterized categorical loss (CAT) proved highly sensitive to the choice of $\ell_2$ regularization, as well as the exact number and spacing of the bins, making it less "plug-and-play" than standard squared loss.
- Future Directions: The authors suggest extending this theoretical framework and the reparameterized cross-entropy losses to deep reinforcement learning settings, where neural networks might amplify or alter these loss dynamics.
Summary updated