[Paper Review] Dictionary Learning for Massive Matrix Factorization
This paper proposes a novel online dictionary learning algorithm that scales efficiently to massive matrices in both dimensions by combining stochastic optimization with random feature subsampling. It achieves up to 8-fold speedup and significant memory reduction on terabyte-scale datasets, outperforming state-of-the-art methods in convergence time and prediction accuracy on fMRI and recommender system data.
Sparse matrix factorization is a popular tool to obtain interpretable data decompositions, which are also effective to perform data completion or denoising. Its applicability to large datasets has been addressed with online and randomized methods, that reduce the complexity in one of the matrix dimension, but not in both of them. In this paper, we tackle very large matrices in both dimensions. We propose a new factoriza-tion method that scales gracefully to terabyte-scale datasets, that could not be processed by previous algorithms in a reasonable amount of time. We demonstrate the efficiency of our approach on massive functional Magnetic Resonance Imaging (fMRI) data, and on matrix completion problems for recommender systems, where we obtain significant speed-ups compared to state-of-the art coordinate descent methods.
Motivation & Objective
- Address the scalability limitations of existing online and batch dictionary learning methods that do not scale efficiently in both matrix dimensions (rows and columns).
- Enable efficient processing of terabyte-scale datasets—such as massive fMRI and collaborative filtering data—where prior methods are too slow or infeasible.
- Maintain interpretability of the learned dictionary while handling missing values and structured sparse regularization.
- Develop a method that combines online optimization with randomized dimensionality reduction to reduce computational cost without sacrificing model quality.
- Achieve faster convergence than coordinate descent methods on large-scale matrix completion tasks, particularly as dataset size increases.
Proposed method
- Introduce a masked online dictionary learning framework where each iteration processes a randomly masked subset of matrix entries, reducing computational cost per iteration.
- Use random feature subsampling (via random projections) to reduce the dimensionality of the signal space, enabling efficient computation even when the number of signals (columns) is very large.
- Apply stochastic majorization-minimization with a learning rate schedule $ w_t = 1/t^\beta $, where $ \beta \in [0.85, 0.95] $, to ensure convergence and fast adaptation.
- Incorporate user and item bias correction via alternating debiasing, improving prediction accuracy on collaborative filtering tasks.
- Use mini-batches of size $ n/100 $ to balance convergence speed and stability during optimization.
- Maintain explicit, interpretable dictionaries $ \mathbf{D} $ and sparse activation matrices $ \mathbf{A} $, enabling downstream interpretability in neuroscience and recommender systems.
Experimental results
Research questions
- RQ1Can a dictionary learning algorithm be designed to scale efficiently in both the number of signals (columns) and features (rows) of a matrix?
- RQ2How can random feature subsampling be integrated into online dictionary learning to reduce computational complexity without degrading model performance?
- RQ3Does the proposed method achieve faster convergence than coordinate descent on large-scale matrix completion tasks, especially as dataset size increases?
- RQ4To what extent does the use of random masking and subsampling preserve the interpretability and accuracy of the learned dictionary?
- RQ5How sensitive is the algorithm’s performance to the choice of learning rate schedule $ w_t = 1/t^\beta $, and what range of $ \beta $ yields optimal convergence?
Key findings
- On a 2TB fMRI dataset with $ n = 2.4 \times 10^6 $ signals and $ p = 2 \times 10^5 $ features, the proposed method learned interpretable dictionaries in approximately 10 hours—about an order of magnitude faster than the online method of Mairal et al. (2010).
- On the Netflix dataset (140M entries), the algorithm achieved convergence in 256 seconds, a 6.8× speedup compared to coordinate descent, which required 1714 seconds.
- The method achieved a test RMSE of 0.934 on Netflix, slightly better than the coordinate descent baseline (0.938), with a 0.1% deviation from the final RMSE reached in under 4 minutes.
- The algorithm’s convergence speed improved with increasing dataset size, requiring fewer epochs to reach convergence compared to coordinate descent, which requires a fixed number of cycles.
- The optimal learning rate schedule was found to be $ \beta \in [0.85, 0.95] $, consistent with theoretical convergence guarantees from Mairal (2013), and yielded the fastest convergence in practice.
- The use of partial projection (random feature subsampling) provided a slight performance improvement over the full-projection variant, likely due to additional regularization on the dictionary updates.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.