Menu Big Learning

Scalable inference

Inference asks what an observed dataset implies about quantities a model leaves hidden. A collection of documents makes the difficulty concrete. The words are visible, while the topics that might explain them are not.

Small dark beads in shallow counting trays viewed from overhead.
Samples and their distributions

Topics behind the words

Latent Dirichlet allocation, often shortened to LDA, describes a document as a mixture of topics and a topic as a distribution over words. A sports article can use a little political vocabulary, and the same word can appear under several topics. Fitting the model means estimating these hidden quantities from patterns of use across documents.

When the collection becomes very large, repeatedly visiting every word to improve a global estimate is expensive. David Blei’s 2012 keynote used this example to explain stochastic variational inference.

Two families of approximation

Variational inference
Choose a family of tractable distributions and optimize a member of that family to approximate the posterior. The family chosen limits the dependencies the approximation can express.
Markov chain Monte Carlo
Construct a sequence of draws whose long-run distribution is the target. Successive draws usually depend on each other. The number of draws is only part of the story when assessing the evidence they provide.

Online LDA uses groups of documents to update shared topic estimates. It can work through a collection in pieces or incorporate new documents over time. There is still a distinction between uncertainty in the model and error introduced by fitting an approximation.

Dependencies in a sampler

It is tempting to give each worker a different part of a dataset and ask it to sample independently. The mathematical question is whether the draws can be combined without changing the target distribution. A speedup is of little value if the resulting samples describe the wrong quantity.

A 2012 contributed talk proposed parallel sampling for Dirichlet process mixtures. The 2013 paper by Yarin Gal and Zoubin Ghahramani examined pitfalls in this setting. Reading the two programs together shows why a claim of independence deserves close attention.

A bootstrap answers a different question by resampling the observations to study variability in an estimate. Its computational cost also featured in the workshop papers, including methods for very large datasets and for time series.

Further reading