Disentangling Uncertainties by Learning Compressed Data Representation

Zhiyu An, Zhibo Hou, Wan Du

TL;DR

This paper introduces the Compressed Data Representation Model (CDRM), a novel framework for disentangling aleatoric (inherent randomness) and epistemic (data uncertainty) in system dynamics models. CDRM learns a compressed representation of data distributions, enabling more accurate uncertainty estimation and handling of multimodal outputs, which are challenging for existing methods.

What Problem Does This Paper Address?

In many real-world applications, such as robotics and reinforcement learning, understanding uncertainty is crucial for safe and efficient decision-making. System dynamics models, which predict future states based on current states and actions, are prone to two types of uncertainty: aleatoric uncertainty, which stems from inherent randomness in the system (like a dice roll) and cannot be reduced, and epistemic uncertainty, which arises from a lack of data and can be reduced with more observations.

Effectively disentangling these two types of uncertainty is vital. For instance, in exploration tasks, a robot needs to know whether to explore further to reduce its knowledge gap (epistemic uncertainty) or if the outcome is inherently random and further exploration is futile (aleatoric uncertainty). Existing methods often struggle to accurately separate these uncertainties or are computationally expensive. Furthermore, many real-world systems exhibit multimodal output distributions (multiple possible outcomes for a given input), which standard Gaussian-based uncertainty models fail to capture.

Methods

The core of this paper is the Compressed Data Representation Model (CDRM). CDRM is a neural network that learns a compressed representation of the data distribution. Instead of directly predicting the next state, CDRM learns to output a scalar value between 0 and 1, indicating the likelihood that a given (state, action, next-state) tuple exists in the training dataset. This is achieved through a contrastive loss function and trained using a maximum likelihood approach with Langevin dynamics sampling.

The key innovations are:

  • Compressed Data Representation: CDRM learns a compact representation of the data distribution, allowing it to distinguish between data points that are likely to occur and those that are not.
  • Langevin Dynamics Sampling: This MCMC procedure is used both for training and inference. During training, it helps generate diverse negative samples and adapt to the model's learning. During inference, it allows the model to explore the space of possible next states and estimate uncertainties.
  • Arbitrary Output Distributions: Unlike methods that assume Gaussian output distributions, CDRM can learn and sample from arbitrary distributions, including multimodal ones, by querying the learned data representation.
  • Efficient Inference: CDRM employs a batch-parallel Langevin dynamics approach for inference, making it more efficient for high-dimensional state spaces compared to traditional bin-based methods.

Datasets

The paper uses two newly introduced toy datasets for evaluation:

  • Unimodal Toy Dataset: This dataset is designed to have a single, clear output distribution for most inputs, with specific regions designed to test low aleatoric/epistemic uncertainty, high epistemic uncertainty (lack of data), and high aleatoric uncertainty (noise).
  • Multimodal Toy Dataset: This dataset is an augmentation of the unimodal dataset, specifically designed to create scenarios with multimodal output distributions, which are challenging for many existing methods.

Additionally, a "Room Exploration" experiment is described, where a robot collects data to train a temperature prediction model. This experiment simulates scenarios with high aleatoric uncertainty (random temperature region) and high epistemic uncertainty (hidden room).

Key Insights and Ideas

  • Disentanglement is Key: The paper strongly emphasizes that accurately separating aleatoric and epistemic uncertainty is crucial for intelligent agents, especially in resource-constrained environments.
  • Beyond Gaussian Assumptions: The realization that real-world random events often don't follow a simple Gaussian distribution is a significant motivation. CDRM's ability to handle arbitrary distributions is a major advantage.
  • Multimodality is a Real Challenge: The paper highlights that many existing methods fail when faced with multimodal output distributions, underscoring the importance of CDRM's capability in this area.
  • Data Representation Matters: By learning a compressed representation of the data distribution, CDRM can effectively infer uncertainty, even in regions with limited or no training data.

Key Results

  • Quantitative Performance: In the room exploration experiment, CDRM achieved the highest AUROC and AUPRC for both aleatoric (AU) and epistemic (EU) uncertainty estimation, significantly outperforming baselines like GP, BNN, MC Dropout, and Deep Ensemble. For EU, CDRM achieved AUROC of 0.9981 and AUPRC of 0.9961. For AU, it achieved AUROC of 0.8876 and AUPRC of 0.7170.
  • Qualitative Performance:
    • CDRM correctly identified regions with high epistemic uncertainty (lack of data) by outputting EU=1.
  • CDRM also correctly estimated higher aleatoric uncertainty for multimodal datasets compared to unimodal ones.
  • The model successfully learned a function landscape corresponding to the presence of data, as visualized in Figure 4.
  • CDRM's predictions for multimodal datasets were meaningful, avoiding the unrealistic outcomes that can arise from averaging modes.

Limitations and Future Work

  • Training Computational Overhead: CDRM's training can be computationally intensive, especially for high-dimensional spaces, due to the need for many Langevin samples and iterations to achieve zero output for non-data points.
  • Relative Abundance: CDRM currently captures the existence of data but not its relative abundance. While complemented by KDE, future work could explore modifying the training to learn abundance simultaneously.
  • Single Prediction for Multimodality: While CDRM avoids averaging issues by outputting a single prediction, future work could enable it to provide more informative predictions for multimodal next-state distributions, potentially leading to better control and reinforcement learning applications.

Summary updated

BibTeX
@inproceedings{an2025disentangling,
  author = {Zhiyu An and Zhibo Hou and Wan Du},
  title = {{Disentangling Uncertainties by Learning Compressed Data Representation}},
  booktitle = {L4dc},
  year = {2025},
  doi = {10.48550/arxiv.2503.15801},
}
Figure