Model-Based Offline Reinforcement Learning with Local Misspecification

Kefan Dong, Yannis Flet-Berliac, Allen Nie, Emma Brunskill

Introduction

Offline reinforcement learning (RL) seeks to derive optimal policies from static, historical datasets, eliminating the need for costly or risky real-time environment interaction. The primary hurdle in this domain is distribution mismatch: the learned policy may attempt to visit state-action pairs that are underrepresented or entirely absent from the training data.

Traditionally, researchers have approached this via model-free methods, which minimize assumptions but often lack data efficiency, or model-based methods, which assume realizability—the premise that the true environment dynamics are contained within the algorithm's model class. However, in practice, models are almost always misspecified.

The Problem: Global vs. Local Misspecification

When a model is misspecified, a "global fit" approach—trying to find one model that explains the entire dataset—often leads to failure. The model is forced to compromise accuracy across the whole state space, potentially failing in the specific regions critical for optimal policy performance. This paper argues that decoupling model learning from policy optimization is inherently suboptimal in misspecified settings.

Methods: Joint Optimization and Local Accuracy

The authors introduce MBLB (Model-Based Lower Bound), a framework that jointly optimizes the dynamics model $T$ and the policy $\pi$ to maximize a pessimistic performance lower bound.

Key Innovations

  • Local Misspecification: Instead of requiring a globally perfect model, MBLB only requires the model to be accurate for the state-action pairs visited by the current policy.
  • Truncated Density Ratios: To manage distribution mismatch, the algorithm uses density ratios ($w_{\pi,T}$) to weight the model loss. In data-sparse regions, these ratios are truncated, triggering extreme pessimism (assuming worst-case rewards) to steer the policy toward safer, well-modeled areas.
  • Safe Policy Improvement (SPI): The method provides theoretical guarantees that the resulting policy will, with high probability, perform at least as well as the behavior policy, even under model misspecification.
Comparison of theoretical properties across different offline RL algorithms. Note that MBLB (Ours) is the only method providing Safe Policy Improvement (SPI) while accounting for local misspecification.

Empirical Evaluation

The approach was tested on two distinct environments: a misspecified Linear-Quadratic Regulator (LQR) and the D4RL benchmark suite.

Linear-Quadratic Regulator (LQR)

In a controlled 1D LQR task where the model class was intentionally limited, MBLB successfully identified the optimal policy. Baselines like Minimax Model Learning (MML) failed because they prioritized minimizing global error over the local accuracy needed for the optimal path.

D4RL Benchmarks

MBLB was evaluated on the Hopper and HalfCheetah tasks. It consistently matched or exceeded the performance of state-of-the-art baselines like MOPO and MML. Notably, on the Hopper-Medium dataset, MBLB (Quadratic) achieved a score of 808.5, a significant improvement over MOPO (175.4) and MML-Squared (379.4).

Performance comparison on D4RL tasks. MBLB variants (Linear and Quad) frequently outperform baselines across different dataset types and environments.

Conclusion

By shifting the focus from global model accuracy to local misspecification and joint optimization, MBLB provides a robust framework for offline RL in the real world, where models are inevitably "wrong." Future work will focus on making the objective end-to-end differentiable and refining empirical error estimators to further improve computational efficiency.

Summary updated

BibTeX
@inproceedings{dong2023model,
  author = {Kefan Dong and Yannis Flet-Berliac and Allen Nie and Emma Brunskill},
  title = {{Model-Based Offline Reinforcement Learning with Local Misspecification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i6.25903},
}
Figure