Least-Squares Methods for Nonnegative Matrix Factorization Over Rational Functions

Cécile Hautecoeur, Lieven De Lathauwer, Nicolas Gillis, François Glineur

TL;DR

This paper introduces R-NMF, a variation of Nonnegative Matrix Factorization where the basis factors are constrained to be samples of nonnegative rational functions. Unlike standard NMF, R-NMF provides an essentially unique factorization under mild conditions and excels at recovering smooth signals with sharp peaks, outperforming traditional polynomial or spline-based methods.

What Problem Does This Paper Address?

Nonnegative Matrix Factorization (NMF) is a cornerstone of data science, used to decompose a matrix $Y$ into two lower-rank nonnegative matrices, $A$ and $X$ ($Y \approx AX^\top$). While powerful, standard NMF faces two major hurdles:

  1. Identifiability: There are often infinite ways to factorize the same matrix, making it hard to know if the recovered "sources" are the true physical ones.
  2. Modeling Complexity: Many real-world signals (like chemical spectra or reflectance data) are mostly smooth but contain sharp peaks. Standard NMF or even NMF constrained by polynomials or splines often fails to capture these peaks accurately without using a very high degree of freedom, which leads to overfitting.

The authors propose using rational functions (ratios of two polynomials) to bridge this gap. Because the denominator of a rational function can approach zero, it can naturally represent sharp peaks that would require extremely high-degree polynomials to mimic.

Methods

The authors define R-NMF as an optimization problem where the columns of the basis matrix $A$ must be samples of nonnegative rational functions. To solve this, they propose three main algorithmic frameworks:

  • R-NLS (Nonlinear Least Squares): A global approach that solves for all parameters at once. It is highly accurate but doesn't scale well beyond very small problems.
  • R-ANLS (Alternating Nonlinear Least Squares): This method alternates between updating the entire matrix $A$ and the entire matrix $X$. It is more robust to changes in the number of observations ($n$) than other methods.
  • R-HANLS (Hierarchical Alternating Nonlinear Least Squares): Based on the popular HALS algorithm for NMF, this updates the columns of $A$ and $X$ one by one. It is the most computationally efficient for large-scale datasets.

A significant portion of the paper is dedicated to the projection problem: how to efficiently find the "closest" nonnegative rational function to a given vector. They compare several techniques, including a novel Conic approach and an adaptation of the RKFIT algorithm, finding that standard Least Squares projections often perform best on noisy data despite being slower.

Datasets

The researchers evaluated their methods across three types of data:

  1. Purely Synthetic: Signals generated directly from known rational functions to test the "exact" recovery and uniqueness properties.
  2. Semi-synthetic (USGS Spectral Library): Real reflectance signals from minerals (e.g., Kaolinite, Olivine) mixed with noise. These signals are smooth but contain characteristic "dips" and "peaks."
  3. Real-world (Indian Pines): A famous hyperspectral imaging dataset used for land-cover classification. The goal here was to use R-NMF as a preprocessing step to filter noise before running a classifier.

Key Insights and Ideas

  • The Uniqueness "Win": Perhaps the most important theoretical contribution is proving that R-NMF is essentially unique under mild conditions. In standard NMF, you usually need "sparsity" constraints to get a unique answer; here, the structural constraint of being a rational function is enough.
  • Rational Functions > Polynomials: Rational functions are shown to be more "expressive" than polynomials or splines for the same number of degrees of freedom. They can model complex shapes with fewer parameters, which inherently acts as a form of noise averaging.
  • The Initialization Trap: Because the set of rational functions is non-convex and not even closed under addition, the algorithms are very sensitive to their starting points. The authors suggest a "warm-start" strategy, using a few iterations of the more robust R-ANLS to initialize the faster R-HANLS.

Key Results

  • Noise Filtering: In semi-synthetic tests, R-NMF methods consistently obtained smaller residues (better fits) and higher Signal-to-Interference Ratios (SIR) than standard NMF, polynomial-NMF, or spline-NMF.
  • Classification Accuracy: On the Indian Pines dataset, using R-NMF as a preprocessing step led to higher classification accuracy (reaching ~76%) compared to standard NMF (~73%) or PCA (~71%), especially at lower factorization ranks ($r < 15$).
  • Efficiency Trade-offs: R-HANLS was confirmed as the go-to for large data, while R-ANLS remained the most accurate for medium-sized problems ($n < 1000$).

Limitations and Future Work

The authors acknowledge that R-NMF is significantly more computationally expensive than standard NMF because the projection step involves solving nonlinear sub-problems. Furthermore, the current parametrization (using Sum of Squares) is robust but complex.

Future research directions include:

  • Exploring Barycentric representations of rational functions to improve numerical stability.
  • Developing more efficient projection operators that don't require full nonlinear solvers at every iteration.
  • Extending the model to cases where the numerator and denominator aren't just polynomials but other types of nonnegative functions.

Summary updated

BibTeX
@article{hautecoeur2023least,
  author = {Cécile Hautecoeur and Lieven De Lathauwer and Nicolas Gillis and François Glineur},
  title = {{Least-Squares Methods for Nonnegative Matrix Factorization Over Rational Functions}},
  journal = {IEEE Trans. Signal Process.},
  year = {2023},
  url = {https://openreview.net/forum?id=E3ZmgyhFF1},
}
Figure