Deterministic Uncertainty Propagation for Improved Model-Based Offline Reinforcement Learning

Abdullah Akgül, Manuel Haussmann, Melih Kandemir

Abstract

Offline reinforcement learning (RL) faces the fundamental challenge of distributional shift, where agents may overestimate the value of actions poorly represented in the training data. While Pessimistic Value Iteration (PEVI) addresses this by penalizing rewards based on model uncertainty, standard implementations rely on stochastic Monte Carlo (MC) sampling. This sampling introduces significant noise into the gradient signal, hindering convergence and requiring conservative penalty terms. We present MOMBO (Moment Matching Offline Model-Based Policy Optimization), an algorithm that replaces MC sampling with deterministic Progressive Moment Matching. By analytically propagating Gaussian distributions through neural network layers, MOMBO achieves a smoother optimization landscape, tighter theoretical performance bounds, and superior empirical results, particularly in sparse-data regimes.

Introduction

The promise of offline RL lies in its ability to leverage large, pre-existing datasets for policy optimization without further environment interaction. However, the "death spiral" of overestimation remains a primary obstacle: when an agent encounters a state-action pair outside the training distribution, the model's predictions become unreliable. If the agent interprets this uncertainty as high reward, it will converge on a suboptimal or even dangerous policy.

To mitigate this, state-of-the-art methods like MOPO and MOBILE incorporate pessimism by penalizing the reward function based on the variance of the model's predictions. Traditionally, this variance is estimated via MC sampling—passing multiple samples through a Q-network. This paper identifies that the stochasticity of these samples is a major bottleneck, distorting gradient signals and slowing the training process.

Methodology: MOMBO

MOMBO addresses the sampling bottleneck by treating uncertainty propagation as a deterministic mathematical operation rather than a stochastic estimation. The core mechanism is Progressive Moment Matching.

1. Input as a Distribution

Instead of treating the predicted next state as a discrete point, MOMBO models it as a Gaussian distribution characterized by a mean and variance.

2. Deterministic Propagation

The algorithm propagates this distribution through the layers of the Q-network analytically:

  • Linear Layers: The transformation of a Gaussian through a linear layer is mathematically straightforward and exact.
  • ReLU Activations: While ReLU is non-linear, the authors utilize analytical approximations to map the input Gaussian to a new Gaussian output, maintaining the "moment matching" chain throughout the network.

3. The MOMBO Bellman Target

By the time the distribution reaches the final layer, the network provides a deterministic estimate of the expected value and the propagated variance. The Bellman target is then calculated by subtracting a penalty proportional to this variance. This effectively replaces a stochastic process with a deterministic one, "smoothing" the optimization landscape and providing a more stable gradient for training.

Theoretical Contributions

A significant advantage of MOMBO's deterministic approach is the ability to derive tighter theoretical bounds. Traditional PEVI bounds often rely on Hoeffding-style inequalities, which are notoriously loose in practice as they scale poorly with reward ranges. Because MOMBO avoids sampling error, the authors derive suboptimality guarantees based on the Lipschitz constants of the network. These bounds are more representative of actual performance and justify the use of sharper, more effective penalty terms.

Experimental Evaluation

The authors evaluated MOMBO against leading baselines (MOPO, MOBILE) using two major benchmarks:

  1. D4RL: Standard MuJoCo tasks (HalfCheetah, Hopper, Walker2d) across various data quality levels (random, medium, medium-expert).
  2. Mixed Offline RL Dataset: A challenging setup where expert data is extremely sparse (e.g., 1% expert, 99% random/medium), testing the algorithm's ability to extract value from limited high-quality information.

Key Results

  • Convergence Speed: MOMBO demonstrated a significantly higher Area Under the Learning Curve (AULC), reaching peak performance much faster than sampling-based methods. This confirms that sampling noise—not just computational cost—is a primary inhibitor of training efficiency.
  • Robustness to Sparse Data: In the Mixed dataset experiments, MOMBO maintained high performance even when expert trajectories were minimal. For instance, at a 1% expert ratio, MOMBO achieved a normalized reward of 37.0, compared to 32.4 for the next best baseline.
  • Penalty Quality: The authors measured Accuracy (how often the penalty covers the true error) and Tightness (how small the penalty is relative to the error). MOMBO consistently provided more accurate and tighter penalties than MC-based alternatives across almost all tasks.

Discussion and Limitations

MOMBO represents a shift from stochastic estimation to deterministic calculation in model-based RL. By smoothing the optimization landscape, it allows for more efficient use of offline data. However, several considerations remain:

  • Gaussian Assumption: The method assumes that internal activations can be reasonably approximated by a normal distribution. While common in Bayesian deep learning, highly non-linear reward landscapes might challenge this assumption.
  • Architectural Constraints: The current analytical derivations are optimized for ReLU activations. Extending MOMBO to other architectures would require different mathematical approximations.
  • Model Dependency: Like all model-based approaches, MOMBO is still limited by the accuracy of the underlying environment model. If the model itself is biased, deterministic propagation cannot fully compensate for the resulting policy errors.

Conclusion

MOMBO demonstrates that the method of uncertainty propagation is as critical as the uncertainty estimate itself. By replacing noisy sampling with deterministic moment matching, MOMBO provides a more stable, faster, and more accurate framework for offline reinforcement learning, particularly in data-constrained environments.

Summary updated

BibTeX
@inproceedings{akgul2024deterministic,
  author = {Abdullah Akgül and Manuel Haussmann and Melih Kandemir},
  title = {{Deterministic Uncertainty Propagation for Improved Model-Based Offline Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=OFmclNhp0y},
}
Figure