Reinforcement Learning with Function Approximation: From Linear to Nonlinear

Jihao Long, Jiequn HanarXiv 2023 · DOI

Abstract

Function approximation has become an indispensable component in modern reinforcement learning (RL) algorithms designed to tackle problems with large state spaces in high dimensions. This paper reviews recent theoretical results on error analysis for these algorithms in both linear and nonlinear approximation settings, emphasizing the interplay between approximation error and estimation error (sample complexity). We discuss the "distribution mismatch" phenomenon—the primary hurdle in RL—and present concrete conditions under which these errors can be bounded. While linear structures allow for polynomial sample complexity, nonlinear function approximation introduces significant challenges where standard exploration techniques often suffer from the curse of dimensionality. This review synthesizes these findings to provide a roadmap for the theoretical foundations of modern RL.

Introduction

In traditional "tabular" reinforcement learning, every state and action is treated as a unique entry in a discrete table. While this approach is effective for simple games like Tic-Tac-Toe, it fails in complex environments like Go or robotics, where the number of states is effectively infinite. To solve this, researchers use function approximation—such as linear models or neural networks—to predict the value of unseen states based on observed data.

The core theoretical challenge in this transition is Distribution Mismatch. In standard supervised learning, training and test data usually share the same distribution. In RL, however, the "training data" is generated by the agent's current (often suboptimal) policy, while the goal is to perform well under the optimal policy. This paper investigates how different function classes handle this shift and the resulting costs in terms of sample complexity.

The Framework of Error Decomposition

To rigorously analyze RL algorithms, the total error is typically decomposed into three primary components:

  1. Approximation Error: The inherent limitation of the chosen model (e.g., a linear model) to represent the true value function.
  2. Estimation Error: The error resulting from having a finite number of samples to calculate the model's parameters.
  3. Optimization Error: The discrepancy introduced by the training algorithm's (e.g., Gradient Descent) inability to find the absolute best parameters.

This paper analyzes these errors across three main settings: Linear MDPs, Reproducing Kernel Hilbert Spaces (RKHS), and Neural Network Spaces (specifically Barron Spaces and Neural Tangent Kernels).

Linear Models and the "Sweet Spot"

For Linear Markov Decision Processes (MDPs), where rewards and transitions are linear functions of known features, the problem is relatively well-behaved. The paper highlights that the Linear MDP assumption is both necessary and sufficient for the Bellman operator to map functions back into the same linear space (Theorem 2).

In this setting, algorithms can achieve "polynomial sample complexity." This means the amount of data required grows reasonably with the number of features ($d$) and the task length ($H$), rather than the total number of states. Specifically, episodic linear settings can achieve a regret bound of roughly $\tilde{O}(\sqrt{d^3 H^4 K})$, where $K$ is the number of episodes.

The Curse of Nonlinearity

The transition to nonlinear function approximation introduces the "Curse of Nonlinearity." A significant finding in the paper (Theorem 4) proves that for high-dimensional nonlinear spaces, standard techniques like Upper Confidence Bound (UCB) exploration—which are highly effective in linear settings—fail. They require a number of samples that grows exponentially with the dimension ($d$), making them impractical without further structural assumptions.

To address this, the authors discuss Perturbational Complexity, a concept used to quantify how much the value function changes when the data distribution shifts. To obtain meaningful results in nonlinear settings, researchers must assume either "fast eigenvalue decay" in the kernel or a "finite concentration coefficient," ensuring the training and optimal distributions are not too divergent.

Bridging the Gap: Theory vs. Practice

Despite the progress in theoretical bounds, a significant gap remains between theory and empirical success:

  • Exploration: Theory suggests that "strategic exploration" (like UCB) is necessary, yet many practical successes (like DQN) rely on "random exploration" (like $\epsilon$-greedy), which theory suggests should be exponentially slower.
  • Data Models: Many nonlinear results require a "generative model" (the ability to sample any state at will), whereas real-world RL is "episodic," requiring agents to move through states sequentially.
  • Computation: While sample complexity is being mapped out, the computational cost of finding optimal neural network policies, particularly in the "mean-field" regime, remains an open question.

Conclusion

Moving from linear to nonlinear function approximation represents a major leap in RL capability but introduces significant theoretical hurdles. While linear MDPs offer a clear path to polynomial sample complexity, nonlinear models require specific structural assumptions to overcome the distribution mismatch. Understanding these boundaries is essential for developing the next generation of robust, high-dimensional RL algorithms.

Summary updated

BibTeX
@misc{long2023reinforcement,
  author = {Jihao Long and Jiequn Han},
  title = {{Reinforcement Learning with Function Approximation: From Linear to Nonlinear}},
  year = {2023},
  eprint = {2302.09703},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.09703},
}
Figure