Abstract
Standard Deep Reinforcement Learning (DRL) often relies on discounted reward objectives, which can introduce myopic bias and extreme sensitivity to the discount factor $\gamma$. This paper, presented at ICML 2024, introduces RVI-SAC, an off-policy algorithm that optimizes for the average reward criterion. By adapting Soft Actor-Critic (SAC) with Relative Value Iteration (RVI) and a novel delayed update mechanism, RVI-SAC provides a robust framework for continuing tasks. Empirical results on MuJoCo benchmarks demonstrate that RVI-SAC matches or exceeds the performance of finely-tuned discounted SAC while offering greater stability and eliminating the need for $\gamma$ hyperparameter tuning.
Introduction
Most modern RL algorithms maximize a discounted sum of future rewards. While mathematically convenient, this approach often fails to capture the long-term objectives of "continuing tasks"—scenarios like persistent robotic locomotion or queue management where there is no terminal state. High discount factors intended to capture long-term behavior often lead to training instability. RVI-SAC addresses this by shifting to the average reward criterion, maximizing the mean reward per timestep, which is more natural for infinite-horizon tasks.
Methods
RVI-SAC incorporates three primary innovations to stabilize average reward learning in a deep off-policy setting:
- RVI Q-learning Critic: Replaces the standard Bellman update with Relative Value Iteration: $Q(s,a) \approx r - \rho + Q(s',a')$, where $\rho$ represents the average reward. Unlike standard differential Q-learning, RVI has a unique convergence point, making it more suitable for function approximation.
- Delayed $f(Q)$ Update: To mitigate the noise of estimating $\rho$ from mini-batches, the authors use a two-time-scale approach. The average reward estimate is smoothed and updated more slowly than the Q-network, preventing destabilizing feedback loops.
- Automatic Reset Cost Adjustment: For tasks with failure states (e.g., falling), RVI-SAC treats the environment reset as a continuing process with a penalty. This "Reset Cost" is automatically tuned as a dual variable to maintain a target reset frequency.
Evaluation
The algorithm was evaluated on the Gymnasium MuJoCo locomotion suite, a standard benchmark for high-dimensional continuous control. The tasks included locomotion with termination (Ant, Hopper, Walker2d, Humanoid) and purely continuing tasks (Swimmer, HalfCheetah).
Results and Key Insights
RVI-SAC demonstrated competitive or superior performance compared to standard SAC across most environments. A key insight from the study is the "Discounting Trap": standard SAC is highly sensitive to the discount factor. For instance, the Swimmer task requires $\gamma=0.999$ to perform well, but that same value causes failure in other tasks. RVI-SAC bypasses this entirely.
Furthermore, RVI-SAC significantly outperformed ARO-DDPG, the primary existing off-policy average reward method. This success highlights the benefits of the maximum entropy framework (the "Soft" in SAC) when applied to the average reward setting. Ablation studies confirmed that without the "Delayed $f(Q)$ Update," Q-values often diverge, proving the necessity of the authors' stabilization technique.
Conclusion
RVI-SAC successfully bridges the gap between the theoretical advantages of average reward RL and the practical efficiency of off-policy deep learning. By stabilizing the RVI update and automating penalty tuning, it provides a powerful alternative to discounted methods for long-term continuous control. Future work will explore theoretical convergence proofs for function approximation and test the algorithm on a wider variety of complex tasks.
Summary updated