Skip to main content
QUICK REVIEW

[Paper Review] Fast Learning of Clusters and Topics via Sparse Posteriors

Michael C. Hughes, Erik B. Sudderth|arXiv (Cornell University)|Sep 23, 2016
Bayesian Methods and Mixture ModelsComputer Science27 references7 citations
TL;DR

This paper proposes a sparse variational inference method that constrains local posterior distributions to assign non-zero probability to at most L clusters per observation, significantly accelerating training of mixture and topic models without sacrificing predictive performance. The method achieves faster convergence and better heldout likelihoods than dense or hard-assignment baselines, especially for large-scale datasets with K > 200 clusters.

ABSTRACT

Mixture models and topic models generate each observation from a single cluster, but standard variational posteriors for each observation assign positive probability to all possible clusters. This requires dense storage and runtime costs that scale with the total number of clusters, even though typically only a few clusters have significant posterior mass for any data point. We propose a constrained family of sparse variational distributions that allow at most $L$ non-zero entries, where the tunable threshold $L$ trades off speed for accuracy. Previous sparse approximations have used hard assignments ($L=1$), but we find that moderate values of $L>1$ provide superior performance. Our approach easily integrates with stochastic or incremental optimization algorithms to scale to millions of examples. Experiments training mixture models of image patches and topic models for news articles show that our approach produces better-quality models in far less time than baseline methods.

Motivation & Objective

  • To address the high computational and storage costs of standard variational inference in mixture and topic models, where full posterior distributions assign positive probability to all K clusters.
  • To develop a sparse variational posterior that limits each observation to at most L non-zero cluster assignments, enabling faster inference and reduced memory usage.
  • To demonstrate that moderate sparsity (L > 1) outperforms both dense inference (L = K) and hard assignments (L = 1) in terms of speed and predictive accuracy.
  • To enable efficient scaling to millions of examples using stochastic or incremental optimization, while maintaining compatibility with existing variational inference frameworks.

Proposed method

  • Introduces a constrained variational family where the local posterior q(z_n) has at most L non-zero entries, selected via top-L selection of responsibility scores.
  • Modifies the standard variational objective by adding a sparsity constraint that limits the number of active clusters per observation to L, with L as a tunable hyperparameter.
  • Uses efficient C++-accelerated selection algorithms (e.g., Blum-Floyd-Pratt) to compute the top-L responsibilities, enabling fast and scalable inference.
  • Integrates seamlessly with both mean-field variational inference (MVI) and stochastic variational inference (SVI), supporting incremental and minibatch training.
  • Employs a proof of optimality for the top-L selection procedure under the variational objective, showing it minimizes KL divergence among L-sparse posteriors.
  • Applies the method to Gaussian mixture models and LDA, using closed-form expectations for exponential family likelihoods and conjugate priors.

Experimental results

Research questions

  • RQ1Can constraining the variational posterior to at most L non-zero cluster assignments per observation significantly reduce computational cost in mixture and topic models without degrading model quality?
  • RQ2Is there an optimal value of L > 1 that balances speed and accuracy better than L = 1 (hard assignment) or L = K (dense posterior)?
  • RQ3How does the proposed sparse variational method scale to large datasets with hundreds of thousands to millions of observations and thousands of clusters?
  • RQ4Can the sparse posterior approach be efficiently integrated into existing stochastic and incremental inference frameworks without architectural changes?
  • RQ5Does the top-L selection procedure for sparse posteriors yield a provably optimal approximation under the variational objective?

Key findings

  • For K = 200 clusters, the L-sparse method with L = 8 achieved comparable heldout likelihood to dense inference (L = K) but completed training over 5× faster on a 3.6M patch dataset.
  • On the Wikipedia dataset (K = 800), MVI with L = 8 converged in under 200 seconds, while dense inference (L = K) required over 1000 seconds to reach similar performance.
  • Hard assignments (L = 1) consistently underperformed, often plateauing early or falling into poor local optima due to lack of flexibility in modeling word-topic ambiguity.
  • The L = 8 configuration achieved better or equal heldout likelihood than LightLDA and SparseLDA on the NYTimes dataset (1.8M articles), while training 3–5× faster.
  • SVIGibbs with S = 10 samples outperformed S = 5 on NYTimes, but increasing S beyond 10 provided no further gain, indicating diminishing returns.
  • The method scaled effectively to large K: LightLDA failed to catch up in performance within the time limit for K > 200, while L-sparse methods remained competitive and faster.

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.