NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Deep Matrix Factorization Method for Learning Attribute Representations

George Trigeorgis, Konstantinos Bousmalis, Stefanos Zafeiriou, Björn W. Schuller

TL;DR

This paper introduces Deep Semi-Non-negative Matrix Factorization (Deep Semi-NMF), a hierarchical approach to data decomposition that learns multiple layers of "hidden" attributes. By stacking factorization layers, the model can disentangle complex, multi-modal data (like faces with varying poses and expressions) into a structured hierarchy, significantly outperforming standard shallow NMF methods in clustering and classification tasks.

What Problem Does This Paper Address?

Matrix factorization is a staple of data science, used to find low-dimensional representations of data. Non-negative Matrix Factorization (NMF) is particularly popular because its non-negativity constraints lead to "parts-based" representations that are easy for humans to interpret. However, standard NMF has two major limitations:

  1. Shallow Architecture: It assumes a single linear mapping between the data and its features. Real-world data is often hierarchical; for example, a face image is a mixture of identity, pose, and expression. A single layer struggles to capture these nested dependencies.
  2. Strict Non-negativity: Standard NMF requires the input data to be non-negative. This prevents its use on common features like image gradients or zero-centered data.

The authors address these gaps by proposing a "deep" version of Semi-NMF (which allows mixed-sign data) that can learn a hierarchy of latent attributes in both unsupervised and semi-supervised settings.

Methods

The core innovation is the Deep Semi-NMF model. Instead of factorizing a data matrix $X$ into two factors ($Z$ and $H$), the authors factorize the mapping matrix $Z$ itself into multiple layers: $$X \approx Z_1 Z_2 \dots Z_m H_m$$

Key Technical Features:

  • Semi-Non-negativity: Only the final feature matrix ($H_m$) and intermediate representations are constrained to be non-negative. The basis matrices ($Z_i$) can have mixed signs, allowing the model to process a wider variety of data types.
  • Non-linear Mappings: To handle data that isn't linearly separable, the authors introduce non-linear "squashing" functions (like $tanh$ or square functions) between layers.
  • Deep WSF (Weakly-Supervised Factorization): The authors extend the model to a semi-supervised version. By using Graph Laplacians, they can inject partial prior knowledge (like "these two images belong to the same person") into specific layers of the hierarchy.
  • Training Strategy: Borrowing from deep learning, they use a greedy layer-wise pre-training step followed by a global fine-tuning process to avoid getting stuck in poor local minima.

Datasets

The model was evaluated on face datasets, which are classic examples of hierarchical attribute data:

  • CMU PIE: 2,856 images of 68 subjects under varying light and illumination.
  • XM2VTS: 2,360 frontal images of 295 subjects.
  • Synthetic XOR Data: A 2D dataset designed to prove that the deep architecture can learn non-linear manifolds that shallow models cannot.

Key Insights and Ideas

  • The Hierarchy of Variance: The authors found that the model naturally organizes attributes by variance. The first layers tend to capture attributes with high variance (like pose), while deeper layers capture more stable, subtle attributes (like individual identity).
  • Unfolding the Manifold: Shallow NMF is essentially a linear projection. By adding layers and non-linearities, Deep Semi-NMF can "unfold" complex data structures, making them linearly separable in the final hidden space.
  • Supervised Pre-training as a Catalyst: One of the most interesting findings was that pre-training the model on a labeled auxiliary dataset (e.g., XM2VTS) significantly boosted the unsupervised clustering performance on a different target dataset (e.g., CMU PIE). This suggests the model learns generalizable "hierarchical features" of faces.

Key Results

  • Clustering Accuracy: On the CMU PIE dataset (using raw pixels), Deep Semi-NMF achieved a clustering accuracy of ~36.5%, compared to only ~27.7% for standard Semi-NMF.
  • Feature Robustness: When using Image Gradient Orientations (IGO) instead of raw pixels, the deep model's accuracy jumped to ~39%, outperforming all other NMF variants.
  • Classification: In the semi-supervised (Deep WSF) setting, the model achieved nearly 100% accuracy in classifying pose and expression, and ~65% for identity, significantly beating other state-of-the-art semi-supervised NMF methods like CNMF and DNMF.

Limitations and Future Work

  • Hyperparameter Sensitivity: The paper notes that the number of layers and the number of components in each layer are critical. While they suggest an exponential distribution for layer sizes (more capacity in early layers), finding the "optimal" architecture remains an empirical challenge.
  • Computational Cost: While they provide a complexity analysis, training multiple layers of matrix factorization is inherently more expensive than a single-layer decomposition.
  • Future Directions: The authors suggest extending this framework to multilinear algebra (tensors) to better represent the multi-dimensional nature of data, and applying the method to other domains like speech recognition.

Summary updated

BibTeX
@article{trigeorgis2017deep,
  author = {George Trigeorgis and Konstantinos Bousmalis and Stefanos Zafeiriou and Björn W. Schuller},
  title = {{A Deep Matrix Factorization Method for Learning Attribute Representations}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2017},
  doi = {10.1109/tpami.2016.2554555},
}
Figure