Abstract
Nonnegative Matrix Factorization (NMF) is a fundamental tool in data science but suffers from NP-hardness and slow convergence. This paper presents Factormer, a novel Graph Neural Network (GNN) architecture designed to accelerate NMF. By representing matrices as bipartite graphs and interleaving Transformer-inspired attention layers with classical ADMM optimization steps, the proposed method achieves significant speedups and improved convergence. Factormer is size-agnostic and generalizes across synthetic and real-world datasets, often finding better local minima than traditional solvers.
Introduction
Nonnegative Matrix Factorization (NMF) is widely used for interpretable dimensionality reduction in fields like image processing and audio analysis. Despite its utility, NMF is computationally challenging (NP-hard) and traditional iterative algorithms are often slow and sensitive to initialization. While "learning to optimize" has shown promise in other domains, its application to NMF is hindered by the lack of grid-like structure in matrices and the requirement for solvers to handle variable input sizes.
Methodology
The core innovation lies in treating matrix factorization as a graph problem. The authors represent the target matrix $V$ as a weighted bipartite graph (a König digraph), where rows and columns are nodes and matrix entries are edge weights.
The Factormer Architecture
The Factormer is a specialized GNN that adapts the Transformer's self-attention mechanism to bipartite graphs. It utilizes "implicit edge features"—residuals calculated on the fly—to provide the network with an error signal regarding the current approximation $V \approx WH^T$.
Hybrid Optimization and Unrolling
The model integrates neural layers with classical optimization by unrolling iterations of the Alternating Direction Method of Multipliers (ADMM). Two primary variants are explored:
- Learned Initialization: The GNN provides a high-quality starting point for a standard solver.
- Learned Acceleration: GNN layers are interleaved with ADMM steps to "nudge" the optimization toward better solutions at each iteration.
Experimental Evaluation
The Factormer was evaluated on synthetic data and real-world datasets, including the Yale Face Database and the Jasper Ridge hyperspectral dataset.
Key Results
- Rapid Convergence: The learned initialization model achieves an error level in one step that traditional ADMM requires 20 iterations to reach.
- Superior Optima: On real-world data, neural-accelerated methods often achieved lower Root Mean Square Error (RMSE) than baselines, suggesting improved escape from local minima.
- Generalization: Models trained on small matrices successfully accelerated the factorization of much larger matrices, demonstrating architectural flexibility.
Conclusion
By bridging linear algebra and graph neural networks, the Factormer provides a scalable, size-agnostic framework for accelerating NMF. Future work will focus on improving scalability for industrial-scale matrices through graph sparsification and addressing the current limitation of fixed-rank factorization.
Summary updated