Introduction
In reinforcement learning (RL), continuing tasks—those without a natural end or reset—present unique challenges for value estimation. Standard approaches utilize a discount factor ($\gamma$) to ensure convergence, but this introduces two significant issues: the "Magnitude Problem" and "Sensitivity to Offsets." As $\gamma$ approaches 1, state-value estimates grow toward infinity, making it difficult for function approximators to discern the small relative differences between actions. Furthermore, arbitrary shifts in reward magnitude can degrade performance as agents struggle to learn a new baseline.
The Magnitude Problem
As the discount factor $\gamma$ increases, the estimated values of states scale by $1/(1-\gamma)$. For a high discount factor like 0.999, values can reach thousands, while the actual differences between actions (which drive policy improvement) remain small. This discrepancy consumes the capacity of neural networks, leading to instability. Reward centering addresses this by focusing the approximator on relative differences rather than absolute magnitudes.
Methodology: Reward Centering
The proposed solution is Reward Centering: replacing the raw reward $R_t$ with $R_t - \bar{R}_t$, where $\bar{R}_t$ is an estimate of the average reward. This technique effectively cancels out the state-independent constant that causes value explosion.
The paper evaluates two estimation methods:
- Simple Centering: A running average of observed rewards, suitable for on-policy learning.
- Value-based Centering: Updates the average reward estimate using the Temporal Difference (TD) error, which proves more robust in off-policy settings like Q-learning.
Theoretical Foundation
The approach is grounded in the Laurent-series decomposition of discounted values. Mathematically, a discounted value can be split into a state-independent constant (which diverges as $\gamma \to 1$) and a "differential value" that captures meaningful state differences. By subtracting the average reward, the agent focuses exclusively on learning these differential values.
Experimental Results
The authors integrated reward centering into Q-learning, DQN, and PPO, testing across environments like MuJoCo and CSuite.
Stability and Performance
In the Access-Control problem, standard Q-learning performance collapses as $\gamma$ increases. In contrast, reward centering maintains high performance and stability across all tested values of $\gamma$.
Key Findings
- Value Reduction: For $\gamma = 0.999$, standard Q-learning values reached ~1434, while centered values stayed near 0.5.
- Convergence Speed: Centered PPO significantly outperformed standard PPO in complex MuJoCo tasks like Humanoid.
- Invariance: Centered DQN demonstrated nearly identical learning curves regardless of arbitrary reward offsets (e.g., adding +8 or -8 to all rewards).
Conclusion
Reward centering is a simple yet powerful modification for continuing RL tasks. By stabilizing value magnitudes and providing robustness to reward shifts, it allows agents to focus on the relative advantages of actions, leading to faster and more reliable learning. While primarily intended for continuing tasks, its ability to decouple value magnitude from the discount factor opens new avenues for adaptive agents that can dynamically adjust their planning horizons.
Summary updated