Introduction: The Messiness of Real-World Streaming Data
In modern data science, tensors are essential for representing multi-dimensional data, such as tracking disease prevalence across various locations and dates. While many "online" tensor decomposition methods exist, they typically assume a simple, "append-only" growth pattern where new data arrives as a clean slice at the end of a time dimension.
However, real-world data is rarely this orderly. In public health surveillance or financial tracking, data often arrives with several complications:
- Mode Growth: New categories (e.g., new diseases or locations) are added to the system.
- Missing Filling (Backfilling): Historical data is reported late (e.g., a hospital reporting cases from three weeks ago).
- Value Update: Previously recorded entries are corrected due to errors.
Existing algorithms often require expensive full re-computations when the "past" changes in these ways. GOCPT (Generalized Online Canonical Polyadic Tensor Factorization) is a unified framework designed to maintain accurate low-rank CP decompositions in real-time under these complex, simultaneous evolving patterns.
The GOCPT Framework
The authors propose a generalized objective function that balances three critical requirements for streaming tensor models:
- Accuracy on New Data: A loss term focused on newly arrived or updated elements.
- Temporal Consistency: A "reconstruction regularizer" ensures the model evolves smoothly without erratic deviations from its previous state.
- Model Stability: Standard L2 regularization on the latent factor matrices to prevent overfitting.
To optimize this objective, GOCPT employs an Alternating Least Squares (ALS) approach with two distinct strategies:
- Sparse Strategy: Designed for irregular updates, such as random cell corrections. It uses a row-wise parallel update that only modifies the necessary portions of the factor matrices.
- Dense Strategy: Optimized for block-based updates, such as adding a whole new slice. It utilizes an Expectation-Maximization (EM) style approach to impute missing values before updating the model.
GOCPTE: Efficiency and Privacy
A key innovation is the GOCPTE variant. Traditional methods often require keeping the entire raw historical tensor in memory to calculate updates. GOCPTE instead uses the previous model's reconstruction as a proxy for historical data. This approach provides a 20% speedup and significantly reduces memory overhead. Furthermore, it addresses privacy concerns by eliminating the need to store raw historical data indefinitely.
Key Insights: Unification and Robustness
One of the paper's most significant contributions is the mathematical demonstration that several popular existing algorithms, such as OnlineCPD and OnlineSGD, are restricted special cases of the GOCPT framework. By explicitly modeling the "fluidity of the past," GOCPT moves beyond the append-only mindset, making it resilient to the delays and corrections inherent in real-world databases.
Experimental Results
The framework was evaluated on diverse datasets, including JHU Covid tracking, medical insurance claims, and hyperspectral imaging. Key findings include:
- Superior Accuracy: GOCPT improved the "Percentage of Fitness" by up to 2.8% on JHU Covid data and 9.2% on patient claim data compared to state-of-the-art baselines.
- Computational Efficiency: GOCPTE maintained high accuracy while outperforming baselines in speed.
- Robustness: When subjected to random perturbations (simulating data corrections), GOCPT maintained significantly higher fitness than standard methods like EM-ALS, which struggled to adapt to changing historical values.
Conclusion and Future Work
GOCPT represents a major step forward in making tensor factorization practical for real-world streaming applications. While the current work focuses on CP decomposition, future research could extend these principles to Tucker decomposition. Additionally, developing automated mechanisms for tuning time-varying hyperparameters and addressing "concept drift" remains an open area for exploration.
Summary updated