Papers
Topics
Authors
Recent
Search
2000 character limit reached

Pareto Smoothed Importance Sampling (PSIS)

Updated 30 March 2026
  • Pareto Smoothed Importance Sampling (PSIS) is a framework that stabilizes importance sampling estimators by regularizing extreme weights via a generalized Pareto distribution.
  • It replaces the largest raw weights with smoothed estimates to reduce variance and improve reliability, making it effective for LOO-CV in Bayesian workflows.
  • PSIS provides a diagnostic through the estimated Pareto shape parameter, guiding model selection and flagging potential reliability issues in high-dimensional models.

Pareto Smoothed Importance Sampling (PSIS) is a framework for stabilizing importance sampling estimators, particularly in Bayesian computation and model evaluation contexts such as leave-one-out cross-validation (LOO-CV). PSIS addresses the high variance and instability associated with heavy-tailed importance weights by regularizing the extreme weights through a fit to the generalized Pareto distribution (GPD), simultaneously providing both a theoretically grounded estimator and a diagnostic for reliability via the estimated shape parameter of the GPD fit. This approach is widely adopted in modern Bayesian workflow, including model selection, posterior predictive checking, and diagnostics in high-dimensional and hierarchical models, and is integral to robust and efficient LOO-CV methodologies (Vehtari et al., 2015, Vehtari et al., 2015, Jiang et al., 2020, Yao et al., 2018).

1. Foundations of Importance Sampling and the High-Variance Problem

Importance sampling (IS) enables expectation estimation under a target distribution p(θ)p(\theta) when only draws from a proposal distribution q(θ)q(\theta) are accessible:

Ih=Ep[h(θ)]=h(θ)p(θ)dθI_h = \mathbb{E}_p[h(\theta)] = \int h(\theta)p(\theta)\,d\theta

I^hIS=s=1Srsh(θs)s=1Srs,rs=p(θs)q(θs)\hat I_h^{\rm IS} = \frac{\sum_{s=1}^S r_s\,h(\theta_s)}{\sum_{s=1}^S r_s}, \quad r_s = \frac{p(\theta_s)}{q(\theta_s)}

However, when rsr_s have a heavy right tail—typically due to discrepancies between qq and pp, especially in the tails—the estimator becomes dominated by a few extreme terms, resulting in very large or infinite variance. This adverse phenomenon is particularly severe in high-dimensional and complex models, where standard diagnostics can be misleading and Monte Carlo standard error estimation fails (Vehtari et al., 2015, Yao et al., 2018).

2. Pareto Smoothing: GPD Modeling of the Weight Tail

PSIS addresses the instability by substituting a portion of the largest raw weights with expected order statistics from a GPD fit. Let r1,,rSr_1,\dots,r_S be the unsorted raw weights. Define M=0.2SM=\lfloor 0.2 S \rfloor (or, in alternative formulations, M=min(S/5,3S)M=\min(S/5,3\sqrt S)). The tail threshold q(θ)q(\theta)0 is selected as the q(θ)q(\theta)1-th order statistic among sorted weights. The excesses above q(θ)q(\theta)2:

q(θ)q(\theta)3

are fit with a two-parameter GPD:

q(θ)q(\theta)4

Maximum likelihood or empirical Bayes (Zhang & Stephens, 2009) estimates q(θ)q(\theta)5 for the tail shape and scale (Vehtari et al., 2015, Yao et al., 2018). The q(θ)q(\theta)6-th largest weight is replaced by its GPD-expected order statistic:

q(θ)q(\theta)7

Weights below threshold q(θ)q(\theta)8 remain unchanged. All smoothed weights are optionally truncated at q(θ)q(\theta)9 (where Ih=Ep[h(θ)]=h(θ)p(θ)dθI_h = \mathbb{E}_p[h(\theta)] = \int h(\theta)p(\theta)\,d\theta0 denotes the mean smoothed weight) to guarantee finite variance (Vehtari et al., 2015, Vehtari et al., 2015).

3. The Pareto Shape Parameter and Diagnostic Interpretation

The core diagnostic in PSIS is the fitted Pareto shape parameter Ih=Ep[h(θ)]=h(θ)p(θ)dθI_h = \mathbb{E}_p[h(\theta)] = \int h(\theta)p(\theta)\,d\theta1, which quantifies the relative heaviness of the weight distribution tail. This parameter determines the existence of moments and the validity of asymptotic theorems:

  • Ih=Ep[h(θ)]=h(θ)p(θ)dθI_h = \mathbb{E}_p[h(\theta)] = \int h(\theta)p(\theta)\,d\theta2: finite weight variance, standard CLT applies, convergence rate Ih=Ep[h(θ)]=h(θ)p(θ)dθI_h = \mathbb{E}_p[h(\theta)] = \int h(\theta)p(\theta)\,d\theta3
  • Ih=Ep[h(θ)]=h(θ)p(θ)dθI_h = \mathbb{E}_p[h(\theta)] = \int h(\theta)p(\theta)\,d\theta4: infinite variance but finite mean, estimator converges slowly to a stable law
  • Ih=Ep[h(θ)]=h(θ)p(θ)dθI_h = \mathbb{E}_p[h(\theta)] = \int h(\theta)p(\theta)\,d\theta5: mean does not exist, estimator is unreliable (Vehtari et al., 2015, Jiang et al., 2020, Yao et al., 2018)

A practical warning threshold is Ih=Ep[h(θ)]=h(θ)p(θ)dθI_h = \mathbb{E}_p[h(\theta)] = \int h(\theta)p(\theta)\,d\theta6, above which the PSIS estimate is flagged as unreliable for the corresponding data point or observation. Sample-size-dependent rules such as Ih=Ep[h(θ)]=h(θ)p(θ)dθI_h = \mathbb{E}_p[h(\theta)] = \int h(\theta)p(\theta)\,d\theta7 may also be employed (Vehtari et al., 2015, Vehtari et al., 2015).

4. PSIS Algorithmic Steps for Leave-One-Out Cross-Validation

The PSIS-LOO procedure is used in Bayesian model evaluation to estimate predictive accuracy efficiently:

  1. Compute raw importance weights for each observation Ih=Ep[h(θ)]=h(θ)p(θ)dθI_h = \mathbb{E}_p[h(\theta)] = \int h(\theta)p(\theta)\,d\theta8 and posterior draw Ih=Ep[h(θ)]=h(θ)p(θ)dθI_h = \mathbb{E}_p[h(\theta)] = \int h(\theta)p(\theta)\,d\theta9: I^hIS=s=1Srsh(θs)s=1Srs,rs=p(θs)q(θs)\hat I_h^{\rm IS} = \frac{\sum_{s=1}^S r_s\,h(\theta_s)}{\sum_{s=1}^S r_s}, \quad r_s = \frac{p(\theta_s)}{q(\theta_s)}0.
  2. Sort and select the top I^hIS=s=1Srsh(θs)s=1Srs,rs=p(θs)q(θs)\hat I_h^{\rm IS} = \frac{\sum_{s=1}^S r_s\,h(\theta_s)}{\sum_{s=1}^S r_s}, \quad r_s = \frac{p(\theta_s)}{q(\theta_s)}1 weights for GPD fitting: I^hIS=s=1Srsh(θs)s=1Srs,rs=p(θs)q(θs)\hat I_h^{\rm IS} = \frac{\sum_{s=1}^S r_s\,h(\theta_s)}{\sum_{s=1}^S r_s}, \quad r_s = \frac{p(\theta_s)}{q(\theta_s)}2, I^hIS=s=1Srsh(θs)s=1Srs,rs=p(θs)q(θs)\hat I_h^{\rm IS} = \frac{\sum_{s=1}^S r_s\,h(\theta_s)}{\sum_{s=1}^S r_s}, \quad r_s = \frac{p(\theta_s)}{q(\theta_s)}3.
  3. Fit a GPD to the I^hIS=s=1Srsh(θs)s=1Srs,rs=p(θs)q(θs)\hat I_h^{\rm IS} = \frac{\sum_{s=1}^S r_s\,h(\theta_s)}{\sum_{s=1}^S r_s}, \quad r_s = \frac{p(\theta_s)}{q(\theta_s)}4 excesses I^hIS=s=1Srsh(θs)s=1Srs,rs=p(θs)q(θs)\hat I_h^{\rm IS} = \frac{\sum_{s=1}^S r_s\,h(\theta_s)}{\sum_{s=1}^S r_s}, \quad r_s = \frac{p(\theta_s)}{q(\theta_s)}5.
  4. Replace the top I^hIS=s=1Srsh(θs)s=1Srs,rs=p(θs)q(θs)\hat I_h^{\rm IS} = \frac{\sum_{s=1}^S r_s\,h(\theta_s)}{\sum_{s=1}^S r_s}, \quad r_s = \frac{p(\theta_s)}{q(\theta_s)}6 weights with their smoothed GPD quantiles.
  5. Truncate and normalize all weights.
  6. Estimate LOO predictive densities:

I^hIS=s=1Srsh(θs)s=1Srs,rs=p(θs)q(θs)\hat I_h^{\rm IS} = \frac{\sum_{s=1}^S r_s\,h(\theta_s)}{\sum_{s=1}^S r_s}, \quad r_s = \frac{p(\theta_s)}{q(\theta_s)}7

  1. Aggregate the expected log predictive density across all I^hIS=s=1Srsh(θs)s=1Srs,rs=p(θs)q(θs)\hat I_h^{\rm IS} = \frac{\sum_{s=1}^S r_s\,h(\theta_s)}{\sum_{s=1}^S r_s}, \quad r_s = \frac{p(\theta_s)}{q(\theta_s)}8 data points:

I^hIS=s=1Srsh(θs)s=1Srs,rs=p(θs)q(θs)\hat I_h^{\rm IS} = \frac{\sum_{s=1}^S r_s\,h(\theta_s)}{\sum_{s=1}^S r_s}, \quad r_s = \frac{p(\theta_s)}{q(\theta_s)}9

  1. Compute diagnostic rsr_s0 for each rsr_s1; flag those with rsr_s2 (Vehtari et al., 2015, Jiang et al., 2020).

In cases where a small number of rsr_s3 exceed the threshold, exact LOO refits for those points are recommended (PSIS-LOO+); for widespread failures, rsr_s4-fold cross-validation may be more appropriate (Vehtari et al., 2015).

5. Model Selection and Diagnostic Visualization

PSIS-LOO enables robust Bayesian model comparison. For each candidate model, rsr_s5 and its standard error are computed. Models are ranked by rsr_s6. If the difference in rsr_s7 between two models is less than one standard error, they are considered indistinguishable up to parsimony preference. The vector of rsr_s8 provides casewise influence diagnostics; values rsr_s9 warrant further investigation or targeted model refitting (Jiang et al., 2020).

Recommended diagnostic plots include:

  • PSIS k-diagnostic (scatter plot of qq0 vs qq1, colored by reliability thresholds): highlights problematic, high-leverage observations.
  • Posterior predictive check plots: overlays of observed data density and densities from replicated datasets generated under the posterior predictive distribution (Jiang et al., 2020).

6. Comparison to Alternative Stabilization Methods

Truncated importance sampling (TIS) and winsorization mitigate heavy-tailed weights by direct thresholding. TIS truncates at qq2, achieving finite variance at the cost of increased bias. Winsorization uses a fixed quantile cutoff. Neither provide a continuous or scale-free diagnostic such as qq3. PSIS replaces the top qq4 weights smoothly according to empirical tail shape, delivering lower root mean square error (RMSE) than TIS and IS, lower bias than TIS, and robust MCSE estimation as long as qq5 (Vehtari et al., 2015).

Empirical findings demonstrate that PSIS achieves superior bias-variance tradeoffs and accurate diagnostics in Bayesian linear/logistic regression and hierarchical models—most notably, identifying pathologies in variational approximations and non-centered parametrizations (Yao et al., 2018).

7. Implementation and Practical Usage

PSIS is implemented in standard Bayesian workflow libraries, notably the R package loo, compatible with Stan. The computational overhead is negligible relative to MCMC, as the dominant costs are likelihood evaluations and GPD fits. Standard usage involves extraction of the qq6 matrix of log-likelihood values and one-line function calls for PSIS-LOO computations and model comparisons (Vehtari et al., 2015). Monte Carlo error and effective sample size estimates are also provided as part of the PSIS framework:

qq7

qq8

Practical recommendations are to always inspect the qq9 distribution. If problematic values are few, employ PSIS-LOO+; if many, consider alternative cross-validation strategies (Vehtari et al., 2015). PSIS is routinely employed for posterior predictive checks, model selection, and diagnostics in high-stakes Bayesian inference and applied statistical modeling (Jiang et al., 2020, Vehtari et al., 2015).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Pareto Smoothed Importance Sampling (PSIS).