Adaptive Approximate Policy Iteration

Botao Hao, Nevena Lazic, Yasin Abbasi-Yadkori, Pooria Joulani, Csaba Szepesvári

Abstract

Model-free reinforcement learning algorithms combined with value function approximation have recently achieved impressive performance in a variety of application domains. However, the theoretical understanding of such algorithms is limited, and existing results are largely focused on episodic or discounted Markov decision processes (MDPs). In this work, we present adaptive approximate policy iteration (AAPI), a learning scheme which enjoys a $O(T^{2/3})$ regret bound for undiscounted, continuing learning in uniformly ergodic MDPs. This is an improvement over the best existing bound of $O(T^{3/4})$ for the average-reward case with function approximation. Our algorithm and analysis rely on online learning techniques, where value functions are treated as losses. The main technical novelty is the use of a data-dependent adaptive learning rate coupled with a so-called optimistic prediction of upcoming losses. In addition to theoretical guarantees, we demonstrate the advantages of our approach empirically on several environments.

Introduction

While model-free reinforcement learning (RL) with function approximation has seen massive empirical success, its theoretical foundations remain sparse, particularly in infinite-horizon settings. Most existing performance guarantees focus on episodic or discounted Markov Decision Processes (MDPs). This paper addresses the infinite-horizon undiscounted setting, or average-reward MDPs, where the agent aims to maximize long-term average reward without resets. Prior to this work, the state-of-the-art regret bound for model-free RL with function approximation in this setting was $\tilde{O}(T^{3/4})$. AAPI improves this to $\tilde{O}(T^{2/3})$ by exploiting the structure of policy iteration.

Methodology: Adaptive Optimistic Policy Updates

AAPI reduces the RL problem to an online learning task within the "online MDP" framework. The agent iteratively selects policies, and the "loss" for the online learner is the estimated Q-function of the current policy. The core innovation lies in the Adaptive Optimistic Follow-The-Regularized-Leader (AO-FTRL) update rule:

  1. Optimistic Prediction: Recognizing that policies update gradually, AAPI uses the most recent Q-function as an "optimistic" guess for the next one. This prediction helps cancel out leading-order error terms in the regret analysis.
  2. Adaptive, State-Dependent Learning Rate: Instead of a global fixed learning rate, AAPI employs a data-dependent rate for each state, acting as a softmax temperature. This rate is determined by the historical variance of Q-function estimates for that specific state, allowing the agent to converge quickly in well-understood regions while remaining exploratory elsewhere.

The resulting policy is a Boltzmann distribution over the sum of past estimated Q-functions and the optimistic prediction, scaled by the adaptive temperature.

Empirical Results

The authors evaluated AAPI against baselines like POLITEX and RLSVI across several environments, focusing on how the algorithm scales with problem complexity.

Discrete and Ergodic MDPs

In tabular ergodic MDPs and the DeepSea environment, AAPI demonstrates significant performance gains. The adaptive learning rate effectively speeds up the policy iteration process, leading to faster convergence and higher average rewards compared to non-adaptive methods.

Performance of AAPI on DeepSea environments of varying sizes (N=5 to 20). AAPI (red) consistently achieves lower negative average reward (higher reward) than POLITEX and RLSVI.
Regret comparison in ergodic MDPs with varying state and action space sizes. AAPI (red) shows superior convergence properties, aligning with the theoretical $O(T^{2/3})$ bound.

Continuous Control

In the CartPole environment, AAPI's performance is comparable to baselines. The authors note that the advantages of state-level adaptability are harder to realize in continuous spaces, as estimating per-state learning rates requires approximations (such as sampling past network weights) that can dilute the algorithm's theoretical benefits.

Conclusion

AAPI provides a stronger theoretical foundation for average-reward RL with function approximation, achieving a $\tilde{O}(T^{2/3})$ regret bound. Empirically, the algorithm excels in discrete environments where its adaptive, optimistic updates can be precisely applied. Future work may focus on more efficient policy evaluation using off-policy data and developing memory-efficient "distillation networks" to handle the storage of past Q-functions in deep RL settings.

Summary updated

BibTeX
@inproceedings{hao2021adaptive,
  author = {Botao Hao and Nevena Lazic and Yasin Abbasi-Yadkori and Pooria Joulani and Csaba Szepesvári},
  title = {{Adaptive Approximate Policy Iteration}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
  url = {https://openreview.net/forum?id=foopa_Ki6E},
}
Figure