Misspecified $Q$-Learning with Sparse Linear Function Approximation: Tight Bounds on Approximation Error

Ally Yalei Du, Lin Yang, Ruosong Wang

TL;DR

This paper explores reinforcement learning (RL) when the optimal $Q$-function is "mostly" linear but has a small misspecification error ($\epsilon$) and a sparse structure. The authors prove that while standard methods fail, a novel elimination-based algorithm can achieve an $O(H\epsilon)$-optimal policy with polynomial sample complexity—a result they show is information-theoretically tight.

Introduction and Motivation

In real-world RL, we rarely have a perfect model of the environment. We often use function approximation (like linear models or neural networks) to estimate the value of state-action pairs ($Q$-functions). However, these models are usually misspecified: the true optimal function doesn't perfectly fit our chosen class, leaving an approximation error $\epsilon$.

In simple linear bandits, even a tiny $\epsilon$ can lead to an "exponential explosion," where you need a number of samples exponential in the feature dimension $d$ to find a good policy. Recent work showed that sparsity (where only $k$ out of $d$ features actually matter) can break this barrier for bandits. This paper asks a fundamental question: Does this "sparsity miracle" carry over to Reinforcement Learning?

The primary challenge in RL is the "horizon" ($H$). Errors at one step tend to compound as the agent looks further into the future, often leading to suboptimality that grows exponentially with the planning horizon.

Methodology

The authors introduce a novel Elimination Algorithm for Finding the Optimal Hypotheses. Key technical components of their approach include:

  • Sparse Linear Assumption: They assume there exists a $k$-sparse parameter vector that approximates the optimal $Q$-function within error $\epsilon$ at every level of the Markov Decision Process (MDP).
  • Optimistic Value Function Elimination: Similar to the well-known OLIVE algorithm, this approach maintains a set of candidate functions. In each iteration, it picks the most "optimistic" one (the one predicting the highest reward) and tests it.
  • Level-by-Level Independence: Unlike previous algorithms where parameters across different time steps are interdependent, this algorithm maintains a separate set of candidate parameters for each level $h$.
  • Empirical Bellman Error Pruning: The algorithm collects trajectories and calculates the "Bellman error"—a measure of how consistent the value estimates are between consecutive time steps. If a parameter's error is too high, it is eliminated from the candidate set.

Theoretical MDP Constructions

As a theoretical paper, it does not use standard empirical datasets like ImageNet or Atari. Instead, the authors use mathematical MDP constructions to prove their bounds:

Binary tree MDP construction used for lower bounds
  • Binary Tree Instances: Used to prove lower bounds. These are structured environments where an agent must make a sequence of correct choices to receive a reward, making it easy to show where algorithms fail and errors compound.
  • Hardness Instances: Specifically designed MDPs that satisfy the sparse linear assumption but force any algorithm to either take an exponential number of samples or suffer $O(H\epsilon)$ error.

Key Insights and Ideas

  • The "Factor of 2" Barrier: The authors prove that in bandits, it is information-theoretically impossible to find a parameter that approximates all arms within $\epsilon$ without taking samples proportional to the number of arms. You are essentially forced to accept a $2\epsilon$ error, which in RL, would compound into an exponential error over $H$ steps.
  • Bellman Rank is Not Enough: They show that even simple sparse linear MDPs can have a high "Bellman rank". This means existing general-purpose RL algorithms (like OLIVE) provide very poor guarantees for this specific problem.
  • Tightness of $H\epsilon$: The most significant insight is that $O(H\epsilon)$ is the best possible result. Even if you are given a near-perfect $Q$-function for free, simply acting greedily results in $O(H\epsilon)$ suboptimality. They prove this is the fundamental limit for RL with misspecification.

Main Results

  • Upper Bound: The proposed algorithm achieves a suboptimality of roughly $O(H\epsilon)$. Crucially, the number of samples required is polynomial in the dimension $d$ and horizon $H$, provided the sparsity $k$ is a small constant.
  • Lower Bound: They prove a matching lower bound of $\Omega(H\epsilon)$. This completes the picture, showing that their algorithm is near-optimal and that the $H$ factor is unavoidable in the RL setting.
  • Sample Complexity: The sample complexity is $O(d^k)$, which is efficient when $k$ is small, contrasting sharply with the $O(\exp(d))$ requirements of non-sparse misspecified models.

Limitations and Future Work

  • Dependence on Sparsity $k$: While the complexity is polynomial in $d$, it is still exponential in the sparsity $k$ ($d^k$). If the true model isn't very sparse, the algorithm becomes impractical.
  • Known Sparsity: The main algorithm assumes $k$ is known, though the authors suggest a "guess and check" method to adapt to unknown $k$.
  • Horizon Dependence: While $O(H\epsilon)$ is tight, the authors suggest future work could look at reducing the dependence on $H$ in the sample complexity itself or exploring "horizon-free" settings.
  • Stochasticity: Much of the hard-instance analysis focuses on deterministic transitions; extending the tightest possible bounds to complex stochastic environments remains an open path.

Summary updated

BibTeX
@inproceedings{du2025misspecified,
  author = {Ally Yalei Du and Lin Yang and Ruosong Wang},
  title = {{Misspecified $Q$-Learning with Sparse Linear Function Approximation: Tight Bounds on Approximation Error}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=nIEjY4a2Lf},
}
Figure