[Paper Review] Conditional Neural Processes
Conditional Neural Processes (CNPs) are neural-network-based models that learn distributions over functions conditioned on observed data, offering few-shot adaptation, scalable inference, and versatility across regression, classification, and image completion. They combine neural flexibility with GP-like conditioning without explicit Bayesian priors.
Deep neural networks excel at function approximation, yet they are typically trained from scratch for each new function. On the other hand, Bayesian methods, such as Gaussian Processes (GPs), exploit prior knowledge to quickly infer the shape of a new function at test time. Yet GPs are computationally expensive, and it can be hard to design appropriate priors. In this paper we propose a family of neural models, Conditional Neural Processes (CNPs), that combine the benefits of both. CNPs are inspired by the flexibility of stochastic processes such as GPs, but are structured as neural networks and trained via gradient descent. CNPs make accurate predictions after observing only a handful of training data points, yet scale to complex functions and large datasets. We demonstrate the performance and versatility of the approach on a range of canonical machine learning tasks, including regression, classification and image completion.
Motivation & Objective
- Motivate data-efficient learning by combining neural networks with GP-inspired conditioning.
- Introduce a scalable, permutation-invariant architecture that conditions on a fixed-size embedding of observations.
- Demonstrate CNPs on regression, image completion, and one-shot classification to show versatility and efficiency.
- Compare CNPs to Gaussian Processes and meta-learning approaches to highlight strengths and trade-offs.
Proposed method
- Define a conditional stochastic process Q_theta that models distributions over f(T) given observations O, with permutation invariance in O and T.
- Encode each observation (x_i, y_i) as r_i = h_theta(x_i, y_i) and aggregate to a fixed-dimensional r via a commutative operation (e.g., mean).
- Compute phi_i = g_theta(x_i, r) for each target x in T, yielding parameters of the conditional output distribution (e.g., Gaussian mean/variance for regression, logits for classification).
- Train by maximizing the conditional likelihood of targets given a random subset O_N of observations, minimizing the negative conditional log-likelihood with respect to theta.
- Ensure computational efficiency with O(n+m) test-time complexity for predicting m targets from n observations.
Experimental results
Research questions
- RQ1Can a neural model learn a flexible, data-driven prior over functions without explicit Bayesian priors?
- RQ2Can a permutation-invariant, amortized architecture efficiently predict function values for new inputs given limited observations?
- RQ3How do CNPs perform on regression, classification, and image-related tasks compared to GP-based methods and meta-learning approaches?
- RQ4Does adding latent variables enable coherent multi-point sampling while preserving scalable conditioning?
- RQ5What is the impact of observation quantity and arrangement on predictive accuracy and uncertainty estimation?
Key findings
- CNPs achieve accurate predictions with few observations in regression tasks and can approximate GP-like uncertainty.
- In image completion (MNIST and CelebA), CNPs produce sensible mean and uncertainty maps and remain flexible to varying observation patterns.
- CNPs outperform kNNs and GPs when context is small and maintain robustness to the order of context points.
- A latent-variable extension yields coherent samples and reduces uncertainty as observations increase.
- In one-shot Omniglot classification, CNPs achieve competitive accuracy with substantially lower test-time complexity (O(n+m)) than some baselines.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.