Introduction: The Challenge of Big Tensors
Tensors are multidimensional generalizations of matrices, capable of representing complex relationships such as user x website x time. Tensor decomposition, particularly the PARAFAC model, is a cornerstone of modern data mining, used to extract latent patterns and concepts from these multi-way arrays. However, as datasets scale to millions of dimensions, traditional algorithms like Alternating Least Squares (ALS) become computationally infeasible.
The primary bottleneck is the Intermediate Data Explosion. Standard ALS requires materializing a massive Khatri-Rao product during factor updates. For a knowledge base tensor with 26 million noun phrases, a naive implementation would attempt to create an intermediate matrix with roughly 700 trillion rows—a storage requirement far exceeding the capacity of even large-scale data centers. This paper introduces two frameworks, GigaTensor and PARCUBE, to overcome these limitations.
GigaTensor: Exact Scalable Decomposition
GigaTensor is designed for distributed environments like MapReduce to provide an exact PARAFAC decomposition. Its core innovation is a mathematical decoupling of the Khatri-Rao product. Instead of materializing the giant intermediate matrix, GigaTensor performs algebraic operations directly on the sparse input tensor and the smaller factor matrices.
Furthermore, the framework optimizes the order of matrix operations. By leveraging associativity, the authors demonstrate that choosing the correct computation sequence can reduce the number of floating-point operations (flops) by several orders of magnitude—for instance, from $10^{17}$ to $10^9$ on the NELL dataset.
PARCUBE: Efficient Approximate Sketching
While GigaTensor provides exact results, PARCUBE offers a faster, approximate alternative through "sketching." This approach is particularly effective for identifying dominant patterns and anomalies in massive datasets.
PARCUBE operates in three distinct stages:
- Biased Sampling: It selects a representative sub-tensor (a "sketch") using sampling weights proportional to data density, ensuring that important structures are preserved.
- Parallel Decomposition: Standard decompositions are run on multiple sketches in parallel, significantly reducing wall-clock time.
- FactorMerge: A novel algorithm aligns and merges the results from different sketches. This step is crucial for resolving the "permutation problem," where independent parallel runs might discover the same latent concepts but in different orders.
Experimental Evaluation and Real-World Discovery
The authors evaluated these methods using massive real-world datasets, including the Read the Web (NELL) knowledge base ($26M \times 26M \times 48M$ tensor) and Facebook Wall Posts.
- Scalability: GigaTensor successfully processed tensors 100x larger than the previous state-of-the-art tools, which typically failed due to memory limits once tensors exceeded $10^7$ elements.
- Sparsity: PARCUBE produced factors that were 90% sparser than standard ALS. This sparsity is not only computationally efficient but also improves interpretability, making anomalies stand out.
- Knowledge Discovery: On the NELL dataset, the framework identified contextual synonyms, such as "pollutants" and "dioxin." On Facebook data, it successfully detected a user's birthday by identifying a unique temporal spike in posts from diverse sources.
Conclusion and Future Directions
GigaTensor and PARCUBE demonstrate that the memory bottlenecks of tensor decomposition can be bypassed through clever algebraic restructuring and sampling. While GigaTensor is the gold standard for exactness on distributed systems, PARCUBE offers a high-speed, sparse alternative for rapid discovery. Future work remains in extending these scalable methods to dynamic, time-evolving tensors and further exploring the trade-offs of sketching in tensor research.
Summary updated