Parallel Markov Chain Monte Carlo for the Indian Buffet Process
Michael M. Zhang, Avinava Dubey, Sinead A. Williamson

TL;DR
This paper introduces a novel parallel MCMC algorithm for Indian Buffet Process models that achieves asymptotically exact inference by exploiting feature independence and combining collapsed and uncollapsed sampling.
Contribution
It presents a hybrid parallel MCMC method that improves inference efficiency and accuracy for IBP models by partitioning features and collapsing the infinite tail.
Findings
Achieves asymptotically exact posterior samples.
Enables parallel inference without approximation.
Improves mixing over previous methods.
Abstract
Indian Buffet Process based models are an elegant way for discovering underlying features within a data set, but inference in such models can be slow. Inferring underlying features using Markov chain Monte Carlo either relies on an uncollapsed representation, which leads to poor mixing, or on a collapsed representation, which leads to a quadratic increase in computational complexity. Existing attempts at distributing inference have introduced additional approximation within the inference procedure. In this paper we present a novel algorithm to perform asymptotically exact parallel Markov chain Monte Carlo inference for Indian Buffet Process models. We take advantage of the fact that the features are conditionally independent under the beta-Bernoulli process. Because of this conditional independence, we can partition the features into two parts: one part containing only the finitely many…
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14
Figure 15
Figure 16
Figure 17
Figure 18Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBayesian Methods and Mixture Models · Statistical Methods and Inference · Markov Chains and Monte Carlo Methods
Parallel Markov Chain Monte Carlo for the Indian Buffet Process
Michael M. Zhang
Department of Statistics and Data Science
The University of Texas at Austin
Austin, TX 78712
&Avinava Dubey
Machine Learning Department
Carnegie Mellon University
Pittsburgh, PA 15213
&Sinead A. Williamson
McCombs School of Business
The University of Texas at Austin
Austin, TX 78712
Abstract
Indian Buffet Process based models are an elegant way for discovering underlying features within a data set, but inference in such models can be slow. Inferring underlying features using Markov chain Monte Carlo either relies on an uncollapsed representation, which leads to poor mixing, or on a collapsed representation, which leads to a quadratic increase in computational complexity. Existing attempts at distributing inference have introduced additional approximation within the inference procedure. In this paper we present a novel algorithm to perform asymptotically exact parallel Markov chain Monte Carlo inference for Indian Buffet Process models. We take advantage of the fact that the features are conditionally independent under the beta-Bernoulli process. Because of this conditional independence, we can partition the features into two parts: one part containing only the finitely many instantiated features and the other part containing the infinite tail of uninstantiated features. For the finite partition, parallel inference is simple given the instantiation of features. But for the infinite tail, performing uncollapsed MCMC leads to poor mixing and hence we collapse out the features. The resulting hybrid sampler, while being parallel, produces samples asymptotically from the true posterior.
1 Introduction
The Indian Buffet Process (IBP) [5] has proven to be a popular Bayesian non-parametric model for discovering underlying features within a data set. More explicitly, the IBP places a probability distribution over a binary matrix which indicates the presence of a particular feature for observation . The non-parametric nature of the IBP means that we assume, a priori, an infinite number of features, though only a finite number of those will be present a posteriori.
The non-parametric nature of the IBP for feature discovery is very attractive in situations where the number of latent objects is unknown. However, more and more applications of Bayesian machine learning are focused towards “big data” settings, where the number of observations is extremely large. If we consider an extremely large data set then the uncollapsed and collapsed samplers detailed in [5] will be ineffective–the uncollapsed sampler will mix poorly as the the dimensionality of the data increases, and the computational complexity of the collapsed sampler grows quadratically. [2] presents an accelerated sampler for the IBP that exhibits the mixing quality of a collapsed sampler with the speed of an uncollapsed sampler.
If we were in a “big data” situation in which we cannot even hold our data on one machine, we then would need to perform parallel inference for the IBP. Comparatively fewer research exists on parallel inference for the IBP than for other popular Bayesian non-parametric models, like the Dirichlet Process mixture model [4, 8]. [1] and [7] offer parallelizable solutions. But heretofore, only [3] has developed a parallel inference algorithm, and unlike the hybrid algorithm proposed in this paper, that algorithm is not asymptotically exact.
Our method is a hybrid Markov chain Monte Carlo (MCMC) algorithm that, asymptotically, will sample from the true posterior distribution. We exploit conditional independencies between features so that we may distribute inference for the binary matrix across processors. Like the accelerated sampler of [2], our algorithm takes advantage of the speed of the uncollapsed algorithm along with the efficient mixing of the collapsed algorithm.
2 Latent feature modeling using the Indian Buffet Process
The IBP is a distribution over binary matrices with infinitely many columns and exchangeable rows. This matrix can be used to select finite subsets of an unbounded set of latent features. For example, we can combine the IBP-distributed matrix with a set of normally distributed features, , to get a latent feature model appropriate for real-valued images:
[TABLE]
We can think of the IBP as arising out of the infinite limit, as , of an matrix with entries generated according to
[TABLE]
Note that under this construction, the columns of are independent. If we take and marginalize out the beta random variables, we obtain a distribution over exchangeable matrices. We can describe the predictive distribution of this sequence using the following restaurant analogy: Customers enter a buffet restaurant with infinitely many dishes (representing columns). The first customer selects a number of dishes (non-zero entries). The th customer selects each previously-sampled dish with probability , where is the number of customers who have already taken the th dish. The th customer then selects a number of new dishes.
Both the beta-Bernoulli and the restaurant analogies suggest inference schemes. We can instantiate the , either using a finite-dimensional approximation as in Equation 2, or by using a truncation of the full infinite sequence as described by [7]. This approach is inherently parallelizable, since the rows of are conditionally independent given the . However, previously unseen features must be globally instantiated. As the dimensionality of our data grows, the chance of sampling a “good” previously unseen feature decreases, leading to slow mixing (as observed by [2]).
Alternatively, we can integrate out the features and work in the collapsed restaurant representation. But this is difficult to parallelize, since the probability of selecting a feature depends on the global number of observations exhibiting that feature. Furthermore, each time a new feature is instantiated, that new feature must be communicated to all processors. The only existing parallel inference algorithm for the IBP uses approximations to avoid constantly updating the feature counts.
3 The hybrid algorithm for parallel MCMC
As we saw in Section 2, there are disadvantages to using both the collapsed and the uncollapsed representation, particularly in a distributed setting. We choose a third path, combining collapsed and uncollapsed methods in a hybrid approach. We note that the uncollapsed algorithm will generally perform well when working with popular features, where we are able to make use of information across processors about that feature’s location. However, it will perform poorly when it comes to instantiating new features. Conversely, the collapsed algorithm performs well at introducing new features, but cannot be exactly parallelized without significant overhead.
We note that, as implied by Equation 2, we can split into two conditionally independent sub-matrices, one containing the first features, and the other containing the remaining features. We partition our features so that the currently instantiated features are in the first finite-dimensional matrix, and the infinite uninstantiated tail is in the second matrix. We perform uncollapsed sampling on the instantiated features, and collapsed sampling to propose and sample the new features. We divide the and matrices along the observation axis across processors and at each iteration, one processor, , will be able to generate new features on the collapsed infinite tail, while all other processors perform uncollapsed inference restricted to using only the first features. Periodically, we will transfer newly instantiated features to the finite-dimensional subset of instantiated features, ensuring global consistency of the algorithm–in effect, the processor acts to propose new features to be added to the uncollapsed, finite-dimensional representation.
A single iteration of the hybrid algorithm proceeds as follows:
for L sub-iterations do
for in do
for in do
for in do
Sample according to
[TABLE]
if then
for * in * do
Sample according to
[TABLE]
Draw
Propose features from , using a Metropolis-Hastings step
if master processor then
Receive summary statistics from all other processors
Update global counts of features,
Sample posterior values for parameters , , , and hyperparameter
Broadcast new parameters to all other processors
Select
Note that here we assume the linear Gaussian likelihood described in Equation 1, but the hybrid algorithm can easily be adapted to use other likelihoods.
4 Results
To evaluate our algorithm, we calculate the joint log likelihood of on a held-out evaluation set of data and monitor the joint likelihood over log time against the collapsed sampler for the IBP. The data used for our evaluation is the dimension canonical “Cambridge” synthetic data set seen in [6]. We ran the hybrid algorithm on 1, 3, and 5 processors for 1000 iterations and 5 sub-iterations per global step on code written in Python. The data and the MCMC inference were distributed across processors through Message Passing Interface using mpi4py. As seen in Figure 1, we can see that adding additional processors gives significant speedup, without a big difference in estimate quality. Interestingly, even with one processor, our algorithm converges faster than a purely collapsed sampler. The resulting posterior features are seen in Figure 2.
5 Conclusion
We presented in this paper an asymptotically exact parallel Markov chain Monte Carlo algorithm for inference in an Indian Buffet Process feature model. Our parallelization technique exploits the independence between observations for the uncollapsed sampling of the feature indicators while using a partially collapsed sampler to infer values of for new features. However, we still may face significant overhead in sending summary statistics to the master processor and broadcasting the new posterior draws for the parameters to the other processors. Directions for future research may point towards developing clever techniques to reduce this possible computational bottleneck. Regardless, our novel algorithm pushes the IBP closer towards high scalability. In comparison, previous research in parallel inference algorithms for IBP models is limited to [3], who present an exact Metropolis-Hastings sampler but, in practice, use an approximate sampler.
Parallelization is important in settings where we may have a huge number of observations. Direct implementation of the IBP with earlier inference algorithms in a “big data” scenario on a single machine will undoubtedly lead to poor results or inefficient computing. The algorithm in this paper avoids these problems and is guaranteed to produce results exact to the non-parallel inference method. “Big data” is an increasingly important concern for machine learning tasks because the nature of the data available now has grown to such a massive size that the scalability of an algorithm needs to be a primary concern in developing machine learning tools. Inference in the IBP has generally been difficult but we have developed an inference algorithm that has made the IBP amenable to larger data sets.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Tamara Broderick, Brian Kulis, and Michael Jordan. MAD-Bayes: MAP-based asymptotic derivations from Bayes. In Proceedings of The 30th International Conference on Machine Learning , pages 226–234, 2013.
- 2[2] Finale Doshi-Velez and Zoubin Ghahramani. Accelerated sampling for the Indian buffet process. In Proceedings of the 26th Annual International Conference on Machine Learning , pages 273–280. ACM, 2009.
- 3[3] Finale Doshi-Velez, Shakir Mohamed, Zoubin Ghahramani, and David A Knowles. Large scale nonparametric Bayesian inference: Data parallelisation in the Indian buffet process. In Advances in Neural Information Processing Systems , pages 1294–1302, 2009.
- 4[4] Hong Ge, Yutian Chen, Moquan Wan, and Zoubin Ghahramani. Distributed inference for Dirichlet process mixture models. In Proceedings of the 32nd International Conference on Machine Learning (ICML-15) , pages 2276–2284, 2015.
- 5[5] Thomas L Griffiths and Zoubin Ghahramani. Infinite latent feature models and the Indian buffet process. In Advances in Neural Information Processing Systems , pages 475–482, 2005.
- 6[6] Thomas L Griffiths and Zoubin Ghahramani. The Indian buffet process: An introduction and review. The Journal of Machine Learning Research , 12:1185–1224, 2011.
- 7[7] Yee Whye Teh, Dilan Görür, and Zoubin Ghahramani. Stick-breaking construction for the Indian buffet process. In International Conference on Artificial Intelligence and Statistics , pages 556–563, 2007.
- 8[8] Sinead Williamson, Avinava Dubey, and Eric Xing. Parallel Markov chain Monte Carlo for nonparametric mixture models. In Proceedings of the 30th International Conference on Machine Learning , pages 98–106, 2013.
