Abstract
Coupled Matrix-Tensor Factorization (CMTF) is a powerful tool for joint analysis of heterogeneous datasets, such as user-item ratings coupled with social networks. However, existing CMTF methods often struggle with massive, sparse real-world data, facing challenges in scalability, model capacity, and memory efficiency. This paper presents $S^3$CMTF, a framework designed to overcome these hurdles. By combining a flexible Tucker-based model with lock-free parallel Stochastic Gradient Descent (SGD) and efficient intermediate data reuse, $S^3$CMTF achieves significant improvements in both speed and accuracy. Evaluations on large-scale datasets like Netflix and Yelp show that $S^3$CMTF is up to 43x faster and 4.1x more accurate than previous state-of-the-art methods.
Introduction
In modern data science, datasets are frequently "coupled," meaning they share common dimensions. For instance, a streaming service might possess a 3D tensor (User $\times$ Movie $\times$ Time) of ratings alongside a 2D matrix (User $\times$ User) representing social connections. CMTF allows for the simultaneous factorization of these structures to uncover latent factors that explain both.
Despite its utility, current CMTF approaches face a "performance wall":
- The Sparsity Gap: Traditional methods often assume dense data. When applied to sparse real-world datasets, they may crash due to memory constraints or produce inaccurate results by misinterpreting missing values.
- The Model Capacity Gap: Simpler models like CP decomposition (used in CMTF-OPT) are computationally efficient but often too rigid to capture complex interactions, leading to higher error rates.
- The Scalability Gap: Many algorithms lack effective parallelization for modern multi-core architectures, limiting their applicability to "Big Data."
Methodology: The $S^3$CMTF Framework
The authors propose $S^3$CMTF (Sparse, lock-free SGD-based, and Scalable CMTF) to bridge these gaps. It utilizes the flexible Tucker decomposition model while optimizing it for sparse, parallel execution.
Technical Innovations
- Sparse-Aware Objective: $S^3$CMTF focuses exclusively on observed entries, avoiding the memory-intensive materialization of large dense tensors.
- Lock-Free Parallel SGD: Adapting the "Hogwild!" approach, the framework allows multiple CPU cores to update factor matrices concurrently without expensive synchronization locks. To maintain consistency, updates to the shared core tensor are handled by a dedicated thread.
- Intermediate Data Reuse ($S^3$CMTF-opt): To address the redundancy in Tucker gradient calculations, the "opt" variant stores and reuses intermediate results (a process termed "Collapse"), significantly reducing the computational load per iteration.
Experimental Evaluation
The performance of $S^3$CMTF was evaluated using three major real-world datasets:
- MovieLens: 10M ratings coupled with movie-genre information.
- Netflix: 100M ratings coupled with movie-release dates.
- Yelp: 4M ratings coupling a (User, Business, Time) tensor with three auxiliary matrices (User-User, Business-Category, Business-City).
Key Results
$S^3$CMTF demonstrates superior performance across all metrics compared to baselines like CMTF-OPT and CMTF-Tucker-ALS.
- Accuracy: $S^3$CMTF achieved 2.1x to 4.1x lower Test RMSE than competitors. Notably, on the Netflix and Yelp datasets, the primary competitor (CMTF-Tucker-ALS) failed due to memory limits (O.O.M.), whereas $S^3$CMTF operated efficiently.
- Speed: The $S^3$CMTF-opt variant is 11x to 43x faster per iteration than existing methods.
- Scalability: The method exhibits near-linear scalability with respect to both data size and the number of CPU cores, achieving near-perfect parallel speedup on up to 20 cores.
- Practical Utility: On the Yelp dataset, $S^3$CMTF successfully identified meaningful clusters, such as spatial-categorical signatures that distinguish between travel services in Las Vegas and home services in Arizona.
Conclusion
$S^3$CMTF provides a robust solution for large-scale sparse coupled matrix-tensor factorization. By optimizing the Tucker model for sparse, parallel environments, it overcomes the limitations of previous methods in terms of capacity, scalability, and memory. Future work will explore extending this lock-free SGD approach to distributed-memory systems to handle even larger "web-scale" datasets.
Summary updated