Beyond Unimodal: Generalising Neural Processes for Multimodal Uncertainty Estimation

Myong Chol Jung, He Zhao, Joanna Dipnall, Lan Du

TL;DR

This paper introduces Multimodal Neural Processes (MNPs), a framework that brings the reliable uncertainty estimation of Gaussian Processes to the complex world of multimodal data. By combining a dynamic memory of informative samples with a novel Bayesian aggregation method, MNPs achieve state-of-the-art performance in accuracy and out-of-distribution (OOD) detection while being up to five times faster than previous top-tier methods.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notoriously overconfident. They often provide high-certainty predictions even when they are wrong or when they encounter "out-of-distribution" (OOD) data they’ve never seen before. In safety-critical fields like medical diagnosis—where a model might look at an X-ray, a text report, and a patient’s history simultaneously—this overconfidence can be dangerous.

While we have good ways to estimate uncertainty for single-source (unimodal) data, doing so for multimodal data is much harder. Existing "Gold Standard" methods like Multi-view Gaussian Processes (MGP) provide great reliability but are computationally heavy, with costs that explode as the dataset grows ($O(N^3)$ complexity). The authors aim to bridge this gap by creating a method that is as reliable as a Gaussian Process but as efficient as a standard neural network.

Methods

The authors propose Multimodal Neural Processes (MNPs), which generalize the "Neural Process" (NP) framework for multimodal inputs.

Architecture of Multimodal Neural Processes (MNPs)

MNPs consist of three core innovations:

  1. Dynamic Context Memory (DCM): Neural Processes usually require a "context set" (a small subset of training data) to make predictions. Instead of picking these points randomly, DCM actively manages a memory buffer. It identifies and keeps "informative" samples—those the model finds hardest to classify or that represent the decision boundaries—making the model much more efficient.
  2. Multimodal Bayesian Aggregation (MBA): Most multimodal models simply concatenate features from different sources. This is brittle; if one source is noisy, it can ruin the whole prediction. MBA uses a principled Bayesian approach to combine representations. It treats each modality as a "distribution" and aggregates them such that highly uncertain or noisy modalities naturally have less influence on the final output.
  3. Adaptive RBF Attention: Standard "dot-product" attention (the kind used in Transformers) tends to assign high weights to context points even if the input is totally foreign (OOD). The authors replace this with a Radial Basis Function (RBF) kernel and use a supervised contrastive loss to "tune" the kernel's sensitivity. This ensures that if a sample is far from the known data, the attention weight—and thus the confidence—naturally drops to zero.

Datasets

The researchers evaluated MNPs across seven diverse real-world datasets to test classification, noise robustness, and OOD detection:

  • Robustness/Accuracy Benchmarks: Handwritten, CUB (Birds), PIE (Faces), Caltech101, Scene15, and HMDB (Video).
  • OOD Detection Benchmark: A multimodal version of CIFAR10-C (corrupted images) compared against SVHN (Street View House Numbers) and CIFAR100 as the "unknown" data.
  • Synthetic Data: A "moons" dataset was used to visualize how different attention mechanisms handle uncertainty in 2D space.

Key Insights and Ideas

  • The "Overconfidence" Culprit: A major insight in the paper is demonstrating that standard dot-product attention is a primary driver of overconfidence in Neural Processes. Because it doesn't have a "distance-aware" decay, it forces the model to pick a class even when it should say "I don't know."
Comparison of attention mechanisms on a 2D moons dataset
  • Efficiency via Imitation: MNPs are designed to imitate the behavior of non-parametric Gaussian Processes using the representational power of DNNs. This allows them to maintain a linear or quadratic computational complexity ($O(N)$ or $O(N^2)$) rather than the cubic complexity of traditional GPs.
  • Principled Fusion: By using Multimodal Bayesian Aggregation (MBA), the model doesn't just "merge" data; it performs a mathematical "product of experts." This makes the system inherently robust to sensor failure or noisy inputs in one specific modality.

Key Results

  • Superior Accuracy: MNPs outperformed all baselines (including Deep Ensembles and MGPs) in 5 out of 6 real-world datasets.
  • Better Calibration: The model achieved the lowest Expected Calibration Error (ECE) in 4 out of 6 datasets, meaning its "confidence" scores actually matched its real-world accuracy.
  • OOD Mastery: In out-of-distribution detection tests, MNPs significantly outperformed the previous state-of-the-art (MGP) across every metric.
  • Massive Speedup: Perhaps most importantly for engineers, MNPs were 1.1x to 5.3x faster than MGP during testing, making them much more viable for real-time applications.

Limitations and Future Work

The authors note that while the Dynamic Context Memory (DCM) works exceptionally well in practice, it currently lacks a formal theoretical guarantee that it will always converge to the optimal set of context points.

Future research directions include:

  • Developing more sophisticated theoretical frameworks for the DCM updating mechanism.
  • Exploring how to make the source of uncertainty more "transparent" to non-expert users (e.g., explaining why the model is uncertain about a specific medical scan).
  • Applying the MNP framework to even more diverse modalities, such as audio-visual or sensor-fusion in robotics.

Summary updated

BibTeX
@inproceedings{jung2023beyond,
  author = {Myong Chol Jung and He Zhao and Joanna Dipnall and Lan Du},
  title = {{Beyond Unimodal: Generalising Neural Processes for Multimodal Uncertainty Estimation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=xq1QvViDdW},
}
Figure