Reward-Free Model-Based Reinforcement Learning with Linear Function Approximation

Weitong Zhang, Dongruo Zhou, Quanquan Gu

Overview

In traditional Reinforcement Learning (RL), an agent learns by trial and error to maximize a specific, predefined reward signal. However, in real-world applications, defining the "perfect" reward function is notoriously difficult and often requires tedious manual tuning. Furthermore, if the reward function changes, the entire training process typically must be restarted from scratch.

This paper introduces the first provably efficient model-based algorithms for "reward-free" reinforcement learning using linear function approximation. By decoupling exploration from planning, the proposed algorithms can learn a near-optimal policy for any reward function after a single exploration phase, achieving a sample complexity that nearly matches theoretical lower bounds.

The Challenge of Reward Design and Exploration

Reward-Free Exploration (RFE) solves the reward-tuning dilemma by splitting the RL task into two distinct stages:

  1. Exploration Phase: The agent explores the environment without any reward signal. Its sole objective is to gather as much information as possible about the environment's transition dynamics.
  2. Planning Phase: A designer provides a specific reward function. The agent then uses its previously collected data to compute the best policy immediately, without requiring any further interaction with the environment.

While RFE has been successfully studied for "tabular" Markov Decision Processes (MDPs)—where states and actions are few enough to fit in a simple table—it struggles in complex environments with infinite or high-dimensional state spaces. This paper tackles the challenge of RFE in the Linear Function Approximation setting. Specifically, it focuses on Linear Mixture MDPs, where the environment's transition dynamics are modeled as a linear combination of known features.

Proposed Algorithms: UCRL-RFE and UCRL-RFE+

The authors propose two main algorithms based on the "Upper Confidence Bound for Reinforcement Learning" (UCRL) framework:

  • UCRL-RFE (Hoeffding Bonus): This algorithm uses a standard exploration bonus based on Hoeffding’s inequality. Because there is no external reward during the exploration phase, the agent creates its own "exploration-driven reward" based on the uncertainty of its transition model. It introduces pseudo value functions to help the agent navigate toward the most "unknown" parts of the state space.
  • UCRL-RFE+ (Bernstein Bonus): To improve sample efficiency, the authors develop a more sophisticated variant using a Bernstein-type bonus. This version estimates the variance of the transitions. By recognizing that some transitions are naturally noisier than others, the agent can allocate its exploration budget much more effectively.

Crucially, the algorithms rely on the Linear Mixture MDP Assumption. Unlike standard "Linear MDPs" (which assume the reward is also linear), Linear Mixture MDPs only assume the transition kernel is linear. This distinction is vital because it allows the planning phase to handle arbitrary reward functions, not just linear ones.

Core Theoretical Insights

  • Reward Agnosticism: By modeling the dynamics (the transition kernel) rather than the value, the agent becomes truly reward-agnostic. Once the agent understands how the environment moves, it can solve for any goal.
  • Pseudo Value Functions: In the absence of real rewards, the agent needs a proxy for "progress." Maximizing the uncertainty of the transition model acts as a mathematically sound surrogate for discovery.
  • The Power of Variance: Moving from Hoeffding to Bernstein bonuses improves the sample complexity by a factor of $\min\{H, d\}$. This proves that understanding the "noise" in the environment is just as important as understanding the "signal."

Sample Complexity Results

The paper's primary contributions are rigorous "Sample Complexity" bounds, which dictate how many episodes ($K$) the agent needs to explore to guarantee an $\epsilon$-optimal policy.

Comparison of sample complexities for reward-free exploration algorithms.

As shown in the comparison table above, the algorithms are "provably efficient," meaning the number of samples required grows polynomially—not exponentially—with the complexity of the environment:

  • UCRL-RFE: Requires $\tilde{O}(H^5d^2\epsilon^{-2})$ episodes.
  • UCRL-RFE+: Improves this requirement to $\tilde{O}(H^4d(H+d)\epsilon^{-2})$ episodes.
  • Lower Bound: By constructing a mathematically "hard-to-learn" class of Linear Mixture MDPs, the authors prove that any reward-free algorithm requires at least $\Omega(H^2d\epsilon^{-2})$ episodes.

The upper bound for UCRL-RFE+ successfully matches the established lower bound in terms of accuracy ($\epsilon$) and feature dimension ($d$) when the horizon $H$ is large.

Limitations and Open Questions

While the theoretical results are strong, the paper notes several areas for future work:

  • Computational Complexity: While the algorithms are sample efficient, solving the optimization problem to find the most "uncertain" state-action pair is computationally hard in the general case. A truly scalable solution for continuous spaces remains an open challenge.
  • The "H" Gap: There is still a gap between the upper and lower bounds regarding the episode length $H$ (a factor of $H^2$). Closing this gap is a promising direction for future theoretical research.
  • Feature Selection: The method assumes the feature mapping $\phi$ is given. In practice, learning these features alongside the transition model is a significantly harder problem.

Summary updated

BibTeX
@inproceedings{zhang2021reward,
  author = {Weitong ZHANG and Dongruo Zhou and Quanquan Gu},
  title = {{Reward-Free Model-Based Reinforcement Learning with Linear Function Approximation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=YsGQImFVkoN},
}
Figure