Skip to main content
QUICK REVIEW

[Paper Review] Neural Processes

Marta Garnelo, Jonathan Schwarz|arXiv (Cornell University)|Jul 4, 2018
Gaussian Processes and Bayesian InferenceComputer Science27 citations
TL;DR

Neural Processes (NPs) introduce a neural latent variable model that combines the data efficiency and uncertainty estimation of Gaussian processes with the computational efficiency of neural networks. By learning an implicit kernel from data and using an encoder-decoder architecture with a global latent variable, NPs enable fast, flexible function prediction with uncertainty quantification, outperforming baselines in regression, optimization, and contextual bandits tasks.

ABSTRACT

A neural network (NN) is a parameterised function that can be tuned via gradient descent to approximate a labelled collection of data with high precision. A Gaussian process (GP), on the other hand, is a probabilistic model that defines a distribution over possible functions, and is updated in light of data via the rules of probabilistic inference. GPs are probabilistic, data-efficient and flexible, however they are also computationally intensive and thus limited in their applicability. We introduce a class of neural latent variable models which we call Neural Processes (NPs), combining the best of both worlds. Like GPs, NPs define distributions over functions, are capable of rapid adaptation to new observations, and can estimate the uncertainty in their predictions. Like NNs, NPs are computationally efficient during training and evaluation but also learn to adapt their priors to data. We demonstrate the performance of NPs on a range of learning tasks, including regression and optimisation, and compare and contrast with related models in the literature.

Motivation & Objective

  • To address the limitations of Gaussian processes, such as high computational cost and reliance on handcrafted kernels, by introducing a neural network-based alternative.
  • To combine the strengths of neural networks—computational efficiency and scalable training—with those of stochastic processes, including uncertainty estimation and test-time adaptability.
  • To enable flexible, data-driven function approximation that adapts to context observations without requiring retraining.
  • To demonstrate the effectiveness of NPs across diverse tasks, including 1D regression, image completion, Bayesian optimization, and contextual bandits.

Proposed method

  • NPs model a distribution over functions using a global latent variable z, which captures shared structure across tasks.
  • The encoder processes context points (x_c, y_c) into a latent representation, using a deep neural network to map inputs to a latent code.
  • An aggregator (e.g., mean pooling) summarizes the context representations into a single context embedding, which is then used to condition the global latent variable z.
  • The decoder generates predictions for target points (x_t, y_t) by conditioning on both the context embedding and the global latent variable z.
  • Inference is performed via amortized variational inference, where the model learns to approximate the true posterior over functions using a single forward pass.
  • The model is trained end-to-end using a likelihood-based objective that maximizes the log-likelihood of target outputs given context, with a variational lower bound (ELBO) for optimization.

Experimental results

Research questions

  • RQ1Can a neural network learn to represent a distribution over functions with uncertainty, similar to Gaussian processes, but with better computational efficiency?
  • RQ2Can a learned, data-driven kernel in a neural model outperform handcrafted kernels in function approximation tasks?
  • RQ3Can Neural Processes generalize across diverse tasks such as regression, image completion, and Bayesian optimization with a single unified architecture?
  • RQ4How does the performance of NPs compare to meta-learning models like MAML and other deep latent variable models in few-shot and contextual learning settings?

Key findings

  • Neural Processes achieved state-of-the-art performance on Bayesian optimization and contextual bandit tasks, outperforming or matching methods like MAML and NeuralLinear.
  • In 1D regression tasks, NPs achieved a test loss of 1.04 ± 0.06 on the 5000-point test set, outperforming models like Bayes by Backprop and MAML.
  • On image completion tasks, NPs demonstrated strong generalization, generating high-quality, diverse reconstructions with uncertainty-aware predictions.
  • In the wheel bandit problem, NPs matched the performance of MAML and NeuralLinear, achieving a cumulative reward of 21.45 ± 1.3, indicating strong adaptability in contextual decision-making.
  • The model scaled efficiently with context size, with inference complexity of O(n + m), compared to O((n + m)^3) for standard Gaussian processes.

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.