Span-Agnostic Optimal Sample Complexity and Oracle Inequalities for Average-Reward RL

Matthew Zurek, Yudong Chen

Abstract

In average-reward Reinforcement Learning (RL), the span of the optimal bias function ($H$) is a fundamental complexity parameter. Historically, achieving minimax optimal sample complexity required prior knowledge of $H$, which is rarely available in practice. This paper introduces two novel algorithmic frameworks—Horizon Calibration and Empirical Span Penalization—that achieve the minimax optimal rate of $\tilde{O}(SAH/\epsilon^2)$ without prior knowledge of the span. Furthermore, the authors establish the first "oracle inequalities" for this setting, demonstrating that these algorithms can adapt to the complexity of the environment and outperform worst-case bounds when near-optimal policies with smaller spans exist.

Introduction

Reinforcement Learning under the average-reward criterion is the standard framework for optimizing "ongoing" or non-terminating tasks, such as autonomous infrastructure maintenance or long-term inventory management. Unlike discounted RL, where the effective horizon is fixed by a discount factor, the difficulty of average-reward RL is governed by the span ($H$) of the optimal bias function. The span represents the maximum variation in the long-term relative values of different states; intuitively, it measures the time required for the influence of an initial state or action to dissipate into the long-term average.

Despite its importance, the span is a problem-dependent parameter that is notoriously difficult to estimate. Until recently, algorithms achieving the minimax optimal sample complexity of $O(SAH/\epsilon^2)$ required $H$ as an input. Existing span-agnostic approaches often relied on much larger, less efficient parameters like the MDP's diameter or mixing time, or failed to reach the optimal $1/\epsilon^2$ rate. This work bridges this gap by providing the first span-agnostic, minimax optimal algorithms for average-reward RL.

Algorithmic Frameworks

The authors propose two distinct strategies to overcome the lack of knowledge regarding $H$:

1. Horizon Calibration

Rather than estimating the span directly, this approach utilizes a discounted reduction. The average-reward problem is approximated by solving a sequence of discounted MDPs with varying "effective horizons" determined by the discount factor $\gamma$.

The core innovation is a "calibration" mechanism. The algorithm automatically tunes the horizon by maximizing empirical lower bounds on performance. By observing which horizon produces the most promising policy based on collected transition data, the agent can identify an appropriate complexity level without ever knowing the true value of $H$.

2. Empirical Span Penalization

Drawing inspiration from sample variance penalization in statistics, this framework incorporates a penalty term directly related to the span of the value function. This is implemented through two components:

  • Span-Constrained Planning: A specialized subroutine (Algorithm 3) uses a truncation operator during value iteration to ensure the search for an optimal policy stays within a defined span budget.
  • Penalization: By penalizing policies with high spans, the algorithm naturally favors simpler, more robust policies unless the data strongly supports a more complex, high-span optimal policy.

Theoretical Contributions and Oracle Inequalities

The primary theoretical achievement of this work is reaching the minimax optimal sample complexity of $\tilde{O}(SAH/\epsilon^2)$ in a span-agnostic manner. This is achieved through "localization" techniques from statistical learning, which allow for tighter control over the variance of near-optimal policies.

Beyond minimax optimality, the paper introduces Oracle Inequalities. Standard theoretical bounds are typically "worst-case," assuming the environment is as difficult as possible. The authors prove that their Span Penalization algorithm is adaptive: if there exists a "simple" policy (one with a small span) that is nearly as good as the optimal policy, the algorithm will find it using significantly fewer samples than the worst-case theory suggests. This allows the agent to exploit the structure of "benign" environments where the optimal policy might be complex, but a high-performing approximation is easy to learn.

Evaluation and Methodology

As a foundational theoretical work, the performance of these algorithms is established through rigorous mathematical proof and evaluated using a generative model (or simulator). This model allows the agent to sample transitions from any state-action pair $(s, a)$.

To validate the adaptivity of the oracle inequalities, the authors constructed specific "hard" MDP counter-examples (detailed in Appendix D). These constructions demonstrate that the proposed algorithms can indeed beat standard minimax lower bounds in settings where the optimal policy's span is large, but a near-optimal policy's span is small.

Discussion and Future Work

While this paper resolves a long-standing open problem in tabular RL, several avenues for future research remain:

  • Function Approximation: The current results are limited to the tabular setting. Extending span-agnostic techniques to large or continuous state spaces using linear or non-linear function approximation is a critical next step for practical applications.
  • Online Learning: The current algorithms require a generative model. Adapting these techniques to the "online" setting, where an agent must learn from a single continuous trajectory without the ability to reset to arbitrary states, remains an open challenge.
  • Computational Complexity: The proposed methods involve solving multiple MDPs or running constrained value iteration. Improving the computational efficiency of these span-agnostic subroutines would make them more viable for large-scale systems.

In conclusion, this work provides a robust theoretical foundation for average-reward RL, proving that the span $H$ does not need to be known a priori to achieve optimal learning rates, and that algorithms can naturally adapt to the inherent simplicity of a given task.

Summary updated

BibTeX
@inproceedings{zurek2025span,
  author = {Matthew Zurek and Yudong Chen},
  title = {{Span-Agnostic Optimal Sample Complexity and Oracle Inequalities for Average-Reward RL}},
  booktitle = {Conference on Learning Theory},
  year = {2025},
}
Figure