Learning Bellman Complete Representations for Offline Policy Evaluation

Jonathan D. Chang, Kaiwen Wang, Nathan Kallus, Wen Sun

Overview

Evaluating new policies without interacting with the environment is a critical challenge in Offline Reinforcement Learning (RL). This paper introduces BCRL (Bellman Complete and exploratory Representation Learning), a novel method for learning state-action representations specifically designed for Offline Policy Evaluation (OPE). By explicitly optimizing for "Bellman completeness" and "coverage," BCRL provides a stable, theoretically grounded way to evaluate new policies using only logged data, outperforming popular contrastive learning methods that often fail in RL settings.

The Challenge of Offline Policy Evaluation

In Offline RL, the goal is to learn or evaluate policies using a fixed dataset. A core subtask is Offline Policy Evaluation (OPE): estimating how well a new "target" policy will perform based entirely on data collected by a different "behavior" policy.

The primary challenge lies in representation learning. In supervised learning, it is often enough to care about "realizability"—whether a model is powerful enough to fit the target. However, because RL involves a sequence of decisions, small errors in the value function (the Q-function) can be amplified over time through the Bellman operator, leading to exponentially exploding errors.

Theoretical work has identified two crucial properties for stable OPE:

  1. Bellman Completeness: If the Bellman operator is applied to a function in the hypothesis class, the result must stay within that class.
  2. Coverage: The offline dataset must sufficiently explore the state-action space that the target policy will visit.

While previous research often simply assumed these properties existed, this paper investigates whether we can actually learn a representation that satisfies these conditions directly from raw data.

The BCRL Approach

The authors propose BCRL, which uses a bilevel optimization objective to learn a representation $\phi(s, a)$ from high-dimensional inputs (like images).

  • Linear Bellman Completeness: BCRL forces the representation to be "linearly Bellman complete." This ensures that the expected next-step features and rewards can be predicted as a linear transformation of the current features. If this holds, simple and stable linear regression—specifically, Least Squares Policy Evaluation (LSPE)—can be used to find the value function.
  • Exploratory Coverage: To ensure the representation is well-conditioned and covers the necessary space, BCRL incorporates "optimal design" principles. It adds a regularization term that maximizes the minimum eigenvalue or the log-determinant of the feature covariance matrix.
  • Double Sampling Fix: To handle stochastic environments where only one sample of the "next state" is available, the method uses a modified Bellman residual objective that avoids classic "double sampling" bias.

Once the representation is learned, OPE is performed by running linear LSPE on top of these features.

Datasets and Environments

The authors evaluated BCRL on several challenging, image-based continuous control tasks from the DeepMind Control Suite, including Finger Turn Hard, Cheetah Run, Quadruped Walk, and Humanoid Stand.

Representative frames from the DeepMind Control Suite tasks used in the study.

These tasks are notoriously difficult because they require processing raw pixels to understand complex physics and long-term coordination.

Key Findings

Stability over Contrast

Popular representation learning methods like CURL (contrastive) and SPR (predictive) are designed for supervised-like tasks. The authors found that when used for OPE, these methods often suffer from exponential error growth. BCRL remains stable because it explicitly optimizes for the Bellman structure.

Accuracy and Ranking

BCRL achieved highly competitive root mean squared error (RMSE) compared to Fitted Q-Evaluation (FQE), the current state-of-the-art. Crucially, BCRL excelled at ranking policies—correctly identifying which of several policies is best—which is the most important metric for downstream policy optimization.

Comparison of OPE error (RMSE) across tasks. BCRL is highly competitive with FQE and outperforms other benchmarks.

Out-of-Distribution Robustness

BCRL significantly outperformed FQE when evaluating policies beyond the initial state distribution of the offline dataset. This demonstrates that its learned representations capture more fundamental, generalizable environment dynamics.

Limitations and Future Work

  • Richness Assumption: The theoretical guarantees rely on the assumption that the chosen neural network architecture is "rich enough" to contain a Bellman complete representation. If the architecture is too small, the method may fail.
  • Computational Cost: The bilevel optimization and eigenvalue calculations required for coverage can be more computationally intensive than simple contrastive losses.
  • Beyond Evaluation: While this paper focuses on evaluating a fixed policy, the natural next step is to integrate BCRL into a full Offline Policy Optimization loop to learn new, expert-level behaviors from scratch.

Summary updated

BibTeX
@inproceedings{chang2022learning,
  author = {Jonathan D. Chang and Kaiwen Wang and Nathan Kallus and Wen Sun},
  title = {{Learning Bellman Complete Representations for Offline Policy Evaluation}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=El-Zw16ANUJ},
}
Figure