Input Dependent Sparse Gaussian Processes

Bahram Jafrasteh, Carlos Villacampa-Calvo, Daniel Hernández-Lobato

Gaussian Processes (GPs) are widely considered the "gold standard" for non-parametric modeling. Because they are Bayesian models, they provide excellent uncertainty estimates—they don't just output a prediction; they quantify their confidence in that prediction. However, GPs suffer from a notorious "cubic cost" problem: as the number of training instances ($N$) grows, the computational cost scales by $\mathcal{O}(N^3)$, making them notoriously difficult to scale to large datasets.

To mitigate this, researchers typically rely on Sparse GPs. This approach approximates the full dataset using a smaller set of $M$ "inducing points" (representative landmarks), reducing the computational cost to $\mathcal{O}(M^3)$. The catch? For complex functions or large datasets, achieving good predictive performance might still require thousands of inducing points, making the $\mathcal{O}(M^3)$ cost prohibitively expensive once again. Furthermore, these inducing points are usually fixed in the input space after training, regardless of which specific data point the model is trying to predict.

This paper introduces Input Dependent Sparse Gaussian Processes (IDSGP), a method that significantly scales up GPs by making their landmark points dynamic and data-driven.

The IDSGP Approach: Amortized Variational Inference

The authors propose a fundamental shift in perspective: instead of learning a fixed, global set of inducing points for the entire model, why not learn a function that generates the optimal inducing points for a specific input?

To achieve this, IDSGP uses a Deep Neural Network (DNN) as an "inference engine" to amortize the selection of these points.

Neural network architecture for amortized inference

When the DNN receives an input data point $x_i$, it outputs:

  1. The locations of the inducing points ($Z$).
  2. The mean ($m$) and variance ($L$ or $S$) parameters for the approximate posterior distribution.

Because the inducing points now depend directly on the input $x_i$, the model can dynamically "focus" its representative power exactly where the latent function is changing most rapidly for that specific region of the input space. The authors derive a new Variational Lower Bound (ELBO) that accounts for this input-dependent prior, proving that even though the inducing points change per input, the underlying GP prior remains mathematically consistent.

Key Insights and Efficiency Gains

The most striking advantage of IDSGP is the massive reduction in the required number of inducing points ($M$). While standard sparse GPs often require $M=1024$ points to perform well on complex tasks, IDSGP achieves better or similar results with as few as $M=15$ points for regression and $M=3$ for classification.

Comparison of sparse GP methods on a 1D regression task

By making inducing points input-dependent, the model effectively has access to an infinite number of "virtual" inducing points across the whole space, even though it only computes a tiny handful for any single prediction. This bridges the gap between the feature-learning power of neural networks (which handle the "where to look") and the rigorous uncertainty quantification of GPs (which handle the "what is the uncertainty").

Experimental Results

The authors evaluated IDSGP against several state-of-the-art sparse GP methods (like VSGP, SOLVE, and SWSGP) across a wide range of benchmarks, from 1D toy problems to massive real-world datasets.

  • Predictive Performance: In regression tasks, IDSGP obtained the best results in 6 out of 8 UCI datasets (e.g., Kin40k, Protein, Song) and achieved the best average rank across all tests.
  • Speed: Because $M$ is kept incredibly small, IDSGP is significantly faster. On the Kin40k dataset, IDSGP's training time per epoch was roughly 190 seconds, compared to 591 seconds for standard VSGP and 1739 seconds for SOLVE.
  • Extreme Scalability: The authors successfully trained the model on the massive Yellow Taxi dataset, which contains approximately 1 billion points. This demonstrates that IDSGP can handle "Big Data" scales that were previously unthinkable for standard GP implementations.

Limitations and Future Work

While highly effective, IDSGP does have a few limitations:

  • Neural Network Architecture: The model's performance is inherently tied to the choice of the DNN architecture. While the authors suggest keeping the NN small to maintain computational gains, there isn't a strict "one-size-fits-all" rule for designing this network.
  • Objective Bias: Reusing samples to approximate expectations might introduce a small bias in the objective function, though empirical results suggest this does not negatively impact practical performance.
  • Joint Covariances: The model excels at individual predictions, but computing joint predictive covariances for large batches requires averaging across different sets of inducing points, which remains an area for further refinement.

Summary updated

BibTeX
@inproceedings{jafrasteh2022input,
  author = {Bahram Jafrasteh and Carlos Villacampa-Calvo and Daniel Hernández-Lobato},
  title = {{Input Dependent Sparse Gaussian Processes}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=HL_qE4fz-JZ},
}
Figure