TL;DR
This paper introduces ASAC, the first actor-critic algorithm for deep reinforcement learning that optimizes for average reward while incorporating entropy regularization. This approach offers a more natural and robust way to solve long-horizon tasks compared to traditional discounted rewards, demonstrating superior performance on standard locomotion benchmarks.
What Problem Does This Paper Address?
Reinforcement learning (RL) agents learn by maximizing cumulative rewards. For tasks that continue indefinitely (e.g., robotics, game playing), the total reward can be unbounded. To handle this, a common technique is to "discount" future rewards, meaning rewards received later are worth less than immediate ones. This introduces a hyperparameter, the discount factor ($\gamma$), which is often difficult to tune and can lead agents to prioritize short-term gains over long-term optimal behavior.
While entropy regularization has proven highly effective in the discounted setting by encouraging more stochastic policies and improving robustness, its application to the average-reward objective (which aims to maximize the average reward per time step) has been largely unexplored in deep RL. Existing average-reward algorithms primarily focus on policy-gradient methods and often produce deterministic policies, which can be brittle in real-world scenarios. This paper bridges this gap by developing an actor-critic framework for entropy-regularized average-reward RL.
Methods
The core contribution is the Average-Reward Soft Actor-Critic (ASAC) algorithm. ASAC extends the well-established Soft Actor-Critic (SAC) algorithm, which is designed for discounted rewards, to the average-reward setting.
Key methodological aspects include:
- Generalizing SAC to Average Reward: The authors adapt the core components of SAC, including the actor (policy) and critic (value function), to optimize for the average reward rate ($\rho$) instead of the discounted sum.
- Entropy Regularization for Average Reward: They introduce an entropy bonus into the average-reward objective. This encourages policies that are not only good at maximizing average reward but also naturally stochastic and robust.
- Policy Improvement Theorem for ERAR MDPs: The paper derives theoretical results for policy improvement in Entropy-Regularized Average-Reward (ERAR) Markov Decision Processes (MDPs). This theorem shows how to update the policy to guarantee an increase in the average reward rate, analogous to how SAC improves policies in the discounted setting.
- Actor-Critic Architecture: ASAC employs a standard actor-critic setup where an actor network learns the policy, and critic networks estimate the value function. They use techniques like target networks and replay buffers, common in off-policy RL.
- Handling Reset Costs: For tasks with terminating states, they introduce an adaptive reset cost mechanism to better handle the transition back to the initial state in a way that aligns with the average-reward objective.
Datasets
The paper evaluates ASAC on standard continuous control locomotion environments from the Gymnasium Mujoco suite: HalfCheetah-v5, Ant-v5, Swimmer-v5, Hopper-v5, Walker2d-v5, and Humanoid-v5. These environments are commonly used for benchmarking RL algorithms.
Key Insights and Ideas
- Average Reward is More Natural for Long-Horizon Tasks: The paper strongly advocates for the average-reward objective as a more principled and often more suitable metric for continuous, long-horizon tasks, as it avoids the arbitrary nature of the discount factor.
- Entropy Regularization Enhances Robustness in Average Reward: Combining entropy regularization with the average-reward objective leads to policies that are not only efficient but also more stable and less prone to failure in complex environments.
- ASAC Bridges a Theoretical and Algorithmic Gap: The development of an actor-critic algorithm for entropy-regularized average-reward RL fills a significant void in the literature, enabling more robust and flexible solutions for challenging RL problems.
- Intuitive Connection to Discounted RL: The authors draw parallels between their average-reward policy improvement and the $\gamma \to 1$ limit of SAC, providing a theoretical bridge between the two formulations.
Key Results
- Superior Performance: ASAC consistently outperforms existing average-reward baselines (ARO-DDPG, ATRPO, APO) on the tested locomotion environments, achieving better asymptotic performance and often faster learning.
- Robustness: The entropy-regularized nature of ASAC appears to contribute to its stability and effectiveness, especially in more complex environments like Humanoid.
- Efficiency: The algorithm is presented as requiring minimal changes to existing SAC codebases, making it accessible and easy to implement.
Limitations and Future Work
- Hyperparameter Sensitivity: While ASAC is shown to be robust to hyperparameter choices, the paper notes that further tuning could potentially yield even better performance. The replay buffer size was found to be particularly sensitive for the ARO-DDPG baseline.
- Adaptive Reset Cost: The "optimal" reset cost for terminating tasks is still an open question, and the proposed adaptive method is a step towards addressing this.
- Future Extensions: The authors suggest several avenues for future work, including:
- Automated temperature adjustment for entropy.
- Incorporating other value-based techniques like TD(n), REDQ, or dueling architectures.
- Investigating more complex replay sampling strategies.
- Studying the sample complexity and convergence properties of ASAC.
- Comparing ASAC to other recent average-reward methods like RVI-SAC.
Summary updated