Abstract
Neural Processes (NPs; Garnelo et al., 2018a,b) are a rich class of models for meta-learning that map data sets directly to predictive stochastic processes. We provide a rigorous analysis of the standard maximum-likelihood objective used to train conditional NPs. Moreover, we propose a new member to the Neural Process family called the Gaussian Neural Process (GNP), which models predictive correlations, incorporates translation equivariance, provides universal approximation guarantees, and demonstrates encouraging performance.
Introduction
Neural Processes (NPs) are a family of models designed to map datasets directly to predictive stochastic processes, effectively "learning to learn" from data. However, the field has faced a persistent trade-off: Conditional NPs (CNPs) are computationally efficient with closed-form likelihoods but assume target independence, precluding the modeling of correlations or the production of coherent samples. Conversely, Latent NPs (LNPs) can model correlations but suffer from intractable likelihoods, necessitating complex and often unstable approximate inference techniques. This paper introduces the Gaussian Neural Process (GNP), which models correlations without sacrificing a closed-form likelihood.
Theoretical Foundation
A key contribution of this work is the rigorous analysis of the standard maximum-likelihood (ML) objective used for training NPs. We relate this objective to the Kullback-Leibler (KL) divergence between stochastic processes, termed "functional KL." Our analysis demonstrates that the standard training objective is a mathematically well-behaved relaxation of this functional objective, ensuring that the learning procedure is theoretically sound for infinite-dimensional stochastic processes.
The Gaussian Neural Process (GNP)
The GNP models the predictive distribution directly as a Gaussian Process (GP). Its architecture consists of:
- Mean Map: Utilizes a
ConvDeepSetto ensure the predicted mean is translation-equivariant. - Kernel Map: To predict a covariance function $k(t, t')$, the model treats the covariance as a 2D image. It uses a 2D CNN to transform a "source channel" (representing white noise) into a valid, positive semi-definite covariance matrix. This "source channel trick" allows the model to modulate white noise based on context data.
- Translation Equivariance: By using convolutional layers, the GNP naturally handles shifted data, ensuring that predictions move consistently with the input context.
The GNP architecture provides a universal approximation guarantee, as it can approximate any translation-equivariant kernel map.
Experiments and Results
The GNP was evaluated on synthetic 1D regression benchmarks: Exponentiated Quadratic (EQ), Matérn–5/2, Weakly Periodic, Sawtooth, and a "Mixture" task sampling from all previous kernels.
Performance and GP Parity
On tasks where the ground truth was a GP (EQ and Matérn), the GNP achieved performance nearly identical to the true underlying GP. Notably, the GNP was the best-performing model on the non-Gaussian "Mixture" task. Its ability to accurately model the mean and correlations allowed it to outperform models specifically designed to handle non-Gaussianity.
Kernel Recovery
As shown in Figure 1, the GNP successfully recovers the underlying stationary prior covariance functions across diverse tasks.
Limitations and Future Work
While the GNP offers significant advantages, modeling the full covariance matrix introduces $O(N^3)$ computational costs, making it more expensive than standard CNPs. Future work will explore more efficient implementations of the positive semi-definite projection and extension of the model to higher-dimensional inputs like images. Additionally, the current implementation focuses on stationary ground truths, presenting an opportunity for expansion into non-stationary domains.
Summary updated