Abstract
Non-negative Matrix Factorization (NMF) is a vital tool for high-dimensional data analysis, yet standard cyclic coordinate descent algorithms often suffer from inefficiencies when dealing with large-scale, sparse datasets. This paper introduces Greedy Coordinate Descent (GCD), an approach that prioritizes variable updates based on gradient information. By focusing computational effort on the most significant variables, GCD achieves substantial speedups—up to 15x—over state-of-the-art methods like FastHals. Additionally, the authors propose a Newton-based method for KL-divergence NMF, further enhancing performance for probabilistic modeling tasks.
Introduction
NMF decomposes a non-negative matrix $V$ into two lower-rank non-negative matrices, $W$ and $H$ ($V \approx WH$). While widely used in fields like topic modeling and facial recognition, finding an optimal decomposition is a non-convex and computationally demanding task. The current standard, Cyclic Coordinate Descent (CCD) exemplified by the FastHals algorithm, updates variables in a fixed, sequential order. However, in sparse real-world data (e.g., text mining), many variables in the resulting matrices are zero. Sequential updates waste significant time on these "inactive" variables.
Methods
The authors propose two primary advancements to address these inefficiencies:
1. Greedy Coordinate Descent (GCD) for Least Squares
Instead of a fixed cycle, GCD selects variables to update based on their potential to reduce the objective function. To avoid the $O(mk)$ overhead of a fully greedy search, the authors implement a row-based selection strategy. By maintaining the gradient of the objective function, the algorithm can identify the optimal variable within a row to update in $O(k)$ time, making the greedy choice computationally efficient.
2. Newton-based CCD for KL-Divergence
For NMF using Kullback-Leibler (KL) divergence, sub-problems lack closed-form solutions. Standard multiplicative update rules are often slow. The authors apply Newton’s method to these one-variable sub-problems, proving that this second-order approach converges to the global minimum of the sub-problem without requiring complex line searches.
Key Insights and Results
The core advantage of GCD lies in its ability to prioritize updates. In sparse solutions, most variables remain at zero; GCD focuses its effort on the few variables that drive error reduction.
As shown in the figure above, while FastHals updates every variable uniformly, GCD concentrates updates on a subset of variables, leading to much faster initial convergence in terms of the number of coordinate updates.
Performance on Sparse and Dense Data
The algorithms were tested on various datasets, including synthetic matrices, face images (CBCL, ORL), and large sparse text datasets (RCV1, Yahoo-News).
- Sparse Data Efficiency: On the RCV1 text dataset, GCD outperformed FastHals by a factor of 7. With L1 regularization to increase sparsity, the speedup reached 15x.
- Wall-Clock Speed: GCD consistently reaches lower objective values faster than competing solvers.
- KL-Divergence Speedup: The Newton-based CCD for KL-NMF was approximately 10 times faster than standard multiplicative rules on the CBCL dataset.
- Theoretical Convergence: The authors provide formal proofs that both GCD and the Newton-based CCD methods are guaranteed to converge to stationary points.
Conclusion
By replacing uniform cyclic updates with a gradient-based greedy strategy, the authors significantly improve the efficiency of NMF, particularly for the sparse datasets common in modern applications. Future work may extend these coordinate descent techniques to handle missing values and matrix completion problems.
Summary updated