NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Gaussian Neural Processes for Regression

Stratis Markou, James Requeima, Wessel P. Bruinsma, Richard E. TurnerarXiv 2021

Abstract

Conditional Neural Processes (CNP) are an attractive family of meta-learning models which produce well-calibrated predictions, enable fast inference at test time, and are trainable via a simple maximum likelihood procedure. A limitation of CNPs is their inability to model dependencies in the outputs. This significantly hurts predictive performance and renders it impossible to draw coherent function samples, which limits the applicability of CNPs in down-stream applications and decision making. Neural Processes (NPs) attempt to alleviate this issue by using latent variables, relying on these to model output dependencies, but introduces difficulties stemming from approximate inference. One recent alternative, the FullConvGNP, models dependencies in the predictions while still being trainable via exact maximum-likelihood. Unfortunately, the FullConvGNP relies on expensive 2D-dimensional convolutions, which limit its applicability to only one-dimensional data. In this work, we present an alternative way to model output dependencies which also lends itself maximum likelihood training but, unlike the FullConvGNP, can be scaled to two- and three-dimensional data. The proposed models exhibit good performance in synthetic experiments.

Introduction

In meta-learning, Conditional Neural Processes (CNPs) serve as a flexible middle ground between neural networks and Gaussian Processes (GPs). However, standard CNPs are "mean-field" models, meaning they predict the probability of each point independently. This independence assumption is a significant drawback; for instance, a mean-field model cannot accurately capture the probability of a continuous event (like sustained rainfall) because it treats every moment as a separate, unrelated event. This results in "broken" predictions where function samples appear as jagged noise rather than smooth, physical processes.

Gaussian Neural Processes (GNPs)

To address these limitations, we introduce Gaussian Neural Processes (GNPs). Instead of predicting independent mean and variance for each point, GNPs parameterize a full covariance matrix $\mathbf{K}$. This allows the model to capture the relationships between different points in the output space. We propose two efficient parameterizations for this covariance matrix:

  1. Linear Covariance: Uses a finite set of learned basis functions. This approach scales linearly with the number of points, offering high efficiency at the cost of some expressiveness.
  2. KVV Covariance: Combines a standard kernel with a learned scaling function $v$, allowing the model to adapt its uncertainty based on context data.

These methods can be integrated into existing architectures like Convolutional (ConvCNPs) or Attentive (AGNPs) models, providing a drop-in improvement for modeling dependencies.

Experimental Results

We evaluated the GNP family on synthetic datasets generated from GPs with various kernels: Exponentiated Quadratic (EQ), Matern 5/2, Noisy Mixture, and Weakly Periodic.

Quantitative Performance

Modeling correlations significantly boosts predictive log-likelihood across all tested kernels. As shown in the performance metrics, the ConvGNP (kvv) variant consistently matches or nears the performance of the "gold standard" FullConvGNP while maintaining better scalability.

Log-likelihood performance of various GNP architectures across different synthetic kernels compared to GP Oracles.

Qualitative Coherence

A key advantage of GNPs is the ability to draw coherent function samples. While mean-field models produce samples that look like white noise, GNPs generate smooth, physically plausible functions that closely resemble the ground truth. This is particularly evident in the comparison of predictive samples across different architectures.

Qualitative comparison of predictive means and samples. GNPs produce smooth, coherent samples that match the underlying process physics, unlike mean-field approximations.

Conclusion and Future Work

Gaussian Neural Processes provide a scalable and efficient way to model output dependencies in Neural Processes. By utilizing analytic Gaussian predictive distributions, they avoid the training complexities associated with latent-variable models while outperforming them in regression tasks. Future work will focus on addressing the cubic scaling of the KVV method and applying these models to complex, real-world multi-dimensional data such as weather patterns and financial time series.

Summary updated

BibTeX
@misc{markou2021efficient,
  author = {Stratis Markou and James Requeima and Wessel P. Bruinsma and Richard E. Turner},
  title = {{Efficient Gaussian Neural Processes for Regression}},
  year = {2021},
  eprint = {2108.09676},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.09676},
}
Figure