Direct Loss Minimization for Sparse Gaussian Processes

Yadi Wei, Rishit Sheth, Roni Khardon

Abstract: The paper provides a thorough investigation of Direct Loss Minimization (DLM), which optimizes the posterior to minimize predictive loss, in sparse Gaussian processes. For the conjugate case, we consider DLM for log-loss and DLM for square loss showing a significant performance improvement in both cases. The application of DLM in non-conjugate cases is more complex because the logarithm of expectation in the log-loss DLM objective is often intractable and simple sampling leads to biased estimates of gradients. The paper makes two technical contributions to address this. First, a new method using product sampling is proposed, which gives unbiased estimates of gradients (uPS) for the objective function. Second, a theoretical analysis of biased Monte Carlo estimates (bMC) shows that stochastic gradient descent converges despite the biased gradients. Experiments demonstrate empirical success of DLM. A comparison of the sampling methods shows that, while uPS is potentially more sample-efficient, bMC provides a better tradeoff in terms of convergence time and computational efficiency.

Introduction

In Bayesian machine learning, the standard approach for training Sparse Gaussian Processes (sGPs) involves Variational Inference (VI) to maximize the Evidence Lower Bound (ELBO). This objective aims to find an approximate posterior that minimizes the KL-divergence to the true posterior. However, a posterior that is "close" in a KL sense does not necessarily yield optimal predictive performance, particularly under model misspecification or when using highly simplified approximations.

This paper proposes Direct Loss Minimization (DLM) for sGPs. Rather than approximating the true posterior, DLM optimizes model parameters to minimize the specific loss—such as Log-Loss or Mean Squared Error (MSE)—that will be encountered at test time.

Methodology

The primary challenge in DLM for Log-Loss is the "log-expectation" term: $\log \mathbb{E}[p(y|z)]$. Unlike the ELBO, where the logarithm is inside the expectation, differentiating a log outside an expectation is non-trivial. Standard Monte Carlo sampling leads to biased gradients, which theoretically complicates Stochastic Gradient Descent (SGD).

Technical Contributions

  1. Unbiased Product Sampling (uPS): The authors introduce a novel method for obtaining unbiased gradient estimates for log-expectation terms. This involves a specialized rejection sampler tailored for the 1D Gaussian distributions typical of sGP latent variables.
  2. Theoretical Analysis of Biased Monte Carlo (bMC): Recognizing the computational cost of unbiased sampling, the authors provide a theoretical proof using stochastic approximation theory that SGD converges to a stationary point even when using "naive" biased Monte Carlo estimates, provided certain conditions are met.
  3. Loss-Specific Objectives: The paper derives specific DLM objectives for various tasks, including regression (Log-loss and Square loss), classification (Probit regression), and count prediction (Poisson regression).
Table 4: Constants and bounds for various likelihood functions used in deriving DLM objectives.

Empirical Evaluation

The authors evaluated DLM against standard Stochastic Variational GP (SVGP) and Fully Independent Training Conditional (FITC) methods across several benchmarks: Sarcos (robotics regression), Cadata (housing regression), Ringnorm (synthetic classification), Peds1_dir2 (pedestrian count), and the large-scale Airline dataset.

Figure 3: Empirical performance of DLM across various tasks including regression (a, b), classification (d), and count regression (e), alongside sampling method comparisons (f-i).

Key Findings

  • Performance Gains: On the Sarcos dataset, DLM significantly outperformed SVGP and FITC in both Log-Loss and MSE. The results suggest that the "best" posterior is task-dependent; training for Square Loss yields a different, better-performing posterior for that specific metric than training for Log-Loss.
  • Scalability and Calibration: On the Airline dataset, DLM variants consistently outperformed $\beta$-ELBO (where regularization is tuned). Furthermore, DLM achieved superior calibration in non-conjugate tasks like classification without compromising raw accuracy.
  • Sampling Tradeoffs: While uPS is mathematically unbiased and more sample-efficient (requiring fewer samples for accuracy), the biased bMC method proved more practical due to lower per-iteration computational overhead.
  • Regularization: DLM often benefits from lower regularization ($\beta$ values) compared to standard ELBO, allowing the model to more tightly fit the predictive task.

Conclusion

Direct Loss Minimization offers a robust alternative to traditional Variational Inference for sGPs by aligning the training objective with test-time performance. While the log-expectation term introduces gradient bias, the authors demonstrate that both unbiased sampling (uPS) and theoretically-grounded biased sampling (bMC) are effective strategies for optimization. Future work may explore extending this framework to non-differentiable losses and higher-dimensional latent spaces.

Summary updated

BibTeX
@inproceedings{wei2021direct,
  author = {Yadi Wei and Rishit Sheth and Roni Khardon},
  title = {{Direct Loss Minimization for Sparse Gaussian Processes}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
  url = {https://openreview.net/forum?id=rjTPFumcOM},
}
Figure