Abstract
We present a matrix factorization algorithm that scales to input matrices that are large in both dimensions (i.e., that contains more than 1TB of data). The algorithm streams the matrix columns while subsampling them, resulting in low complexity per iteration and reasonable memory footprint. In contrast to previous online matrix factorization methods, our approach relies on low-dimensional statistics from past iterates to control the extra variance introduced by subsampling. We present a convergence analysis that guarantees us to reach a stationary point of the problem. Large speed-ups can be obtained compared to previous online algorithms that do not perform subsampling, thanks to the feature redundancy that often exists in high-dimensional settings.
Overcoming the Dimensionality Wall
Matrix Factorization (MF) is a cornerstone of modern machine learning, utilized extensively for tasks such as dictionary learning and Sparse PCA. However, as datasets grow toward the terabyte scale, they encounter two distinct computational bottlenecks:
- The $n$-wall: The number of samples ($n$) is too large to fit in memory. This is typically addressed by "online" algorithms that process samples sequentially.
- The $p$-wall: Each sample possesses so many features (high dimensionality, $p$) that even processing a single sample becomes computationally prohibitive.
While previous research successfully addressed the $n$-wall, scaling to high-dimensional $p$ remained a challenge. Earlier attempts to use stochastic subsampling—observing only a few features at a time—often suffered from high variance or vanishing gradients, preventing the algorithm from converging to a stable solution. This paper introduces SOMF (Subsampled Online Matrix Factorization) to bridge this gap, providing a method to subsample features for speed without sacrificing the mathematical certainty of convergence.
The SOMF Algorithm
SOMF achieves its efficiency by combining online learning with a novel variance-control mechanism. Its key innovations include:
- Stochastic Subsampling: At each iteration, instead of processing a full high-dimensional signal $x \in \mathbb{R}^p$, the algorithm randomly "masks" most features, observing only a subset of size $q \ll p$.
- Consistent Estimators for Variance Control: To solve the noise problem inherent in subsampling, the algorithm maintains low-dimensional statistics ($G_t$ and $\beta_t$) derived from past iterations. These act as a memory, allowing the model to "remember" information about features it isn't currently observing, effectively de-noising the process.
- Partial Dictionary Updates: Instead of updating the entire dictionary $D$ at every step, SOMF only updates the rows corresponding to the features observed in the current mask. The other rows are "frozen," which drastically reduces the computational cost per iteration.
- Convergence Analysis: The authors provide a rigorous proof showing that despite the noise introduced by subsampling, the algorithm is guaranteed to reach a stationary point of the objective function.
Experimental Results
The algorithm was benchmarked using hyperspectral imaging data from the AVIRIS project. The dataset consisted of 224 spectral channels, from which $16 \times 16$ patches were extracted, resulting in samples with a dimensionality of $p \approx 57,000$. The test involved cycling over 100,000 normalized samples.
As shown in Figure 1, SOMF achieved a speedup factor of approximately $r=4$ (matching the reduction factor used in subsampling) compared to the standard online matrix factorization algorithm. Furthermore, SOMF demonstrated superior stability and lower training loss in early epochs because its estimators are "consistent," meaning they converge to true values over time rather than fluctuating wildly.
Conclusion
SOMF provides a scalable framework for matrix factorization on datasets exceeding 1TB. By exploiting the feature redundancy common in high-dimensional data like images or genomic sequences, it achieves significant efficiency gains. While the current implementation focuses on squared loss for dictionary learning, the underlying framework of variance-controlled subsampling offers a promising path for scaling other complex machine learning models to massive, high-dimensional datasets.
Summary updated