Abstract
Offline Reinforcement Learning (RL) presents a significant challenge: learning optimal policies from static datasets without environment interaction. The primary obstacle is extrapolation error, where agents overestimate the value of unseen state-action pairs or exploit inaccuracies in learned dynamics models. We introduce MoMo (Morse Model-based offline RL), a framework that addresses these issues through an "anti-exploration" paradigm. By utilizing Morse Neural Networks (MNN) to provide calibrated, bounded uncertainty estimates, MoMo enforces pessimism via a policy bonus and a novel trajectory truncation mechanism. Experimental results on D4RL benchmarks show that MoMo achieves state-of-the-art performance using a single dynamics model, significantly reducing the computational overhead typically associated with ensemble-based methods.
Introduction
In offline reinforcement learning, agents must derive expertise from pre-collected datasets, such as historical logs or human demonstrations. This setting is critical for real-world applications where live exploration is dangerous or expensive. However, offline RL is plagued by extrapolation error. When an agent encounters a state-action pair not represented in the training data, its value function often produces arbitrary, often overly optimistic, estimates.
In the context of Model-Based Reinforcement Learning (MBRL), this problem is compounded. The agent learns a dynamics model to simulate the environment, but if the agent drifts into regions where the model is inaccurate, it can "hallucinate" high-reward trajectories. To combat this, researchers at Imperial College London developed MoMo, a framework that integrates Morse Neural Networks to provide a robust "distance-aware" uncertainty metric, ensuring the agent remains within the support of the training data.
The Problem: The Double Dose of Extrapolation Error
Standard offline MBRL suffers from two distinct types of error:
- Value Error: The critic overestimates the value of out-of-distribution (OOD) actions because it has never seen evidence to the contrary.
- Model Error: The dynamics model becomes unreliable in OOD regions. If the policy optimizer finds a "hole" in the model where it predicts high rewards for unrealistic transitions, the agent will exploit this hallucination.
Traditional solutions rely on large ensembles (e.g., training 5-10 models) to estimate uncertainty through disagreement. While effective, ensembles are computationally expensive and difficult to tune because their uncertainty scales vary significantly across different tasks.
Methodology: Anti-Exploration via Morse Neural Networks
The core innovation of MoMo is the use of a Morse Neural Network (MNN) as an Energy-Based Model (EBM). Unlike standard neural networks, an MNN learns an unnormalized density $M(x)$ bounded between 0 and 1. For state-action pairs $(s, a)$ within the dataset, $M(s, a) \approx 1$; for OOD pairs, $M(s, a) \to 0$.
1. Calibrated Pessimism
MoMo uses the MNN score to inject pessimism directly into the learning objective. During policy optimization, the actor is constrained to stay near the data by maximizing $Q(s, a) + \log M(s, a)$. Simultaneously, the critic update includes a penalty based on the MNN score, ensuring that the value of uncertain states is systematically suppressed.
2. Trajectory Truncation
While reward penalties are common, MoMo introduces Trajectory Truncation as a specific safeguard for model-based rollouts. When the agent generates synthetic trajectories using its dynamics model, MoMo monitors the cumulative certainty along the path. If the product of MNN scores along a trajectory falls below a predefined threshold ($\epsilon_{trunc}$), the rollout is immediately terminated. This prevents the agent from learning from increasingly unrealistic "imagined" futures.
Experimental Evaluation
MoMo was evaluated on the D4RL benchmark, covering a wide range of tasks:
- Gym Locomotion: Standard tasks like HalfCheetah, Hopper, and Walker2d with data ranging from random to expert levels.
- Adroit: High-dimensional robotic hand manipulation tasks (Pen, Hammer, Door, Relocate) involving human and expert data.
Key Findings
- Performance: MoMo-mb (the model-based variant) matched or exceeded state-of-the-art baselines in 17 out of 24 tested datasets.
- Efficiency: MoMo proves that ensembles are not a strict requirement for uncertainty estimation. A single, well-regularized MNN provides a distance-aware metric that is more stable and easier to generalize across tasks than ensemble variance.
- Model-Based Advantage: The transition from a model-free version of MoMo to the model-based version resulted in a 21.5% average performance increase on Gym tasks, demonstrating that synthetic data is highly beneficial when paired with a reliable "hallucination detector."
- Ablation Studies: Removing the anti-exploration bonus led to a 12.5% performance decline, confirming that distance-aware pessimism is the primary driver of the agent's success.
Discussion and Limitations
MoMo represents a shift toward more elegant, single-model uncertainty estimation in offline RL. By using bounded MNN scores, the framework avoids the hyperparameter sensitivity associated with unbounded ensemble variance.
However, the framework is inherently conservative. Because the MNN is designed to prevent extrapolation, MoMo is unlikely to discover novel strategies that deviate significantly from the training dataset. Furthermore, while MoMo avoids the cost of ensembles, training the MNN and dynamics model still introduces approximately 25% more computational overhead than basic model-based methods. Future research may focus on dynamically updating the MNN or further optimizing the training pipeline to reduce this overhead.
Conclusion
MoMo demonstrates that "anti-exploration" is a powerful paradigm for offline MBRL. By combining Morse Neural Networks with trajectory truncation, the framework provides a robust defense against extrapolation error, allowing agents to safely leverage synthetic data without succumbing to model exploitation.
Summary updated