Learning Bellman Complete Representations for Offline Policy Evaluation

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

Abstract

Offline Policy Evaluation (OPE) is critical for assessing the performance of new policies using historical data, particularly in safety-critical or resource-intensive domains. While theoretical research has identified Bellman completeness and data coverage as essential conditions for sample-efficient OPE, practical methods for learning such representations from high-dimensional inputs like pixels have been lacking. This paper introduces BCRL (Bellman Complete Representation Learning), a framework that explicitly optimizes for these theoretical requirements. By combining a Bellman completeness loss with coverage regularization, BCRL enables stable and accurate linear policy evaluation on complex image-based tasks, significantly outperforming standard unsupervised representation methods.

Introduction

In deep reinforcement learning, evaluating a target policy using a fixed offline dataset—known as Offline Policy Evaluation (OPE)—often involves learning a Q-function from raw pixel inputs. However, standard deep learning approaches frequently suffer from instability and error amplification. Theoretical analysis suggests that simply being able to represent the final Q-function (realizability) is insufficient for robust learning. Instead, OPE requires two more stringent conditions:

  1. Bellman Completeness: The representation must be closed under the Bellman operator. That is, applying the Bellman operator to a linear function of the features should result in a function that is also approximately linear in those same features.
  2. Coverage: The offline dataset must sufficiently explore the feature space to prevent model collapse and ensure the representation remains valid when the target policy encounters states not frequently seen in the behavior data.

While these conditions are well-established in RL theory, they are typically treated as assumptions. BCRL bridges this gap by providing a practical method to learn representations that satisfy these properties from scratch using neural networks.

The BCRL Framework

BCRL operates in two distinct stages: representation learning followed by linear evaluation.

1. Representation Learning

The core of BCRL is a deep neural network that maps state-action pairs to a $d$-dimensional feature vector $\phi(s, a)$. This network is trained using a bilevel objective designed to satisfy the theoretical requirements of OPE:

  • Bellman Completeness Loss: The authors derive a condition for linear Bellman completeness that relates current features to expected next-step features and rewards. To handle the stochasticity inherent in environment transitions, they incorporate a "double sampling" correction using a secondary function class $G$. This prevents the biased gradients that often plague naive temporal difference objectives.
  • Coverage Regularization: To ensure the representation does not collapse into a low-dimensional manifold, BCRL employs techniques from optimal experimental design (such as E-optimal or D-optimal criteria). By maximizing the eigenvalues of the feature covariance matrix, the model is forced to maintain a diverse and exploratory feature space.

2. Linear Evaluation

Once the representation $\phi$ is fixed, the policy is evaluated using Least Square Policy Evaluation (LSPE). Because the features were explicitly optimized for Bellman completeness, a simple linear regressor trained on these features is theoretically guaranteed to be stable. This avoids the "exploding" errors often seen when using non-linear function approximators or incomplete representations in iterative OPE.

Experimental Results

The authors evaluated BCRL on high-dimensional, image-based continuous control tasks from the DeepMind Control Suite (DMControl), including Finger Turn Hard, Cheetah Run, Quadruped Walk, and Humanoid Stand. The offline datasets consisted of 100,000 samples collected from partially trained behavior policies, creating a significant distribution shift between the training data and the target policies.

Stability and Accuracy

BCRL consistently outperformed popular representation learning methods such as CURL (contrastive) and SPR (predictive). While CURL and SPR features often led to exponential error growth during LSPE iterations, BCRL remained stable. This suggests that general-purpose features, while useful for perception, do not inherently satisfy the algebraic requirements of the Bellman operator.

Robustness to Distribution Shift

In comparisons against state-of-the-art Fitted Q-Evaluation (FQE), BCRL demonstrated superior performance, particularly when evaluating policies on states outside the initial training distribution. This robustness is attributed to the coverage regularization, which ensures the geometry of the feature space remains well-conditioned even as the policy drifts.

Ablation Studies

Ablation experiments confirmed that both the Bellman completeness loss and the coverage regularization are essential. Removing either component led to a significant degradation in OPE accuracy, proving that neither accurate prediction nor diverse features are sufficient on their own.

Conclusion

BCRL represents a significant step in connecting reinforcement learning theory with practical deep learning implementation. By explicitly optimizing for Bellman completeness and coverage, the framework provides a stable foundation for OPE in high-dimensional environments. Future work includes extending this representation learning framework to Offline Policy Optimization and reducing the computational overhead associated with the bilevel optimization and Lagrangian constraints used in the current implementation.

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