Correlated Trajectory Uncertainty for Adaptive Sequential Decision Making

Ian Char, Youngseog Chung, Rohan Shah, Willie Neiswanger, Jeff SchneiderReALML @ NeurIPS 2023

TL;DR

This paper tackles the problem of uncertainty estimation in model-based reinforcement learning (MBRL) when data is scarce. The authors propose a novel sampling method for probabilistic neural networks (PNNs) that generates smoother transition function samples, leading to more calibrated uncertainty estimates and improved downstream policy performance, especially in safety-critical scenarios.

What Problem Does This Paper Address?

In real-world decision-making tasks, especially those involving robotics or complex systems like nuclear fusion, acquiring data is often expensive and time-consuming. This scarcity of data makes it challenging to build accurate models of the environment. While model-based reinforcement learning (MBRL) aims to alleviate this by learning a model of the environment, these learned models are inherently prone to errors. Crucially, quantifying the uncertainty in these predictions is vital for safe and effective decision-making.

Existing methods often use "probabilistic neural networks" (PNNs) to estimate uncertainty. However, the authors argue that PNNs, while providing good marginal uncertainties (uncertainty for a single prediction), produce non-smooth transition function samples. This lack of smoothness can lead to unrealistic trajectory predictions and, more importantly, poorly calibrated uncertainty estimates when predicting over multiple time steps. This is particularly problematic for adaptive policies that need to understand and potentially avoid uncertain regions of the state-action space.

Methods

The core contribution of this paper is a new sampling technique called the Smooth Probabilistic Neural Network (SPNN). Instead of treating the noise terms in PNN predictions as independent, SPNN models these noise terms as a multivariate Gaussian distribution. This is achieved by introducing a kernel function that captures the similarity between state-action pairs. This kernel function allows the model to learn temporal correlations in the residuals (the difference between the true next state and the predicted mean).

Essentially, SPNN models the standardized residuals (i.e., (true_next_state - predicted_mean) / predicted_std_dev) as a Gaussian Process. This approach ensures that when consecutive state-action pairs are similar, the corresponding noise terms are also correlated, leading to smoother and more realistic transition function samples. The authors emphasize that this method can be implemented on top of existing PNN models without requiring significant architectural changes.

Datasets

The authors evaluated their method on several environments:

  • Nuclear Fusion (Tokamak Control): An environment adapted from previous work, focusing on controlling plasma pressure. The dataset consists of five trajectories generated by a PID controller.
  • Mountain Ridge: A 2D navigation task where an agent must traverse a ridge and avoid falling off a cliff. Datasets were created at different performance levels: Random, Medium, and Expert.
  • Cart Pole: The classic control problem, with data collected from a poorly performing policy.

No new benchmark environments were introduced; existing ones were used to demonstrate the effectiveness of the proposed method.

Key Insights and Ideas

  • Non-smoothness is a problem: The paper convincingly argues that the non-smooth transition function samples produced by standard PNNs are a significant issue, leading to poor multi-step uncertainty estimates.
  • Correlated residuals matter: By modeling the correlations between consecutive residuals, SPNN can generate smoother and more realistic trajectory samples.
  • Smoothness improves calibration: The core finding is that generating smoother transition samples directly leads to more calibrated uncertainty estimates, especially over longer horizons.
  • Adaptive policies benefit: Smoother uncertainty estimates are crucial for adaptive policies, enabling them to better navigate uncertain regions and achieve more stable performance.

Key Results

  • Reduced Overconfidence: SPNN significantly reduces overconfidence in uncertainty estimates compared to standard PNNs, particularly as the prediction horizon increases (Figure 2, Figure 6).
  • Improved Calibration: While SPNN can sometimes lead to slight underconfidence, it generally results in more calibrated uncertainty estimates, especially when combined with ensembling (Table 1).
  • Better Policy Performance: In safety-critical environments like Fusion and Mountain Ridge, policies trained with SPNN exhibit better performance, avoiding catastrophic failures (e.g., falling off the cliff) and achieving higher average returns (Table 2, Figure 16-20).
  • More Stable Training: SPNN leads to more stable training curves for adaptive policies, reducing oscillations and overfitting (Figure 17).

Limitations and Future Work

  • Computational Cost: While SPNN is presented as an improvement over Gaussian Processes (GPs) in RL, the paper notes that GPs are computationally more expensive. The proposed SPNN method, by leveraging kernel approximations, aims to mitigate this, but it's implied that there might still be a computational overhead compared to standard PNNs.
  • Assumptions for Theoretical Analysis: The theoretical analysis in Appendix G relies on simplifying assumptions (e.g., Markovian residuals, specific correlation structures) to provide intuition. The authors acknowledge that these assumptions are simplifications and don't perfectly reflect the autoregressive nature of real-world trajectory prediction.
  • Future Work: The authors express interest in extending their results to more complex and higher-dimensional environments, suggesting that the core idea of modeling correlated residuals has broader applicability.

Summary updated

BibTeX
@inproceedings{char2023correlated,
  author = {Ian Char and Youngseog Chung and Rohan Shah and Willie Neiswanger and Jeff Schneider},
  title = {{Correlated Trajectory Uncertainty for Adaptive Sequential Decision Making}},
  booktitle = {ReALML @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=k2kBjcKVal},
}

Loading related content...

Figure