Provably Efficient Reinforcement Learning with Aggregated States

Shi Dong, Benjamin Van Roy, Zhengyuan ZhouarXiv 2019

Introduction

In reinforcement learning (RL), the "curse of dimensionality" remains a primary obstacle to deploying agents in real-world environments. While tabular methods provide strong mathematical guarantees, they scale with the number of state-action pairs, making them impractical for systems with millions or billions of states. To bridge the gap between theory and practice, researchers often employ state aggregation—grouping similar states into a smaller, manageable set of "aggregate states."

However, state aggregation introduces approximation error (denoted as $\epsilon$). Historically, theoretical guarantees for these methods have been problematic: they either required restrictive assumptions, such as deterministic dynamics, or resulted in performance bounds where the approximation error was magnified by the time horizon ($H$), leading to a total loss of $O(\epsilon H)$. This paper introduces AQ-UCB (Aggregated Q-learning with Upper Confidence Bounds), an algorithm that achieves a regret bound independent of the total state space size and ensures that performance loss scales linearly with $\epsilon$ rather than the product $\epsilon H$.

The AQ-UCB Algorithm

AQ-UCB is an optimistic Q-learning variant designed for fixed-horizon episodic Markov Decision Processes (MDPs). The algorithm operates by mapping the massive state-action space to a set of $M$ aggregate states using a mapping function $\phi$.

Key Components

  1. Optimistic Boosting: To ensure sufficient exploration of the aggregate state space, the algorithm adds an exploration bonus (an "optimistic boost") of $\beta / \sqrt{n}$ to Q-value updates. This encourages the agent to visit aggregate states that have not been frequently explored.
  2. Strategic Learning Rates: A critical innovation in AQ-UCB is the use of a specific step size sequence: $\alpha_t = (H+1)/(H+t)$. This choice of learning rate, adapted from recent advances in tabular RL, is essential for preventing approximation errors from compounding exponentially over the time horizon.
  3. Value Capping: To maintain stability and prevent over-optimism from derailing the learning process, estimated Q-values are strictly capped at the maximum possible reward ($H$).

Theoretical Insights and Results

The primary contribution of this work is the rigorous proof that reinforcement learning can be efficient even in massive state spaces, provided a reasonable aggregation exists.

Breaking the Dependence on $|S|$

The authors establish that the regret—the difference between the agent's performance and the optimal strategy—depends on the number of aggregate states ($M$) rather than the cardinality of the original state space ($|S|$). This makes the algorithm theoretically viable for near-infinite state spaces.

Improved Error Scaling

Most approximate RL methods suffer a performance penalty of $O(\epsilon H)$ per period. AQ-UCB improves this to $O(\epsilon)$ per period. In long-horizon tasks where $H$ is large, this reduction represents a significant leap in the quality of the final learned policy. Notably, this analysis holds for any transition probability distribution, requiring only that the aggregation is "$\epsilon$-error" (meaning it groups states with similar optimal values).

Regret and Complexity

The paper establishes a worst-case regret bound of: $$\tilde{O}(\sqrt{H^5MK} + \epsilon HK)$$ Where:

  • $H$ is the horizon
  • $M$ is the number of aggregate states
  • $K$ is the number of episodes
  • $\epsilon$ is the approximation error

To complement this, the authors provide a lower bound of $\Omega(\sqrt{H^3MK})$, demonstrating that the algorithm's dependence on $M$ and $K$ is near-optimal. From a computational standpoint, AQ-UCB is highly efficient, with a time complexity of $O(HMK + HAK)$ and a space complexity of $O(HM)$.

Discussion and Future Work

While AQ-UCB provides a robust framework for aggregated RL, it assumes the state aggregation mapping ($\phi$) is provided a priori. It does not solve the "representation learning" problem—the challenge of discovering or constructing an optimal aggregation from raw environmental data.

Additionally, while the $H^5$ factor in the regret bound is a standard starting point for Q-learning analysis, recent tabular methods have achieved $H^4$ or better. This suggests potential for further refining the mathematical bounds for the aggregated case. Future research may also explore adaptive aggregation, where the agent dynamically refines its state groupings as it gathers more information about the environment's dynamics.

Summary updated

BibTeX
@misc{dong2019provably,
  author = {Shi Dong and Benjamin Van Roy and Zhengyuan Zhou},
  title = {{Provably Efficient Reinforcement Learning with Aggregated States}},
  year = {2019},
  eprint = {1912.06366},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.06366},
}
Figure