WarpLDA: a Cache Efficient O(1) Algorithm for Latent Dirichlet Allocation
Jianfei Chen, Kaiwei Li, Jun Zhu, Wenguang Chen

TL;DR
WarpLDA introduces a cache-efficient, O(1) time complexity algorithm for LDA that significantly outperforms existing methods in speed and scalability, enabling rapid topic modeling on massive datasets.
Contribution
The paper presents WarpLDA, a novel LDA sampling algorithm that optimizes memory access and achieves superior speed and scalability over prior methods.
Findings
WarpLDA is 5-15x faster than LightLDA.
It achieves a throughput of 11G tokens per second.
It enables learning up to one million topics from hundreds of millions of documents.
Abstract
Developing efficient and scalable algorithms for Latent Dirichlet Allocation (LDA) is of wide interest for many applications. Previous work has developed an O(1) Metropolis-Hastings sampling method for each token. However, the performance is far from being optimal due to random accesses to the parameter matrices and frequent cache misses. In this paper, we first carefully analyze the memory access efficiency of existing algorithms for LDA by the scope of random access, which is the size of the memory region in which random accesses fall, within a short period of time. We then develop WarpLDA, an LDA sampler which achieves both the best O(1) time complexity per token and the best O(K) scope of random access. Our empirical results in a wide range of testing conditions demonstrate that WarpLDA is consistently 5-15x faster than the state-of-the-art Metropolis-Hastings based LightLDA, and…
Peer 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
TopicsTopic Modeling · Bayesian Methods and Mixture Models · Algorithms and Data Compression
MethodsLinear Discriminant Analysis
