SaberLDA: Sparsity-Aware Learning of Topic Models on GPUs

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Li, Kaiwei, Chen, Jianfei, Chen, Wenguang, Zhu, Jun
Natura: Preprint
Pubblicazione: 2016
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911925217001472
author Li, Kaiwei
Chen, Jianfei
Chen, Wenguang
Zhu, Jun
author_facet Li, Kaiwei
Chen, Jianfei
Chen, Wenguang
Zhu, Jun
contents Latent Dirichlet Allocation (LDA) is a popular tool for analyzing discrete count data such as text and images. Applications require LDA to handle both large datasets and a large number of topics. Though distributed CPU systems have been used, GPU-based systems have emerged as a promising alternative because of the high computational power and memory bandwidth of GPUs. However, existing GPU-based LDA systems cannot support a large number of topics because they use algorithms on dense data structures whose time and space complexity is linear to the number of topics. In this paper, we propose SaberLDA, a GPU-based LDA system that implements a sparsity-aware algorithm to achieve sublinear time complexity and scales well to learn a large number of topics. To address the challenges introduced by sparsity, we propose a novel data layout, a new warp-based sampling kernel, and an efficient sparse count matrix updating algorithm that improves locality, makes efficient utilization of GPU warps, and reduces memory consumption. Experiments show that SaberLDA can learn from billions-token-scale data with up to 10,000 topics, which is almost two orders of magnitude larger than that of the previous GPU-based systems. With a single GPU card, SaberLDA is able to learn 10,000 topics from a dataset of billions of tokens in a few hours, which is only achievable with clusters with tens of machines before.
format Preprint
id arxiv_https___arxiv_org_abs_1610_02496
institution arXiv
publishDate 2016
record_format arxiv
spellingShingle SaberLDA: Sparsity-Aware Learning of Topic Models on GPUs
Li, Kaiwei
Chen, Jianfei
Chen, Wenguang
Zhu, Jun
Distributed, Parallel, and Cluster Computing
Information Retrieval
Machine Learning
Latent Dirichlet Allocation (LDA) is a popular tool for analyzing discrete count data such as text and images. Applications require LDA to handle both large datasets and a large number of topics. Though distributed CPU systems have been used, GPU-based systems have emerged as a promising alternative because of the high computational power and memory bandwidth of GPUs. However, existing GPU-based LDA systems cannot support a large number of topics because they use algorithms on dense data structures whose time and space complexity is linear to the number of topics. In this paper, we propose SaberLDA, a GPU-based LDA system that implements a sparsity-aware algorithm to achieve sublinear time complexity and scales well to learn a large number of topics. To address the challenges introduced by sparsity, we propose a novel data layout, a new warp-based sampling kernel, and an efficient sparse count matrix updating algorithm that improves locality, makes efficient utilization of GPU warps, and reduces memory consumption. Experiments show that SaberLDA can learn from billions-token-scale data with up to 10,000 topics, which is almost two orders of magnitude larger than that of the previous GPU-based systems. With a single GPU card, SaberLDA is able to learn 10,000 topics from a dataset of billions of tokens in a few hours, which is only achievable with clusters with tens of machines before.
title SaberLDA: Sparsity-Aware Learning of Topic Models on GPUs
topic Distributed, Parallel, and Cluster Computing
Information Retrieval
Machine Learning
url https://arxiv.org/abs/1610.02496