Introduction
For years, a strange theoretical gap existed in reinforcement learning (RL): model-free algorithms appeared to explore more efficiently than model-based ones. In RL, an agent must balance exploring an unknown environment with exploiting its current knowledge to maximize rewards. A key metric for this efficiency is sample complexity (or exploration complexity)—the maximum number of non-optimal steps an agent takes before learning a near-optimal policy.
Intuitively, model-based agents, which build an internal map of the environment's dynamics, should propagate information more efficiently than model-free agents that only learn action values. However, prior mathematical bounds did not reflect this. For a finite Markov Decision Process (MDP) with $N$ states, the best model-free bounds scaled linearly ($O(N \log N)$), while model-based bounds scaled quadratically ($O(N^2 \log N)$). Researchers speculated this quadratic penalty was inherent because a model must track $N^2$ possible state transitions. This paper debunks that assumption, introducing Mormax—a modified version of the classic Rmax algorithm—to prove that model-based methods can achieve nearly tight $O(N \log N)$ exploration complexity bounds.
The Mormax Algorithm
Mormax builds upon Rmax, an algorithm that encourages exploration by maintaining an "optimistic" model, assuming all unknown states yield maximum rewards. To achieve tighter theoretical bounds, Mormax introduces three critical refinements:
- Batch Sampling: Rather than updating the model after every single interaction, Mormax collects a specific batch size ($m$) of samples for a given state-action pair before considering an update.
- Significant Update Rule: The algorithm avoids recalculating its policy for every new piece of data. It only triggers an update if the new batch suggests a significant change in the estimated value of a state, preventing the agent from jittering between policies due to minor statistical noise.
- Freshness Requirement: When a new batch of samples is collected, Mormax discards the old samples for that specific state-action pair. While seemingly counterintuitive for practical performance, this step is a technical necessity for the proof, ensuring that the samples used for the new estimate are statistically independent of the current value function.
Theoretical Framework and Insights
As a theoretical paper focused on finite MDPs, the study relies on mathematical proofs rather than empirical benchmarks. The authors overcome several historical hurdles in RL theory to close the sample complexity gap:
- Debunking the "Quadratic Myth": The authors demonstrate that the $N^2$ scaling in previous model-based results was a limitation of prior proofs, not the algorithms themselves. By utilizing a refined "Fundamental Approximation Lemma," they show that an agent does not need to estimate every transition perfectly; it only needs the aggregate effect on the value function to be accurate.
- Handling Random Value Functions: A major challenge in RL proofs is that the agent's value function changes as it learns, complicating the use of standard concentration inequalities (like Hoeffding's). The authors developed a version of the approximation lemma that accommodates random value functions, provided they are predictable based on past history.
- Preserving Information Propagation: Mormax successfully maintains the core advantage of model-based RL—where one piece of new information can immediately update the values of distant states—while keeping exploration costs strictly bounded.
Key Results
Mormax achieves a sample complexity bound of $\tilde{O}\left(\frac{N K V_{max}^2}{(1-\gamma)^4 \epsilon^2}\right)$. Crucially, the dependence on the number of states ($N$) is now linear (up to logarithmic factors). This matches the best-known model-free bounds as well as the theoretical lower bound for the problem.
Beyond linear state scaling, this new bound offers improved dependence on the value upper bound ($V_{max}$) and the required precision ($\epsilon$) compared to previous state-of-the-art model-free algorithms like Delayed Q-learning. Ultimately, the paper proves that model-based RL is just as PAC-MDP (Probably Approximately Correct in MDPs) efficient as model-free RL, removing a long-standing theoretical blemish on model-based approaches.
Limitations and Future Directions
While a significant theoretical breakthrough, the Mormax framework has limitations that invite future research:
- Data Inefficiency: To satisfy the independence requirements of the proof, Mormax discards old samples when a new batch is collected. From an engineering standpoint, throwing away data is suboptimal. Future work could aim to prove these tight bounds while retaining all historical data.
- Worst-Case Conservatism: Like most PAC-MDP bounds, the constants and exponents derived are worst-case guarantees. In practice, RL agents typically learn much faster than these theoretical limits suggest.
- Tabular Limitation: The proof applies strictly to tabular RL, where states and actions are discrete and finite. Extending these tight exploration bounds to deep RL or environments with continuous state spaces remains a major open challenge.
Summary updated