Deterministic Uncertainty Propagation for Improved Model-Based Offline Reinforcement Learning

Abdullah Akgül, Manuel Haußmann, Melih Kandemir

TL;DR

MOMBO (Moment Matching Offline Model-Based Policy Optimization) replaces noisy Monte Carlo sampling with a deterministic method for propagating uncertainty through neural networks in offline reinforcement learning. By using progressive moment matching, the algorithm achieves significantly faster convergence and provides tighter theoretical guarantees than existing sampling-based approaches.

What Problem Does This Paper Address?

Offline Reinforcement Learning (RL) is the challenge of learning an optimal policy from a fixed dataset without any further environment interaction. The primary hurdle here is distributional shift: when an agent explores actions outside the training data, the Q-function (which estimates future rewards) often produces wildly optimistic values.

To combat this, researchers use Pessimistic Value Iteration (PEVI), which penalizes the reward of a state-action pair based on how "uncertain" the model is about the next state. Traditionally, calculating this uncertainty involves Monte Carlo (MC) sampling—taking many samples from a predicted next-state distribution and passing them through a Q-network.

The authors identify a major flaw: MC sampling is incredibly noisy. Even with 10,000 samples, the variance of the Bellman target remains high, which distorts gradient signals and drastically slows down training convergence.

Figure 1: Moment Matching versus Monte Carlo Sampling. Moment match- ing offers sharp estimates of the action- value of the next state at the cost of only two forward passes through a critic net- work. A similar sharpness cannot be reached even with 10000 Monte Carlo samples, which is 5000 times more costly. See Appendix C.1.1 for details.

Methods

The paper introduces MOMBO, which ditches sampling in favor of Progressive Moment Matching. Instead of passing individual points through the Q-network, MOMBO treats the input as a distribution (specifically a Gaussian) and analytically propagates the mean and variance through the network layers.

  • Linear Layers: The transformation of mean and variance through an affine layer is straightforward.
  • ReLU Layers: Propagating a Gaussian through a non-linear ReLU is harder. MOMBO uses analytical formulas for the first two moments of a rectified Gaussian distribution to approximate the output as a new normal distribution.
  • Efficiency: While sampling-based methods require $N$ forward passes (where $N$ is the number of samples), MOMBO requires only two passes (one for the mean, one for the variance) plus negligible analytical overhead.

The authors also contribute a new theoretical framework, proving that the suboptimality of sampling-based methods is heavily dependent on the number of samples, whereas MOMBO allows for a much tighter, deterministic bound on performance.

Datasets

The authors evaluate MOMBO on the standard D4RL benchmark, which includes:

  • Environments: MuJoCo tasks like halfcheetah, hopper, and walker2d.
  • Expertise Levels: Datasets ranging from random and medium to medium-replay and medium-expert.

They also test on a Mixed Offline RL dataset, which simulates more realistic scenarios where expert data is scarce (e.g., only 1% of the data comes from an expert policy).

Key Insights and Ideas

  • The "Sampling Tax": The authors demonstrate that the randomness of MC sampling is a primary limiting factor for convergence in model-based offline RL. High-variance estimates require larger "confidence radii" (safety margins), which unnecessarily restricts the model's capacity to learn.
  • Deterministic Propagation is Tighter: Theoretically, the suboptimality bound for MOMBO is "exact" and much tighter than the probabilistic bounds used for sampling methods. This is crucial for safety-critical applications where analytical guarantees are a requirement.
  • Sharpness Matters: As seen in Figure 1, moment matching offers a "sharp" estimate of the action-value distribution. This leads to more informative gradient signals, allowing the agent to reach peak performance much earlier in the training process.

Key Results

MOMBO consistently outperforms or matches state-of-the-art baselines like MOPO and MOBILE, particularly in training efficiency.

  • Faster Convergence: MOMBO achieves a significantly higher Area Under the Learning Curve (AULC). On the D4RL benchmark, it earned the best average ranking (1.2) for AULC across all tasks.
  • Superior Performance with Limited Data: In the "Mixed" dataset experiments, MOMBO showed a clear advantage when expert data was limited to 1%, outperforming baselines in both final reward and learning speed.
  • Uncertainty Quality: MOMBO provides more "accurate" and "tight" uncertainty quantifiers compared to MOPO and MOBILE, meaning it correctly identifies when to be pessimistic without being overly restrictive.
Table 1: Performance evaluation on the D4RL dataset. Normalized reward at 3M gradient steps and Area Under the Learning Curve (AULC) (mean±std) scores are averaged across four repetitions. The highest means are highlighted in bold and are underlined if they fall within one standard deviation of the best score. The average normalized score is the average across all tasks. The average ranking is based on the rank of the mean.

Limitations and Future Work

  • Model Bottleneck: Like all model-based methods, MOMBO is only as good as the environment model it learns. If the transition model is inaccurate, the uncertainty propagation will be flawed.
  • Activation Function Constraints: The current moment matching derivation is optimized for ReLU. While it can be adapted for other piecewise linear functions, it may not work as easily with complex structures like BatchNorm or highly exotic activation functions that lack tractable moments.
  • Gaussian Assumption: The method assumes Q-values are normally distributed. While this is a common assumption, exploring heavy-tailed distributions could potentially improve robustness in highly stochastic environments.

Summary updated

BibTeX
@inproceedings{akgul2024deterministic,
  author = {Abdullah Akgül and Manuel Haußmann 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