Skip to main content
QUICK REVIEW

[Paper Review] Doubly Stochastic Variational Inference for Neural Processes with Hierarchical Latent Variables

Qi Wang, Herke van Hoof|arXiv (Cornell University)|Aug 21, 2020
Neural Networks and ApplicationsComputer Science9 citations
TL;DR

This paper proposes Doubly Stochastic Variational Neural Processes (DSVNP), a hierarchical latent variable model that enhances Neural Processes by incorporating both global and target-specific local latent variables to improve predictive uncertainty and expressiveness. The method achieves state-of-the-art performance in multi-output regression and uncertainty-aware image classification, outperforming deterministic baselines like AttnNP in OOD detection and robustness.

ABSTRACT

Neural processes (NPs) constitute a family of variational approximate models for stochastic processes with promising properties in computational efficiency and uncertainty quantification. These processes use neural networks with latent variable inputs to induce predictive distributions. However, the expressiveness of vanilla NPs is limited as they only use a global latent variable, while target specific local variation may be crucial sometimes. To address this challenge, we investigate NPs systematically and present a new variant of NP model that we call Doubly Stochastic Variational Neural Process (DSVNP). This model combines the global latent variable and local latent variables for prediction. We evaluate this model in several experiments, and our results demonstrate competitive prediction performance in multi-output regression and uncertainty estimation in classification.

Motivation & Objective

  • To address the limited expressiveness of vanilla Neural Processes, which rely only on global latent variables and fail to capture target-specific variations.
  • To develop a more flexible variational inference framework for stochastic processes that supports both epistemic and aleatoric uncertainty modeling.
  • To improve predictive performance and uncertainty estimation in high-dimensional regression and classification tasks.
  • To systematically analyze the role of hierarchical latent variables in enhancing the expressiveness of Neural Process models.
  • To demonstrate the superiority of stochastic local latent variables over deterministic ones in out-of-distribution detection and robustness.

Proposed method

  • Proposes a Doubly Stochastic Variational Neural Process (DSVNP) that combines global latent variables with target-specific local latent variables in a hierarchical latent variable model.
  • Uses a variational inference framework with stochastic reparameterization to enable differentiable training of both global and local latent variables.
  • Introduces a joint generative process where the output is modeled as a function of context inputs and both global and local latent variables, enabling flexible predictive distributions.
  • Employs a stochastic encoder to infer posterior distributions over global and local latent variables using context points, with independent sampling for each prediction.
  • Applies attention mechanisms in the inference network to attend to context points and improve local latent variable representation.
  • Uses a doubly stochastic gradient estimator to optimize the variational lower bound (ELBO), enabling scalable training with mini-batch sampling.

Experimental results

Research questions

  • RQ1Can the integration of both global and local latent variables significantly improve the predictive performance of Neural Processes in high-dimensional regression tasks?
  • RQ2How do stochastic local latent variables compare to deterministic ones in terms of uncertainty quantification and out-of-distribution detection?
  • RQ3Does the hierarchical latent structure in DSVNP lead to better generalization and robustness in classification under adversarial noise?
  • RQ4To what extent does the proposed model outperform existing variants like AttnNP and vanilla NP in uncertainty-aware prediction?
  • RQ5How does the use of doubly stochastic variational inference affect training stability and convergence in complex function approximation?

Key findings

  • DSVNP achieves competitive performance in multi-output regression, outperforming vanilla NP and AttnNP in predictive accuracy and uncertainty calibration.
  • The model demonstrates superior out-of-distribution (OOD) detection capability, especially under adversarial noise, where it significantly outperforms the deterministic AttnNP.
  • Entropy distributions on the Rademacher dataset show that DSVNP maintains meaningful uncertainty estimates, indicating robustness to adversarial perturbations.
  • The inclusion of stochastic local latent variables improves uncertainty estimation and generalization, even when only dot-product attention is used for context encoding.
  • Experiments confirm that deterministic local latent variables in AttnNP do not improve performance on domain datasets and weaken OOD detection, highlighting the benefit of stochasticity.
  • The doubly stochastic variational inference framework enables scalable training with complexity O((M+N)N), making it feasible for high-dimensional prediction tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.