Particle Filtered MCMC-MLE with Connections to Contrastive Divergence

Arthur U. Asuncion, Qiang Liu, Alexander T. Ihler, Padhraic Smyth

Introduction

Learning undirected graphical models—such as Boltzmann machines or Markov Random Fields—is a cornerstone of machine learning, but it is notoriously computationally expensive. The primary bottleneck is the partition function (the normalizing constant), which is usually intractable to calculate exactly.

To circumvent this, researchers often rely on MCMC-MLE, which uses importance sampling to approximate the gradient of the likelihood. However, MCMC-MLE suffers from a "memory" problem: as model parameters change during optimization, older samples no longer accurately represent the new distribution. This leads to "sample impoverishment," resulting in noisy and unreliable gradient estimates. While Persistent Contrastive Divergence (PCD) mitigates this by constantly updating samples, it can be computationally heavy because it forces Markov Chain Monte Carlo (MCMC) updates at every single iteration.

This paper introduces a "Particle Filtered" version of MCMC-MLE to address the difficulties of learning undirected graphical models. By treating the optimization process as a sequence of evolving distributions and using importance sampling with adaptive "rejuvenation" steps, the authors create an algorithm that is more robust than standard MCMC-MLE and often faster than PCD.

Particle Filtered MCMC-MLE

The authors propose Particle Filtered MCMC-MLE (PF). Instead of relying on standard importance sampling, they cast the learning process into a Sequential Monte Carlo (SMC) framework. Key components of this approach include:

  • Importance Weights: The algorithm tracks how well current samples (particles) represent the evolving model.
  • Effective Sample Size (ESS) Monitoring: ESS is calculated to check the "health" or diversity of the particle set.
  • Adaptive Resampling & Rejuvenation: If the ESS drops below a specific threshold—indicating that the samples are becoming degenerate—the algorithm resamples the particles and performs a few MCMC "rejuvenation" steps to restore diversity.
  • Unified View: A major theoretical contribution is demonstrating that PCD is actually a special case of this PF framework, specifically where importance weights are ignored (fixed to 1) and rejuvenation is forced at every step.

Experimental Setup

The authors evaluated their approach across four distinct types of models:

  1. Visible Boltzmann Machines (VBM): A small synthetic model (15 variables) where exact likelihoods could be calculated for ground-truth comparison.
  2. Exponential Random Graph Models (ERGM): Used in social network analysis to model "triads" and edge connections.
  3. Conditional Random Fields (CRF): Applied to a binary image denoising task using an X-shaped synthetic image.
  4. Restricted Boltzmann Machines (RBM): Tested on the classic MNIST handwritten digit dataset for classification.

Key Insights

  • PCD is "Forced" PF: The realization that PCD is essentially a particle filter that refuses to use weights and rejuvenates constantly is a powerful theoretical bridge. It suggests that PCD might be doing more work than necessary in some phases of learning.
  • Efficiency through Sparsity: Because the PF approach only rejuvenates when the ESS is low, it can skip expensive MCMC steps when the samples are still "good enough." This makes it computationally more efficient than PCD in several scenarios.
  • Weight Smoothing: In high-dimensional spaces (like RBMs on MNIST), weights can degenerate quickly. The authors introduced a "temperature" heuristic to smooth the weights, helping the particle filter maintain stability even when the parameter space moves rapidly.

Key Results

The Particle Filtered approach demonstrated strong performance across multiple metrics:

  • Speed and Robustness: For Visible Boltzmann Machines, PF achieved the same likelihood levels as PCD but in significantly less time because it was able to skip unnecessary rejuvenation steps. Furthermore, while standard MCMC-MLE showed high variance and sensitivity to initialization, the PF approach remained stable across different starting points.
Test log-likelihood over epochs and time, demonstrating PF's faster convergence compared to PCD and MCMC-MLE.
  • Accuracy: In the ERGM experiments, the PF approach significantly outperformed both standard MCMC-MLE and PCD in terms of L1 error relative to ground-truth parameters.
L1 error over time and across 100 models, showing PF significantly outperforms standard MCMC-MLE and PCD.
  • MNIST Performance: On the RBM task, PF outperformed standard MCMC-MLE and Contrastive Divergence (CD-1), though it required the temperature-smoothing trick to match the accuracy of PCD.

Limitations and Future Work

The primary limitation of the proposed method is weight degeneracy. If the learning rate is too high, the parameters move so fast that the particles become irrelevant almost instantly. This forces the algorithm to resample and rejuvenate at every step, effectively turning it back into a version of PCD.

To address this, the authors suggest that future work could integrate more advanced techniques into the framework, such as:

  • Parallel Tempering: To better explore multi-modal distributions.
  • Newton’s Method: Using second-order information to navigate the parameter space more efficiently.
  • Adaptive Learning Rates: Automatically adjusting the step size to maintain a healthy ESS for longer periods.

Summary updated

BibTeX
@inproceedings{asuncion2010particle,
  author = {Arthur U. Asuncion and Qiang Liu and Alexander T. Ihler and Padhraic Smyth},
  title = {{Particle Filtered MCMC-MLE with Connections to Contrastive Divergence}},
  booktitle = {International Conference on Machine Learning},
  year = {2010},
}
Figure