Provably efficient reinforcement learning with linear function approximation

Chi Jin, Zhuoran Yang, Zhaoran Wang, Michael I. Jordan

Abstract

Modern Reinforcement Learning (RL) is commonly applied to practical problems with an enormous number of states, where function approximation must be deployed to approximate either the value function or the policy. The introduction of function approximation raises a fundamental set of challenges involving computational and statistical efficiency, especially given the need to manage the exploration/exploitation tradeoff. As a result, a core RL question remains open: how can we design provably efficient RL algorithms that incorporate function approximation? This question persists even in a basic setting with linear dynamics and linear rewards, for which only linear function approximation is needed. This paper presents the first provable RL algorithm with both polynomial runtime and polynomial sample complexity in this linear setting, without requiring a “simulator” or additional assumptions. Concretely, we prove that an optimistic modification of Least-Squares Value Iteration (LSVI)—a classical algorithm frequently studied in the linear setting—achieves $\tilde{\mathcal{O}}(\sqrt{d^3H^3T})$ regret, where $d$ is the ambient dimension of feature space, $H$ is the length of each episode, and $T$ is the total number of steps. Importantly, such regret is independent of the number of states and actions.

Introduction

In traditional "tabular" Reinforcement Learning, agents maintain a discrete table of values for every possible state and action. While this approach is theoretically sound for simple games like Tic-Tac-Toe, it fails in real-world applications such as robotics, autonomous driving, or Go, where the state space is either astronomical or infinite. To navigate these complex environments, practitioners utilize function approximation, employing models like neural networks to generalize values across similar states.

Despite the empirical success of deep RL, a significant gap has persisted between practice and theory. Most existing provably efficient algorithms were restricted to tabular settings, required a "simulator" (a generative model allowing the agent to teleport to any state), or assumed strictly deterministic environments. This paper bridges that gap by introducing the first RL algorithm that is both computationally and statistically efficient in environments with linear structure, operating in a standard online interaction model.

The Linear MDP Framework

The authors focus on the Linear Markov Decision Process (Linear MDP). In this setting, it is assumed that both the transition dynamics and the reward functions are linear functions of a given $d$-dimensional feature mapping $\phi(s, a)$. Specifically, for any state-action pair $(s, a)$, the transition probability to a next state $s'$ and the expected reward can be represented as linear combinations of the features. This assumption allows the optimal value function to be represented as a linear function of the features, providing a structured way to generalize from seen to unseen states.

Methodology: LSVI-UCB

The proposed algorithm, Optimistic Least-Squares Value Iteration (LSVI-UCB), builds upon the classical LSVI algorithm by incorporating the principle of Optimism in the Face of Uncertainty.

Standard LSVI often fails in online settings because it does not inherently encourage exploration; it simply exploits the current best estimate of the value function. LSVI-UCB addresses this by adding an exploration bonus—an Upper Confidence Bound (UCB)—to the estimated value function.

At each step of an episode, the algorithm performs the following:

  1. Least-Squares Estimation: It uses ridge regression to estimate the parameters of the action-value function ($Q$-function) based on collected transitions.
  2. Optimistic Bonus: It adds a bonus term proportional to the uncertainty of the linear regression estimate: $\beta \sqrt{\phi(s, a)^T \Lambda^{-1} \phi(s, a)}$, where $\Lambda$ is the covariance matrix of the features.
  3. Greedy Policy: The agent then acts greedily with respect to this "optimistic" $Q$-function, ensuring that it either collects high rewards or visits areas of the feature space where uncertainty is high, thereby refining its model.

Key Results and Theoretical Impact

The primary contribution of this work is the rigorous proof of the algorithm's efficiency.

1. Regret Bound

The authors prove that LSVI-UCB achieves a regret bound of $\tilde{O}(\sqrt{d^3 H^3 T})$. Here, $d$ is the feature dimension, $H$ is the episode length, and $T$ is the total number of steps. The most critical aspect of this result is that the regret is independent of the number of states ($S$) and actions ($A$). This effectively overcomes the "curse of dimensionality" for the class of Linear MDPs.

2. Computational Efficiency

Unlike previous theoretical approaches that might require solving complex optimization problems, LSVI-UCB is truly efficient. Its runtime scales as $O(d^2 AKT)$ and its memory requirements scale as $O(d^2 H + dAT)$. This makes the algorithm practically implementable for high-dimensional feature spaces.

3. Eliminating the Simulator

Prior to this work, achieving polynomial regret in large state spaces often required a "generative model" or simulator. This paper demonstrates that optimism alone is sufficient for efficient exploration in linear settings, even when the agent must interact with the environment in a strictly sequential, online fashion.

Discussion and Future Directions

While this work represents a landmark in RL theory, it also highlights several avenues for future research:

  • Beyond Linearity: The "Linear MDP" assumption is strong. While it covers many interesting cases, real-world dynamics are often non-linear. Extending these provable guarantees to non-linear function approximations, such as neural networks (e.g., Neural Tangent Kernels), is a major ongoing challenge.
  • Feature Discovery: The algorithm assumes that high-quality features $\phi$ are provided. In practice, learning these features from raw data (representation learning) is as important as the RL algorithm itself.
  • Tightening Bounds: There remains a theoretical gap between the $d^3$ factor in this regret bound and the lower bounds found in simpler linear bandit problems. Future work may find ways to further improve the sample efficiency of the algorithm.

In conclusion, this paper provides the first theoretical foundation for efficient reinforcement learning with function approximation in large state spaces, proving that with the right optimistic bonus, agents can learn to navigate complex environments without needing to visit every possible state.

Summary updated

BibTeX
@inproceedings{jin2020provably,
  author = {Chi Jin and Zhuoran Yang and Zhaoran Wang and Michael I. Jordan},
  title = {{Provably efficient reinforcement learning with linear function approximation}},
  booktitle = {Conference on Learning Theory},
  year = {2020},
  url = {https://openreview.net/forum?id=Zbo5fBb076ih},
}
Figure