Abstract
Tensor decompositions are powerful tools for large data analytics as they jointly model multiple aspects of data into one framework and enable the discovery of the latent structures and higher-order correlations within the data. One of the most widely studied and used decompositions, especially in data mining and machine learning, is the Canonical Polyadic or CP decomposition. However, today's datasets are not static and these datasets often dynamically growing and changing with time. To operate on such large data, we present OCTen the first ever compression-based online parallel implementation for the CP decomposition. We conduct an extensive empirical analysis of the algorithms in terms of fitness, memory used and CPU time, and in order to demonstrate the compression and scalability of the method, we apply OCTen to big tensor data. Indicatively, OCTen performs on-par or better than state-of-the-art online and online methods in terms of decomposition accuracy and efficiency, while saving up to 40-200 % memory space.
Introduction
In the age of "big data," information is increasingly multi-dimensional and dynamic. Tensors—mathematical objects generalizing matrices to three or more dimensions—are ideal for modeling this complexity, such as tracking user × item × time interactions. To extract hidden patterns, researchers utilize Canonical Polyadic (CP) decomposition, which factorizes a massive tensor into interpretable factor matrices.
However, real-world data is often streaming. Traditional decomposition methods require recomputing the entire model from scratch as new data arrives, which is computationally prohibitive. Even existing "online" methods struggle because they operate in the full ambient space, requiring massive original dimensions to be kept in memory. As data grows, these methods inevitably hit a "memory wall." OCTen addresses this by shifting the computational burden from the massive original space to a significantly smaller, compressed space.
The OCTen Framework
OCTen (Online Compression-based Tensor Decomposition) introduces a "compress-then-decompose" workflow that allows for parallel and memory-efficient processing of streaming data.
The process follows four key stages:
- Parallel Random Compression: Instead of raw data, OCTen uses multiple parallel workers. Each worker applies a unique, randomly generated compression matrix to create a small "summary" mini-tensor.
- Incremental Updates: As new data slices arrive, OCTen updates these small summaries ($Q \times Q \times Q$) rather than the original raw data. These summaries are small enough to fit easily in RAM.
- Parallel Decomposition: Each worker performs a CP decomposition on its unique summary independently.
- Factor Matching and Joining: To reconcile the parallel results, OCTen uses Kruskal’s uniqueness properties and a matching step to align the results, solving a system of linear equations to reconstruct the final factor matrices.
Performance and Scalability
The authors evaluated OCTen against state-of-the-art methods using synthetic tensors (up to $50,000^3$ dimensions) and real-world datasets like Foursquare-NYC check-ins and the American College Football Network.
Key results include:
- Memory Efficiency: OCTen achieved 40-200% memory savings compared to baselines like OnlineCP and SambaTen. By storing only compressed summaries rather than the original tensor, it bypasses the linear memory growth that plagues other methods.
- Computational Speed: For large-scale tensors, OCTen reduced mean CPU running time by up to 2x.
- Accuracy: Despite heavy compression, OCTen’s "fitness" (approximation quality) remained on par with or better than state-of-the-art offline and online methods. On the Foursquare dataset, it successfully identified popular NYC hubs and predicted user movements by tracking latent factor evolution over 10 months.
Conclusion
OCTen demonstrates that random projections can capture enough systematic variation to reconstruct latent structures without needing full-resolution data. While the method performs best on data with a clear low-rank trilinear structure, its efficiency makes it a powerful tool for real-time analytics. Future work aims to extend this framework to other decomposition types, such as Tucker decomposition, and integrate advanced mining techniques directly into the compression pipeline.
Summary updated