On the Sample Complexity of Reinforcement Learning with Policy Space Generalization

Wenlong Mou, Zheng Wen, Xi Chen · DOI

Abstract

We study the optimal sample complexity in large-scale Reinforcement Learning (RL) problems with policy space generalization, i.e. the agent has a prior knowledge that the optimal policy lies in a known policy space. Existing results show that without a generalization model, the sample complexity of an RL algorithm will inevitably depend on the cardinalities of state space and action space, which are intractably large in many practical problems. To avoid such undesirable dependence on the state and action space sizes, this paper proposes a new notion of eluder dimension for the policy space, which characterizes the intrinsic complexity of policy learning in an arbitrary Markov Decision Process (MDP). Using a simulator oracle, we prove a near-optimal sample complexity upper bound that only depends linearly on the eluder dimension. We further prove a similar regret bound in deterministic systems without the simulator.

Introduction

Standard Reinforcement Learning (RL) theory frequently encounters a fundamental bottleneck when applied to large-scale environments. Traditional theoretical bounds for sample complexity—the amount of data required to learn—and regret—the cumulative loss during the learning process—typically scale with the cardinality of the state space ($|S|$) and action space ($|A|$). In real-world domains such as high-dimensional robotics or autonomous driving, these spaces are effectively infinite, rendering traditional "tabular" RL approaches mathematically and practically intractable.

To bridge this gap, researchers employ generalization. While previous literature has extensively explored generalizing the environment's transition model or the value function, this paper investigates policy space generalization. This paradigm assumes the agent possesses prior knowledge that the optimal policy resides within a specific, restricted class $\Theta$ (e.g., neural networks or linear threshold functions). The central question is whether we can learn this policy efficiently, with complexity bounds that depend on the intrinsic structure of the policy space rather than the size of the environment.

Theoretical Framework: Measuring Policy Complexity

The authors introduce a novel framework centered on two combinatorial measures that characterize the difficulty of learning within a policy space:

  1. Eluder Dimension ($\text{dim}_E$): Adapted from the multi-armed bandit literature, this measure captures the "length of independence" within a policy space. It quantifies how many times an algorithm can be misled by a policy before it has gathered sufficient data to distinguish it from others. This serves as the primary driver for the paper's upper bounds.
  2. Littlestone Dimension ($\text{dim}_L$): A classic measure from online learning theory, used here to establish fundamental lower bounds. It helps define the minimax limits of how hard a policy space is to learn.

By shifting the focus to these dimensions, the authors demonstrate that RL efficiency is decoupled from the environment's physical dimensions and instead tied to the "simplicity" of the policy hypothesis class.

Algorithmic Approaches

The paper proposes two primary algorithms to achieve efficient policy elimination:

1. Policy Elimination with a Simulator (Stochastic MDPs)

For general stochastic environments, the authors introduce a strategy that utilizes a simulator oracle—the ability to reset the environment to any specific state. A key innovation here is stack-based exploration. The algorithm employs a Last-In-First-Out (LIFO) stack to manage dependencies between states. By pushing uncertain state-action pairs onto the stack, the agent ensures it resolves uncertainty at later stages of a trajectory before "popping" back to address earlier decisions. This mechanism effectively solves the credit assignment problem by ensuring a policy is only eliminated when its downstream consequences are certain.

2. Deterministic Policy Elimination

In deterministic systems, the authors provide a version of the algorithm that achieves low regret without requiring a simulator or a specific "gap" in reward values. This demonstrates that in structured environments, the eluder dimension remains a powerful predictor of performance even under more restrictive observational constraints.

Key Results and Insights

The theoretical analysis yields several breakthrough results:

  • Stochastic Sample Complexity: For general MDPs with a simulator, the number of samples required to find an $\epsilon$-optimal policy is $\tilde{O}(H \cdot \text{dim}_E(\Theta) \cdot (\Delta^{-2} + \epsilon^{-1}))$. Notably, this bound is linear in the eluder dimension and entirely independent of $|S|$ and $|A|$.
  • Deterministic Regret: In deterministic systems without a simulator, the algorithm achieves a regret bound of $O(H \bar{R} \cdot \text{dim}_E(\Theta))$, where $H$ is the horizon and $\bar{R}$ is the maximum reward.
  • Minimax Lower Bounds: The authors prove that regret must scale at least linearly with the Littlestone dimension, confirming that these combinatorial measures are the correct tools for analyzing policy complexity.
  • The Role of $\Delta$-Separation: In stochastic settings, the bounds rely on a "$\Delta$-separation"—a minimum gap between the optimal action and the next-best action within the policy space. This assumption is critical for making policy elimination tractable in the presence of noise.

Conclusion and Future Directions

This work provides a rigorous theoretical foundation for why RL can succeed in infinite-state environments if the policy space is well-structured. By introducing the eluder dimension for policies, the authors provide a roadmap for designing algorithms that scale.

However, several challenges remain for future research. The current stochastic bounds rely on a simulator oracle, which is not always available in online RL. Additionally, the algorithms currently require prior knowledge of the eluder dimension and the $Q$-function gap ($\Delta$). Developing adaptive algorithms that can estimate these parameters on the fly, and reducing the computational overhead of the "elimination oracle" for complex classes like deep neural networks, are essential steps toward making this theory applicable to modern deep RL practice.

Summary updated

Abstract

We study the optimal sample complexity in large-scale Reinforcement Learning (RL) problems with policy space generalization, i.e. the agent has a prior knowledge that the optimal policy lies in a known policy space. Existing results show that without a generalization model, the sample complexity of an RL algorithm will inevitably depend on the cardinalities of state space and action space, which are intractably large in many practical problems. To avoid such undesirable dependence on the state and action space sizes, this paper proposes a new notion of eluder dimension for the policy space, which characterizes the intrinsic complexity of policy learning in an arbitrary Markov Decision Process (MDP). Using a simulator oracle, we prove a near-optimal sample complexity upper bound that only depends linearly on the eluder dimension. We further prove a similar regret bound in deterministic systems without the simulator.
BibTeX
@misc{mou2020sample,
  author = {Wenlong Mou and Zheng Wen and Xi Chen},
  title = {{On the Sample Complexity of Reinforcement Learning with Policy Space Generalization}},
  year = {2020},
  eprint = {2008.07353},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.07353},
}
Figure