A consistent and flexible framework for deep matrix factorizations

Pierre De Handschutter, Nicolas Gillis · DOI

TL;DR

Deep Matrix Factorization (DMF) is a powerful tool for uncovering hierarchical structures in data, but existing algorithms often use inconsistent loss functions that lead to poor convergence. This paper introduces a "consistent and flexible" framework with two new loss functions—layer-centric and data-centric—that stabilize training and significantly improve the quality of extracted features in applications like facial recognition and hyperspectral imaging.

What Problem Does This Paper Address?

Matrix Factorization (MF) is a staple of unsupervised learning, used to break down complex data into simpler "basis vectors" (like identifying the primary colors in a painting). Deep MF takes this further by stacking multiple layers of factorization, aiming to find a hierarchy of features—for example, moving from individual pixels to facial parts (eyes, noses) to full faces.

However, the authors point out a major flaw in the current state-of-the-art: mathematical inconsistency. Most existing Deep MF algorithms claim to minimize a global error, but their actual update rules minimize different, conflicting objectives at different layers. This often causes the algorithm to "forget" the structure of the first layers while trying to optimize the last ones, leading to unstable training or even divergence. Furthermore, without proper constraints, these deep models can collapse into "degenerate" solutions that offer no more insight than a standard, single-layer model.

Methods

The authors propose a unified framework that treats Deep MF as a global optimization problem rather than a sequence of independent steps. They introduce two primary loss functions:

  1. Layer-centric loss ($L_1$): This minimizes a weighted sum of errors between adjacent layers (e.g., how well layer 2 approximates the basis of layer 1). It acts as a "globalized" version of sequential factorization.
  2. Data-centric loss ($L_2$): This minimizes the error between the original raw data and the approximation provided by each successive layer.

To solve these, they use a Restarted Fast Projected Gradient Method (FPGM). This approach is highly flexible, allowing researchers to easily plug in various constraints and regularizations, such as:

  • Nonnegativity: Ensuring all features are positive (essential for images and chemical concentrations).
  • Sparsity: Forcing the model to use as few basis vectors as possible to explain the data, which improves interpretability.
  • Minimum-Volume: A technique that "shrinks" the basis vectors to wrap tightly around the data points, which is crucial for identifying pure materials in hyperspectral unmixing.

Datasets

The framework was evaluated on three distinct types of data:

  • Synthetic Data: A 3D toy dataset where the "ground truth" was known, allowing the authors to verify if the algorithm actually recovered the correct underlying structure.
  • Urban Hyperspectral Image: A real-world dataset consisting of 162 spectral bands. The goal was to identify materials (grass, asphalt, roof) and their hierarchical relationships.
  • CBCL Face Database: A classic dataset of 2,429 grayscale images of faces, used to demonstrate how the model extracts hierarchical facial features (e.g., eyes and mouths at deeper layers).

Key Insights and Ideas

  • The "Backpropagation" of MF: Much like deep neural networks require consistent gradients, Deep MF requires a loss function that "communicates" across all layers. The authors show that their "Layer-Centric" approach ($L_1$) is particularly effective because it balances the importance of every layer simultaneously.
  • Efficiency vs. Accuracy: The paper notes that while the Data-centric loss ($L_2$) is more intuitive (always looking back at the original data), it is computationally more expensive. The Layer-centric loss ($L_1$) offers a "sweet spot"—it is faster to compute while still providing excellent feature recovery.
  • Avoiding Degeneracy: By adding a minimum-volume constraint to a deep architecture for the first time, the authors prevented the model from falling into trivial, non-informative solutions, a common pitfall in over-parametrized deep models.

Key Results

  • Superior Recovery: In synthetic tests, the proposed LC-DMF (Layer-Centric) model consistently achieved the lowest Mean-Removed Spectral Angle (MRSA), meaning it was the most accurate at finding the true hidden basis vectors.
  • Stability: While the popular "Tri-DMF" baseline often diverged or oscillated (especially on the first layer of the facial dataset), the authors' framework remained stable and converged to meaningful features.
  • Hyperspectral Unmixing: On the Urban dataset, LC-DMF outperformed all other deep methods and even rivaled specialized single-layer NMF models, successfully grouping "vegetal" (trees/grass) and "non-vegetal" (road/roof) features into a clear hierarchy.
  • Interpretability: The facial feature extraction showed that the new framework produced sparser, cleaner representations of facial parts compared to sequential methods.

Limitations and Future Work

  • Hyperparameter Tuning: The models introduce several weights ($\lambda$ and $\mu$) to balance the importance of different layers. Currently, these require manual tuning or heuristics based on initial error levels.
  • Identifiability: While the results are empirically strong, the theoretical "uniqueness" of the solutions (identifiability) in a deep context remains a complex mathematical challenge that the authors suggest as a path for future research.
  • Broader Applications: The authors suggest that this consistent framework could be extended to other domains like topic modeling or multi-view clustering.

Summary updated

BibTeX
@article{handschutter2023consistent,
  author = {Pierre De Handschutter and Nicolas Gillis},
  title = {{A consistent and flexible framework for deep matrix factorizations}},
  journal = {Pattern Recognition},
  year = {2023},
  doi = {10.1016/j.patcog.2022.109102},
}
Figure