Overview
Factorizing tensors has become a crucial optimization module in numerous machine learning pipelines, particularly within latent variable models like topic modeling. This paper introduces efficient streaming algorithms to create coresets—small, weighted summaries of massive datasets—specifically designed for symmetric tensor factorization. By combining two novel techniques, LineFilter and KernelFilter, the authors enable high-accuracy latent variable modeling on data streams with significantly reduced memory footprints and faster update times than previous state-of-the-art methods.
The Challenge of Streaming Tensors
In modern machine learning, we frequently use tensors (higher-order generalizations of matrices) to uncover hidden structures in data. While matrix factorization (such as SVD) is ubiquitous, tensor factorization is often preferred for latent variable modeling because its decomposition is unique under much milder conditions.
However, tensors are computationally expensive. A $p$-order tensor for data in $d$ dimensions has $d^p$ entries, a size that explodes as the order increases. Furthermore, in many real-world scenarios, data arrives in a stream: we observe one data point at a time and cannot afford to store the entire dataset in memory.
The core challenge is finding a way to select a very small subset of the incoming data (a coreset) such that factorizing this subset yields roughly the same result as factorizing the full, massive dataset. Specifically, the authors aim to preserve "tensor contraction" properties and $\ell_p$ subspace embeddings in a strict, one-pass streaming environment.
Proposed Methodology: LineFilter and KernelFilter
The authors propose four algorithms based on two primary modules designed to tackle the streaming tensor problem:
- LineFilter: A fast, online row-sampling algorithm. When a new data point arrives, it calculates a "sensitivity score" based on the data seen so far. It then makes an immediate, irrevocable decision to keep or discard the point. It is computationally lean, requiring only $O(d^2)$ update time.
- KernelFilter: This module employs a "kernelization" technique. It transforms a $p$-order tensor problem into a lower-order (usually 2nd order) problem. This transformation allows for much tighter theoretical bounds on the coreset size, especially for even values of $p$.
- Hybrid Approaches:
- LineFilter + StreamingLW: Feeds the output of the fast filter into a more robust "Lewis Weights" sampler.
- LineFilter + KernelFilter: The flagship algorithm that combines the speed of the filter with the precision of kernelization.
A key technical contribution of this work is that for the $p=2$ (matrix) case, the proposed method improves upon existing online row sampling by removing the need to know the matrix's smallest singular value ($\sigma_{min}$) beforehand.
Theoretical Guarantees and Efficiency
The goal of these algorithms is not just to summarize the data, but to ensure that the "useful" geometric properties (the subspace spanned by the data) are preserved for the specific task of tensor factorization. The algorithms use sensitivity scores to identify "important" points—those that are outliers or represent directions in the data space not yet well-captured by the coreset.
As shown in the theoretical comparison above, the paper highlights a mathematical "sweet spot" for even-ordered tensors. For even $p$, the LineFilter + KernelFilter algorithm achieves an amortized update time of $O(d^2)$, making it highly practical for high-speed data streams. Crucially, the coreset size is $O(d^{p/2}k/\epsilon^2)$, which is entirely independent of the total number of data points ($n$), depending only on the dimension ($d$), the rank ($k$), and the desired error ($\epsilon$).
Experimental Validation and Key Results
The authors evaluated their algorithms using both synthetic data (to verify theoretical bounds) and the 20Newsgroups dataset (a standard text dataset). For the latter, they used a subset of 10,000 documents and the 100 most frequent words to create a $10,000 \times 100$ matrix for a single-topic modeling task.
- Topic Modeling Accuracy: In the 20Newsgroups experiment, the proposed
LineFilter + KernelFilterconsistently outperformed both uniform sampling and standard online leverage score sampling. For a coreset of size 500, it achieved an average $\ell_1$ error of ~0.21, compared to ~0.37 for uniform sampling. - Matrix Improvement: For the specific case of matrices ($p=2$), their algorithm provides a relative error spectral approximation that is marginally better and more robust than previous benchmarks.
Limitations and Future Directions
- Odd-Order Tensors: While the results for even $p$ are exceptionally strong (independent of $n$), the coreset size for odd $p$ (like the common $p=3$ case in topic modeling) still retains a small dependency on the total number of points ($n^{1/10}$ or similar fractional powers). Reducing or eliminating this dependency remains an area for future work.
- The $p=1$ Case: The current techniques apply to $p \ge 2$. Extending these streaming coresets to the $\ell_1$ norm is an open challenge.
- Broader Latent Models: The authors suggest exploring how these coresets perform across a wider variety of latent variable models beyond simple topic modeling, such as training neural networks or complex hidden Markov models.
Summary updated