Abstract
Low-rank tensor factorization or completion is well-studied and applied in various online settings, such as online tensor factorization (where the temporal mode grows) and online tensor completion (where incomplete slices arrive gradually). However, in many real-world settings, tensors may have more complex evolving patterns: (i) one or more modes can grow; (ii) missing entries may be filled; (iii) existing tensor elements can change. Existing methods cannot support such complex scenarios. To fill the gap, this paper proposes a Generalized Online Canonical Polyadic (CP) Tensor factorization and completion framework (named GOCPT) for this general setting, where we maintain the CP structure of such dynamic tensors during the evolution. We show that existing online tensor factorization and completion setups can be unified under the GOCPT framework. Furthermore, we propose a variant, named GOCPTE, to deal with cases where historical tensor elements are unavailable (e.g., privacy protection), which achieves similar fitness as GOCPT but with much less computational cost. Experimental results demonstrate that our GOCPT can improve fitness by up to 2.8% on the JHU Covid data and 9.2% on a proprietary patient claim dataset over baselines. Our variant GOCPTE shows up to 1.2% and 5.5% fitness improvement on two datasets with about 20% speedup compared to the best model.
Introduction
Tensors are multi-dimensional arrays used to model complex, multi-attribute data, such as a 3D tensor representing location × disease × date. In streaming applications, as new data arrives, online tensor factorization or completion is used to update the low-rank representation efficiently. However, current algorithms typically assume simple evolution patterns, such as the addition of a single new "slice" along a temporal dimension.
In practice, data evolution is more complex. Real-world tensors often exhibit three simultaneous dynamics:
- Mode growth: Multiple dimensions may expand concurrently (e.g., adding new locations and new dates).
- Missing filling: Delayed data arrives to populate previously empty entries.
- Value updates: Corrections or revisions are made to existing data points.
Existing methods struggle with these combined dynamics. This paper introduces GOCPT, a unified framework designed to handle these complex scenarios simultaneously.
Methodology
The core of GOCPT is a generalized objective function that balances fitting new data, regularizing individual tensor factors, and maintaining stability by regularizing the new reconstruction against historical results.
To optimize this objective, GOCPT employs Alternating Least Squares (ALS) with two distinct strategies based on data sparsity:
- Sparse Strategy: This strategy operates only on newly added or updated elements, providing high efficiency for scattered changes.
- Dense Strategy: This strategy involves imputing the full tensor first and applying dense matrix operations, which is more effective when entire dense slices are added.
GOCPTE: Efficiency and Privacy
The authors also propose GOCPTE, an efficient approximation of the main framework. GOCPTE avoids storing raw historical data by using only the newly arrived data and the previous low-rank factors for updates. This approach serves as a form of memory compression and provides privacy protection, as historical raw data is no longer required for future computations.
Experimental Evaluation
The framework was evaluated on several datasets, including public JHU Covid data, proprietary medical claim data, and synthetic benchmarks.
Key Results
- Complex Evolution Performance: In scenarios involving simultaneous mode growth, missing filling, and value updates, GOCPT improved the Percentage of Fitness (PoF) by up to 2.8% on the JHU Covid dataset and 9.2% on the Patient Claim dataset compared to baselines like EM-ALS and CPC-ALS.
- Computational Efficiency: The GOCPTE variant achieved fitness improvements of up to 1.2% and 5.5% on the same datasets while providing a ~20% speedup over the best baseline model.
- Versatility: GOCPT matched or outperformed specialized state-of-the-art models (e.g., OnlineCPD, MAST, OLSTEC) even when restricted to standard online factorization or completion tasks.
Conclusion
GOCPT provides a robust and unified framework for online tensor analysis in complex, real-world environments. By addressing mode growth, missing data, and value updates within a single mathematical structure, it bridges the gap between specialized online factorization and completion methods. The GOCPTE variant further enhances the framework's utility by offering significant memory savings and privacy benefits without sacrificing accuracy. Future research may explore adaptive hyperparameter tuning and extensions to other decomposition formats like Tucker decomposition.
Summary updated