Sparse Gaussian Neural Processes

Tommy Rochussen, Vincent Fortuin · DOI

TL;DR

This paper introduces Sparse Gaussian Neural Processes (SGNP), a novel class of models that combine the interpretability of Gaussian Processes (GPs) with the scalability and meta-learning capabilities of Neural Processes (NPs). SGNP enables rapid, well-calibrated uncertainty predictions for new tasks by amortizing sparse GP inference, making it particularly useful when domain knowledge is available or when dealing with tasks that have many data points.

What Problem Does This Paper Address?

Deep learning models, while powerful, often lack interpretability, making practitioners hesitant to use them in high-stakes applications. Traditional methods like Gaussian Processes (GPs) offer interpretability and allow for the incorporation of domain expertise through prior elicitation. However, exact GP inference scales cubically with the number of data points, rendering it computationally prohibitive for tasks with many observations. Existing scalable GP approximations often require task-specific optimization of variational parameters, hindering rapid adaptation to new tasks. This paper addresses the challenge of achieving both interpretability and scalable, rapid, meta-learned inference for Gaussian Processes.

Methods

The core contribution is the development of Sparse Gaussian Neural Processes (SGNP). SGNP models are framed as a type of Neural Process (NP) that leverages amortized variational inference to learn the parameters of a sparse Gaussian Process (GP) posterior.

Here's a breakdown of the key techniques:

  • Sparse Variational Gaussian Processes (SVGP): The paper builds upon SVGP, which uses inducing points to approximate the GP posterior, reducing computational complexity.
  • Amortized Variational Inference (AVI): Instead of optimizing variational parameters for each new task, SGNP uses an "inference network" (a neural set function) to directly map task observations to these parameters. This allows for rapid, "one-shot" adaptation.
  • Neural Process Framework: SGNP is presented as a member of the Neural Process family. It has an encoder (the inference network) that maps context data to a representation (the inducing point parameters) and a decoder that uses this representation to make predictions.
  • Relationship-Preserving Inductive Bias: The authors emphasize building an inference network that explicitly models the relationship between inducing inputs (Z) and inducing output parameters (m, S), rather than treating them independently. This is achieved using specialized neural networks like ConvDeepSets.
  • Model Variants:
    • SGNP: The core model, which uses Titsias' equations for closed-form inference over inducing outputs when the likelihood is Gaussian.
  • ConvSGNP: Extends SGNP by using a Convolutional Neural Network (specifically ConvDeepSets) to parameterize the inducing output distribution, allowing for more complex priors.
  • s-ConvSGNP: A variant for classification that uses a hybrid approach, combining Titsias' equations with ConvDeepSets for interpolation, offering a replacement for SGNP in classification settings.

Datasets

The paper evaluates its models on:

  • Synthetic 1D Regression Dataset: Generated from a GP prior with a squared-exponential covariance function.
  • Synthetic 2D Classification Dataset: Generated from a Bernoulli distribution with a 2D SE covariance GP prior sample.
  • Tétouan City Power Consumption Dataset: A real-world dataset for modeling power consumption.

The authors also mention using meta-datasets of varying sizes (|Ξ| = 5, 1000) for training and evaluation.

Key Insights and Ideas

  • Bridging the Gap: SGNP successfully bridges the interpretability gap between traditional GPs and deep learning models like NPs, offering the best of both worlds.
  • Prior Elicitation for NPs: For the first time, SGNP allows for the manual elicitation of priors within a neural process framework, a crucial advantage when expert domain knowledge is available.
  • Task-Efficiency: By amortizing inference, SGNP significantly improves task efficiency, especially when the number of observed tasks in the meta-dataset is small.
  • Scalability with Interpretability: SGNP provides a scalable solution for tasks with many data points while retaining the interpretability of GPs.
  • Flexibility vs. Overfitting: The paper highlights that while full flexibility (like in standard NPs) can lead to overfitting with limited tasks, guiding an NP with prior elicitation (as in SGNP) leads to greater task-efficiency.

Key Results

  • Synthetic 1D Regression: SGNP outperformed ConvGNP and rivaled the oracle GP model in both data-rich and data-sparse settings. ConvGNP's performance degraded significantly with limited tasks, while SGNP remained strong.
  • Synthetic 2D Classification: ConvGNP and s-ConvSGNP achieved near oracle-level performance in the data-rich setting. In the data-sparse setting, s-ConvSGNP showed less degradation than ConvGNP and superior performance when the meta-dataset was small.
  • Tétouan City Power Consumption: SGNP significantly outperformed baseline NPs and either rivaled or outperformed a sparse GP regressor (SPGR). SGNP also matched the CNP in prediction speed. The ability to imbue prior knowledge was highlighted as a key advantage.
  • Computational Efficiency: SGNP models are computationally efficient, particularly in terms of prediction time, compared to traditional sparse GPs.

Limitations and Future Work

  • Limitations:
    • The paper notes that the ConvGNP's performance degrades significantly in data-sparse settings.
  • The authors acknowledge that the Titsias equations for SGNP are only optimal for Gaussian likelihoods, and they propose a workaround for classification.
  • The computational complexity of ConvDeepSets can become prohibitively large with high-dimensional data.
  • Future Work:
    • Hyperparameter Selection: Exploring methods to map task observations to task-specific hyperparameters.
  • Model Misspecification: Investigating alternative objective functions that might defend against model misspecification.
  • Extension to Other Variational Models: Applying the amortized inference framework to other variational models beyond GPs.
  • Improved Sparse GP Approximations: Leveraging better sparse GP approximations within the SGNP framework.
  • Meta-learning Sparse Bayesian Neural Networks: Extending the approach to meta-learn sparse Bayesian neural network inference.

Summary updated

BibTeX
@inproceedings{rochussen2025sparse,
  author = {Tommy Rochussen and Vincent Fortuin},
  title = {{Sparse Gaussian Neural Processes}},
  booktitle = {AABI Proceedings Track},
  year = {2025},
  url = {https://openreview.net/forum?id=abZvG81jBI},
}
Figure