Abstract
Nonnegative Matrix Factorization (NMF) aims to factorize a matrix into two optimized nonnegative matrices appropriate for the intended applications. The method has been widely used for unsupervised learning tasks, including recommender systems and document clustering. However, traditional NMF methods typically assume the number of latent factors to be fixed, making them inflexible for many applications. We propose a nonparametric NMF framework to mitigate this issue by using dependent Indian Buffet Processes (dIBP). We apply a correlation function for the generation of two stick weights associated with each pair of columns of loading matrices, while still maintaining their respective marginal distribution specified by IBP. We propose two classes of correlation functions: (1) using Bivariate beta distribution and (2) using Copula function. Compared with state-of-the-art approaches like Gaussian Process (GP)-based dIBP, our work is more flexible in allowing the two corresponding binary matrix columns to have greater variations in their non-zero entries. Experiments on real-world and synthetic datasets show that our proposed models perform well on document clustering and recommendation tasks without predefining factor matrix dimensions.
Introduction
Nonnegative Matrix Factorization (NMF) is a staple for tasks like document clustering (finding topics in text) and recommender systems (finding movie genres). Standard NMF works by breaking a large data matrix $Y$ into two smaller matrices, $A$ and $X$, such that $Y \approx AX^T$.
A significant challenge in traditional NMF is the requirement to specify the number of latent factors ($k$) beforehand. Choosing a $k$ that is too small results in information loss, while a $k$ that is too large leads to overfitting. While "nonparametric" methods exist to let $k$ grow with the data, existing solutions often struggle to coordinate the sparsity between the two factor matrices effectively or are computationally cumbersome.
Methodology
We propose a framework where the number of columns in the factor matrices is theoretically infinite but determined in practice by the data. We utilize the Indian Buffet Process (IBP)—a stochastic process used to define priors for sparse binary matrices—to act as a "mask" for the factor matrices.
Because NMF requires $A$ and $X$ to have the same number of columns, these two processes must be linked. Our core innovation is the dependent IBP (dIBP), implemented via two new correlation mechanisms:
- Bivariate Beta Distribution: This links the "stick-breaking" weights (which determine how likely a feature is to be active) of the two matrices at the start of the generative process.
- Copula-based dIBP: Using a Farlie-Gumbel-Morgenstern (FGM) Copula, we link two marginal Beta distributions, allowing for nuanced control over the correlation between the sparsity patterns of the two matrices.
These methods are compared against a standard Gaussian Process (GP)-based dIBP, which is more complex and assumes that the number of non-zero entries in corresponding columns must be nearly identical—a restriction our new methods relax.
Key Insights and Results
Asymmetric Sparsity and Flexibility
In applications like recommender systems, a user might have interests in many genres (low sparsity), while a movie might only belong to one or two (high sparsity). Our Bivariate Beta and Copula models allow for this "asymmetry" between the two factor matrices. By modeling correlation at the weight level rather than the entry level, the proposed models have a simpler structure and faster convergence.
Experimental Performance
- Convergence Speed: The Bivariate Beta model (BB-dIBP) converged in roughly 200 iterations, significantly faster than the GP-based model which required over 1,500 iterations.
- Clustering and Recommendation: On the Cora and CiteSeer datasets, our models achieved clustering accuracy comparable to standard NMF without needing a predefined topic count. On MovieLens 100K, the BB-dIBP model achieved the lowest Mean Absolute Error (MAE), outperforming standard NMF across most choices of $k$.
Conclusion
Our proposed dIBP-based NMF framework provides a flexible, self-sizing approach to matrix factorization. By relaxing the rigid constraints of GP-based models, we achieve better performance and faster convergence. Future work will explore variational inference strategies to scale these nonparametric models to massive datasets, replacing stochastic sampling with more efficient optimization problems.
Summary updated