[Paper Review] Online Tensor Methods for Learning Latent Variable Models
This paper proposes an online tensor decomposition method using stochastic gradient descent to learn latent variable models for community detection and topic modeling, avoiding explicit tensor formation to reduce computational and storage costs. It achieves state-of-the-art accuracy and speedups of several orders of magnitude on real-world datasets like Facebook, DBLP, and New York Times, outperforming variational inference methods in both efficiency and robustness.
We introduce an online tensor decomposition based approach for two latent variable modeling problems namely, (1) community detection, in which we learn the latent communities that the social actors in social networks belong to, and (2) topic modeling, in which we infer hidden topics of text articles. We consider decomposition of moment tensors using stochastic gradient descent. We conduct optimization of multilinear operations in SGD and avoid directly forming the tensors, to save computational and storage costs. We present optimized algorithm in two platforms. Our GPU-based implementation exploits the parallelism of SIMD architectures to allow for maximum speed-up by a careful optimization of storage and data transfer, whereas our CPU-based implementation uses efficient sparse matrix computations and is suitable for large sparse datasets. For the community detection problem, we demonstrate accuracy and computational efficiency on Facebook, Yelp and DBLP datasets, and for the topic modeling problem, we also demonstrate good performance on the New York Times dataset. We compare our results to the state-of-the-art algorithms such as the variational method, and report a gain of accuracy and a gain of several orders of magnitude in the execution time.
Motivation & Objective
- Develop a scalable, efficient framework for learning overlapping communities and topics using tensor-based methods with strong statistical guarantees.
- Address the computational infeasibility of explicit tensor operations in large-scale latent variable models by using implicit tensor computations.
- Enable online learning for latent variable models through stochastic gradient descent on moment tensors.
- Provide a unified approach that works across diverse graph types, including directed, undirected, and bipartite networks.
- Overcome limitations of existing variational methods, such as fixed connectivity assumptions and poor scalability on sparse or complex networks.
Proposed method
- Use online stochastic gradient descent (SGD) to optimize multilinear operations on empirical moment tensors derived from data.
- Avoid explicit tensor formation by computing tensor operations implicitly through matrix and vector operations, reducing memory and computational costs.
- Leverage sparse matrix representations for efficient computation on large, sparse datasets such as social networks and text corpora.
- Implement a GPU-based version exploiting SIMD parallelism for maximum speedup, with optimized memory access and data transfer.
- Develop a CPU-based implementation using efficient sparse linear algebra for datasets too large for GPU memory.
- Apply hypothesis testing with p-values and false discovery rates to evaluate community recovery without requiring manual tuning of the number of communities.
Experimental results
Research questions
- RQ1Can online tensor decomposition via SGD achieve high accuracy and scalability in learning overlapping communities in real-world social networks?
- RQ2How does the proposed method compare to state-of-the-art variational inference in terms of accuracy and runtime on large-scale datasets?
- RQ3To what extent can implicit tensor operations reduce computational and storage costs without sacrificing model performance?
- RQ4Can the method generalize across different graph types, including bipartite and directed networks, unlike existing variational approaches?
- RQ5How effective is the use of p-values and false discovery rates in evaluating community detection accuracy without prior knowledge of the number of communities?
Key findings
- The method achieved a 10% error rate on the DBLP dataset (1M nodes, 16M edges, 250 communities) in under two minutes of computation time, excluding I/O overhead.
- On the Facebook dataset, the method successfully recovered high schools, dorms, and second majors with high accuracy, reflecting real-world social structures.
- The algorithm ran in approximately two minutes on the New York Times dataset (100K words, 300K documents), learning interpretable topics and identifying 'bridging' words common across topics.
- The GPU-based implementation achieved several orders of magnitude speedup over the stochastic variational inference method of Gopalan et al. (2012), especially on large sparse graphs.
- The method outperformed variational inference in both accuracy and efficiency, and was not restricted to homogeneous connectivity models.
- The use of p-values for evaluation eliminated the need to tune the number of communities, providing a flexible and robust assessment of recovery performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.