Offline RL via Feature-Occupancy Gradient Ascent

Gergely Neu, Nneka Okolo

Abstract

We study offline Reinforcement Learning in large infinite-horizon discounted Markov Decision Processes (MDPs) when the reward and transition models are linearly realizable under a known feature map. Starting from the classic linear-program formulation of the optimal control problem in MDPs, we develop a new algorithm that performs a form of gradient ascent in the space of feature occupancies, defined as the expected feature vectors that can potentially be generated by executing policies in the environment. We show that the resulting simple algorithm satisfies strong computational and sample complexity guarantees, achieved under the least restrictive data coverage assumptions known in the literature. In particular, we show that the sample complexity of our method scales optimally with the desired accuracy level and depends on a weak notion of coverage that only requires the empirical feature covariance matrix to cover a single direction in the feature space (as opposed to covering a full subspace). Additionally, our method can be implemented efficiently without requiring any computational oracles, and requires no prior knowledge of the coverage ratio (or even an upper bound on it), which altogether make it the strongest known algorithm for this setting to date.

1. Introduction

In Offline Reinforcement Learning (RL), the goal is to derive an optimal policy from a fixed dataset of historical interactions without further environment exploration. This paradigm is essential for applications where real-time exploration is costly or dangerous, such as healthcare or autonomous driving. However, the success of offline RL is fundamentally limited by the "coverage" of the provided dataset. If the dataset lacks information about high-reward regions of the state-action space, the learner cannot reliably identify the optimal policy.

Existing literature often relies on strong assumptions, such as uniform coverage (the dataset covers all possible state-action pairs) or partial coverage (the dataset covers the trajectories of the optimal policy). Even under partial coverage, many algorithms require prior knowledge of the "coverage ratio"—a value that is typically unknown in practice. This paper, presented at AISTATS 2025, introduces FOGAS (Feature-Occupancy Gradient AScent), a novel algorithm for linear MDPs that circumvents these limitations.

2. The FOGAS Framework

FOGAS is built upon the classic Linear Programming (LP) formulation of Markov Decision Processes. In large-scale environments, direct LP solving is intractable. FOGAS addresses this by focusing on Linear MDPs, where transitions and rewards are linear functions of a known feature map $\phi(s, a)$.

2.1 Feature-Occupancy Parametrization

Instead of optimizing the policy directly, FOGAS operates in the space of "feature occupancies." A feature occupancy vector represents the discounted expected feature vectors encountered by a policy. By optimizing in this space, the algorithm can leverage the linear structure of the environment more effectively.

2.2 The Dualization and Stabilization Tricks

To handle the constraints of the LP formulation, the authors employ a "dualization trick," transforming a complex saddle-point problem into a simpler unconstrained primal optimization. A critical component of FOGAS is the Stabilization Trick, adapted from online learning. The algorithm incorporates a penalty term based on the empirical feature covariance matrix $\Lambda_n$.

This term penalizes occupancy vectors that point in directions poorly represented in the dataset. This allows FOGAS to remain stable and converge even when the data is "thin," and crucially, it enables the algorithm to adapt to the dataset's coverage without needing a pre-defined coverage bound.

2.3 Estimation via LSTD

The algorithm uses a least-squares estimator, similar to Least-Squares Temporal Difference (LSTD) learning, to approximate the environment's transition structure from the offline data. This model-based approach is then integrated into the gradient ascent updates, allowing for efficient closed-form updates.

3. Theoretical Guarantees

The primary contribution of this work is the establishment of state-of-the-art sample complexity guarantees under minimal assumptions.

3.1 Single-Direction Coverage

Most existing methods require the dataset to cover the entire subspace of features relevant to the optimal policy. FOGAS relaxes this to single-direction coverage: the empirical feature covariance matrix only needs to cover the specific direction in the feature space utilized by the optimal policy. This is the weakest known data-coverage assumption in the literature.

3.2 Sample and Computational Complexity

The authors prove that FOGAS finds an $\epsilon$-optimal policy with a sample complexity that scales with $O(\epsilon^{-2})$. This result is significant for two reasons:

  1. Optimality: It is the first result in this setting to scale optimally with the accuracy level.
  2. Parameter-Free: The algorithm achieves this without knowing the coverage ratio beforehand, making it highly practical.

Computationally, each iteration of FOGAS scales linearly with the number of samples $n$. The total runtime complexity is $O(n^2)$, which is standard for model-based estimators in linear MDPs, and it avoids the need for expensive computational oracles.

4. Discussion and Future Directions

While FOGAS represents a significant step forward, several challenges remain. The $O(n^2)$ runtime might still be high for truly massive datasets, suggesting a need for further optimization. Furthermore, the results rely on the environment being a "Linear MDP." While common in theory, real-world systems are often non-linear. Extending these occupancy-based methods to non-linear function approximation (like neural networks) remains a major open challenge.

Finally, while the algorithm doesn't need the coverage ratio, it still has learning rate parameters that depend on the time horizon and feature dimensions. Practical heuristics for tuning these in strictly offline settings are still needed.

5. Conclusion

FOGAS provides a robust and theoretically sound approach to offline RL in linear MDPs. By combining feature-occupancy optimization with a novel stabilization technique, it achieves optimal sample complexity under the weakest known coverage requirements, all while remaining computationally efficient and parameter-free regarding data coverage.

Summary updated

BibTeX
@inproceedings{neu2025offline,
  author = {Gergely Neu and Nneka Okolo},
  title = {{Offline RL via Feature-Occupancy Gradient Ascent}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=Hbwh76xE8S},
}
Figure