Abstract
We consider an adversarially-trained version of the nonnegative matrix factorization, a popular latent dimensionality reduction technique. In our formulation, an attacker adds an arbitrary matrix of bounded norm to the given data matrix. We design efficient algorithms inspired by adversarial training to optimize for dictionary and coefficient matrices with enhanced generalization abilities. Extensive simulations on synthetic and benchmark datasets demonstrate the superior predictive performance on matrix completion tasks of our proposed method compared to state-of-the-art competitors, including other variants of adversarial nonnegative matrix factorization.
Introduction
Nonnegative Matrix Factorization (NMF) is a fundamental tool in machine learning for discovering "parts-based" representations in data, such as facial features or document topics. By decomposing a nonnegative matrix $V$ into two lower-rank nonnegative matrices $W$ (dictionary) and $H$ (coefficients), NMF provides interpretable latent structures. However, standard NMF is often sensitive to noise and prone to overfitting, which degrades its performance in tasks like matrix completion where missing values must be predicted.
While adversarial training has significantly improved the robustness of deep neural networks, its application to matrix factorization has remained challenging. Previous attempts, such as ANMF, were difficult to tune due to complex requirements for instance-specific targets. This paper introduces AT-NMF (Adversarially-Trained Nonnegative Matrix Factorization), a principled and practical framework designed to enhance NMF's generalization through a robust optimization lens.
Methodology
The authors formulate AT-NMF as a min-max optimization problem, conceptualized as a game between two players:
- The Attacker: Aims to maximize reconstruction error by adding a bounded perturbation matrix $R$ to the original data $V$.
- The Learner: Adjusts the matrices $W$ and $H$ to minimize this worst-case error.
To make the problem tractable, the authors employ Lagrangian Relaxation, converting the hard constraint on the attacker's power into a single scalar hyperparameter, $\lambda$. This parameter controls the "strength" of the adversary. A key advantage of this formulation is that the optimal adversarial perturbation $R$ has a simple, closed-form solution. The training process alternates between identifying the worst-case $R$ and updating $W$ and $H$ using standard multiplicative update rules.
Experimental Evaluation
The performance of AT-NMF was evaluated on four diverse datasets:
- Synthetic Dataset: Generated via an inverse-Gamma distribution for controlled testing.
- CBCL Face Database: 2,429 facial images (19x19 pixels), a standard NMF benchmark.
- Moffet Dataset: Hyperspectral remote sensing imagery.
- Madonna Dataset: A second hyperspectral dataset with a distinct spectral profile.
The primary metric for evaluation was the Root Mean-Squared Error (RMSE) on matrix completion tasks, where a portion of the data (ranging from 10% to 90%) was held out during training.
Results and Discussion
AT-NMF consistently outperformed standard NMF and previous adversarial variants across all datasets. A critical insight is the role of the hyperparameter $\lambda$. As $\lambda$ increases, the adversary's influence diminishes, and the model mathematically converges to standard NMF.
As shown in the figure above, there is typically an optimal range for $\lambda$ (often around 2-3) where AT-NMF achieves its lowest error, significantly below the baseline NMF performance (represented by the dashed line). This "U-shaped" curve demonstrates that a moderate amount of adversarial pressure forces the model to learn more robust, distinctive features—such as eye shapes or nose ridges in the CBCL dataset—rather than overfitting to noise.
Furthermore, AT-NMF exhibits superior generalization: while it may reach a higher objective value on training data compared to standard NMF, its error on unseen test data is lower. This confirms that the adversarial "shaping" of noise effectively regularizes the model.
Conclusion
AT-NMF provides a robust and easy-to-use extension of classic NMF. By simplifying the adversarial framework to a single tunable parameter, the authors have created a practical tool for high-performance matrix completion.
Future work includes addressing the "oscillatory behavior" observed at very low $\lambda$ values to provide formal convergence guarantees. Additionally, extending the framework to other divergence measures, such as $\beta$-divergences, and developing online learning variants for streaming data remain promising directions for research.
Summary updated