Skip to main content
QUICK REVIEW

[Paper Review] SAME but Different: Fast and High-Quality Gibbs Parameter Estimation

Huasha Zhao, Biye Jiang|arXiv (Cornell University)|Sep 18, 2014
Gaussian Processes and Bayesian InferenceComputer Science17 references9 citations
TL;DR

This paper proposes a GPU-accelerated Gibbs sampling method using State Augmentation for Marginal Estimation (SAME) to improve parameter estimation in probabilistic models like Latent Dirichlet Allocation (LDA). By sampling multiple copies of latent variables in parallel and cooling the posterior distribution, SAME enables faster convergence and higher-quality MAP estimates, achieving performance comparable to the fastest symbolic methods while maintaining sampling-based quality advantages.

ABSTRACT

Gibbs sampling is a workhorse for Bayesian inference but has several limitations when used for parameter estimation, and is often much slower than non-sampling inference methods. SAME (State Augmentation for Marginal Estimation) \cite{Doucet99,Doucet02} is an approach to MAP parameter estimation which gives improved parameter estimates over direct Gibbs sampling. SAME can be viewed as cooling the posterior parameter distribution and allows annealed search for the MAP parameters, often yielding very high quality (lower loss) estimates. But it does so at the expense of additional samples per iteration and generally slower performance. On the other hand, SAME dramatically increases the parallelism in the sampling schedule, and is an excellent match for modern (SIMD) hardware. In this paper we explore the application of SAME to graphical model inference on modern hardware. We show that combining SAME with factored sample representation (or approximation) gives throughput competitive with the fastest symbolic methods, but with potentially better quality. We describe experiments on Latent Dirichlet Allocation, achieving speeds similar to the fastest reported methods (online Variational Bayes) and lower cross-validated loss than other LDA implementations. The method is simple to implement and should be applicable to many other models.

Motivation & Objective

  • To address the slow convergence and poor scalability of standard Gibbs sampling for MAP parameter estimation in high-dimensional models.
  • To improve the quality of parameter estimates by cooling the posterior distribution using state augmentation, enabling annealed search for better optima.
  • To leverage modern SIMD hardware (GPU) to accelerate sampling and achieve performance competitive with symbolic inference methods.
  • To demonstrate that sampling-based methods can match or exceed the speed of state-of-the-art symbolic approaches like online variational Bayes while retaining higher estimation quality.
  • To develop a practical, high-performance implementation of SAME for LDA that is simple to deploy and extendable to other graphical models.

Proposed method

  • Introduces a joint distribution over m independent copies of the latent variables Z^(1), ..., Z^(m) with tied parameters Θ, effectively creating a cooled posterior P^m(Θ|X).
  • Uses the fact that P^m(Θ|X) is proportional to P^m(Θ|X), which sharpens the peaks of the posterior and facilitates convergence to high-quality MAP estimates.
  • Applies Gibbs sampling to the augmented system, where each copy Z^(j) is updated independently, enabling massive parallelism on GPU architectures.
  • Employs a factored sample representation to approximate the posterior, reducing computational cost while preserving estimation accuracy.
  • Uses a controllable inverse temperature parameter m = 1/(kT) to enable annealing, gradually increasing m to refine parameter estimates.
  • Optimizes the implementation using GPU kernels to process all m copies in parallel, achieving high throughput on modern hardware.

Experimental results

Research questions

  • RQ1Can SAME-based Gibbs sampling achieve parameter estimation quality comparable to symbolic methods like variational inference?
  • RQ2Does the parallelism introduced by multiple copies of latent variables enable performance competitive with the fastest symbolic inference methods?
  • RQ3Can GPU acceleration make sampling-based MAP estimation as fast as or faster than state-of-the-art cluster-scale implementations of Gibbs sampling?
  • RQ4How does annealing the number of copies m affect convergence speed and final estimation quality?
  • RQ5Can the combination of factored sampling and SAME provide a practical, high-performance inference framework for general graphical models?

Key findings

  • The SAME Gibbs sampler achieved convergence in 90 seconds on the NYTimes dataset with K=256, outperforming CPU-based implementations that required 60–70 hours.
  • The GPU-accelerated SAME GS method was 4× faster than a 100-node cluster implementation of collapsed Gibbs sampling (CGS), which took 2000 minutes to converge.
  • With m=100, the runtime per iteration was only 30 seconds, and increasing m to 500 added only 20 seconds, demonstrating low marginal cost due to GPU parallelism.
  • The method achieved lower cross-validated loss than other LDA implementations, indicating higher-quality parameter estimates than competing sampling and variational methods.
  • The performance of the SAME GS method was within a factor of 3 of online variational Bayes (VB) in runtime, while achieving better estimation quality.
  • Dynamic annealing schedules (linear, logarithmic, inverse-linear) showed no significant advantage over fixed m=100, suggesting that constant sampling size is sufficient and effective.

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.