Skip to main content
QUICK REVIEW

[Paper Review] Bayesian leave-one-out cross-validation for large data

Måns Magnusson, Michael Riis Andersen|arXiv (Cornell University)|Apr 24, 2019
Statistical Methods and Bayesian InferenceMathematics16 citations
TL;DR

This paper proposes a scalable Bayesian leave-one-out cross-validation (LOO-CV) method for large datasets by combining approximate inference (e.g., Laplace, ADVI) with probability-proportional-to-size (PPS) subsampling. It achieves consistent estimation of expected log predictive density (elpd) with diagnostic tools like the Pareto-k shape parameter to assess approximation quality and subsampling uncertainty.

ABSTRACT

Model inference, such as model comparison, model checking, and model selection, is an important part of model development. Leave-one-out cross-validation (LOO) is a general approach for assessing the generalizability of a model, but unfortunately, LOO does not scale well to large datasets. We propose a combination of using approximate inference techniques and probability-proportional-to-size-sampling (PPS) for fast LOO model evaluation for large datasets. We provide both theoretical and empirical results showing good properties for large data.

Motivation & Objective

  • Address the computational infeasibility of standard LOO-CV for large datasets, where full posterior estimation is required for each left-out observation.
  • Overcome the scalability bottleneck of MCMC and importance sampling by leveraging posterior approximations and subsampling.
  • Ensure consistent estimation of expected log predictive density (elpd) under large-sample asymptotics while maintaining accuracy.
  • Provide diagnostics—specifically the Pareto-k shape parameter and variance of the HH estimator—to assess the reliability of posterior approximations and subsampling uncertainty.
  • Enable practical model comparison and selection in large-scale Bayesian modeling by reducing computational cost without sacrificing statistical consistency.

Proposed method

  • Use probability-proportional-to-size (PPS) sampling to draw a representative subsample from the full dataset, reducing the number of LOO computations.
  • Apply posterior approximations (e.g., Laplace, mean-field ADVI) to estimate the full posterior once, then reuse it for all LOO computations via importance sampling.
  • Employ Pareto-smoothed importance sampling (PSIS) to stabilize the importance ratios used in estimating log predictive densities for each left-out observation.
  • Use the estimated shape parameter $\hat{k}$ from the generalized Pareto distribution to diagnose poor posterior approximations and identify high-leverage observations.
  • Estimate the variance of the hierarchical Horvitz-Thompson (HH) estimator to quantify uncertainty due to subsampling, enabling precision assessment.
  • Combine subsampling with PSIS-LOO to compute $\widehat{\text{elpd}}_{\text{loo}}$ efficiently while maintaining consistency for regular models and robustness in finite samples.

Experimental results

Research questions

  • RQ1Can LOO-CV be made computationally feasible for large datasets without sacrificing statistical consistency?
  • RQ2How well do common posterior approximations (e.g., Laplace, ADVI) perform in the context of PSIS-LOO for large-scale model evaluation?
  • RQ3To what extent does PPS subsampling preserve the accuracy of LOO-CV estimates compared to full LOO-CV?
  • RQ4Can diagnostic tools like the $\hat{k}$ shape parameter reliably identify unreliable posterior approximations in large-data settings?
  • RQ5What is the trade-off between computational efficiency and estimation precision when using subsampled LOO-CV with approximate posteriors?

Key findings

  • The proposed method achieves consistent estimation of $\text{elpd}_{\text{loo}}$ under large-sample asymptotics, even when using approximate posteriors like Laplace and mean-field ADVI.
  • For regular models, the method maintains consistency and accuracy, with $\hat{k}$ diagnostics effectively identifying poor posterior approximations—e.g., high $\hat{k} > 0.7$ indicates unreliable estimates.
  • Using a subsample of size 500, the method achieves sufficient precision for model comparison in less than 2 seconds with Laplace approximation, compared to ~35 seconds with full MCMC.
  • The variance of the HH estimator ($v(\widehat{\text{elpd}}_{\text{loo}})$) provides a reliable measure of uncertainty due to subsampling, with $\sigma_{\text{loo}} \approx 90$ across all models.
  • In a real-data example, the method correctly identified model 6 (variable intercept and slope) as superior to model 4, with a difference in $\text{elpd}_{\text{loo}}$ of 220 ± 26, matching results from full MCMC.
  • The method outperforms 10-fold cross-validation in computational efficiency while yielding comparable conclusions, avoiding the need to retrain models 10 times.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.