ParCube: Sparse Parallelizable Tensor Decompositions

Evangelos E. Papalexakis, Christos Faloutsos, Nicholas D. Sidiropoulos

Introduction

Tensors—multi-dimensional arrays—are the "native" format for much of today’s complex data, from social networks to network traffic. However, as datasets grow into the billions of entries, traditional tensor decomposition methods like PARAFAC hit a wall: they are notoriously memory-hungry and don't scale well to data that won't fit in RAM. In their paper, "ParCube: Sparse Parallelizable Tensor Decompositions," Papalexakis, Faloutsos, and Sidiropoulos introduce a framework designed to break this bottleneck. By combining biased random sampling with a clever parallel merging strategy, ParCube offers a way to decompose massive tensors faster and with much higher sparsity than ever before.

The Scalability Challenge

Tensor decompositions are powerful tools for finding latent patterns in data, such as communities in social networks or topics in document collections. The gold standard for this is the PARAFAC decomposition. However, the standard algorithm for fitting PARAFAC (Alternating Least Squares, or ALS) is computationally expensive and typically requires the entire tensor to reside in main memory. For datasets with millions or billions of non-zero entries, this requirement is a significant barrier. Existing sampling methods often struggle to preserve the underlying data distribution or are limited to specific, non-flexible decomposition types.

Methodology: The ParCube Framework

ParCube addresses these challenges through a three-step parallelizable workflow:

  1. Biased Sampling: Instead of uniform sampling, which may miss critical "heavy hitters" in sparse tensors, ParCube uses mode densities. By calculating marginal sums for each dimension and using them as weights, the framework ensures that the most active components of the tensor are included in the sample.
  2. Parallel Decomposition: ParCube generates multiple independent random samples of the original tensor. These smaller samples can be decomposed in parallel across different CPU cores or machines using standard tools.
  3. FactorMerge: To synthesize the results, the authors ensure all samples share a small "common basis" of indices. The FactorMerge algorithm uses this common ground to align factors, resolve scaling differences, and stitch partial results into a single, coherent decomposition.
The ParCube workflow: biased sampling, parallel decomposition, and factor merging.

Experimental Results and Real-World Discovery

The authors validated ParCube on synthetic data and four diverse real-world datasets, including Enron emails, Facebook interactions, and the NELL knowledge base (containing over 76 million non-zero entries).

Key findings include:

  • Massive Sparsity: ParCube achieved over 90% sparser outputs compared to regular PARAFAC while maintaining comparable approximation accuracy.
  • Significant Speedups: In parallel environments, the framework demonstrated a 14x speedup on large tensors.
  • Anomaly Detection: On the LBNL network traffic dataset, ParCube successfully flagged a port-scanning attack by isolating the relevant source, destination, and port factors.
Detection of a port scanning attack in the LBNL network traffic dataset.

Conclusion

ParCube represents a significant advancement in scaling tensor decompositions to "Big Data" regimes. By producing sparse, interpretable factors naturally and enabling massive parallelization, it opens new doors for analyzing datasets that were previously computationally unreachable. Future work will focus on automating parameter selection and exploring alternative sampling metrics to further refine the framework.

Summary updated

BibTeX
@inproceedings{papalexakis2012parcube,
  author = {Evangelos E. Papalexakis and Christos Faloutsos and Nicholas D. Sidiropoulos},
  title = {{ParCube: Sparse Parallelizable Tensor Decompositions}},
  booktitle = {ECML/PKDD},
  year = {2012},
  doi = {10.1007/978-3-642-33460-3\_39},
}
Figure