Stratified-NMF for Heterogeneous Data

James Chapman, Yotam Yaniv, Deanna Needell · DOI

Introduction

Non-negative Matrix Factorization (NMF) has long been a cornerstone of unsupervised machine learning, prized for its ability to decompose complex datasets into interpretable, part-based representations. By factorizing a non-negative data matrix into a dictionary of "topics" and a set of corresponding "weights," NMF allows researchers to uncover the latent structure within high-dimensional data. However, a significant limitation of classical NMF is its underlying assumption of homogeneity—the premise that all data points are drawn from a single, uniform distribution.

In practice, real-world datasets are frequently heterogeneous, collected across diverse strata such as different time periods, geographic locations, or demographic groups. While these strata may share a common underlying structure, they often exhibit group-specific biases or "shifts" that can obscure universal patterns. Standard preprocessing techniques, such as mean-centering, are often incompatible with NMF because they violate the non-negativity constraints essential for interpretability. This paper introduces Stratified-NMF, a novel framework designed to explicitly model these strata-dependent differences while simultaneously learning a shared global representation.

The Stratified-NMF Framework

The core innovation of Stratified-NMF lies in its modified objective function. Rather than forcing a single dictionary to explain all variance, the model incorporates a strata-specific shift vector. For a dataset divided into $i$ strata, the data matrix $A(i)$ for each stratum is approximated as:

$$A(i) \approx \mathbf{1}v(i)^T + W(i)H$$

In this formulation:

  • $H$ (Global Dictionary): A shared matrix representing the universal topics or features common across all strata.
  • $W(i)$ (Local Weights): Strata-specific coefficients that map individual samples to the global topics.
  • $v(i)$ (Strata-Specific Shift): A rank-1 vector that captures the unique baseline or "noise" characteristic of a specific group.

By introducing the $v(i)$ term, the model effectively "de-biases" the global dictionary $H$. This allows $H$ to focus on capturing the fundamental features of the data, while the shift vectors absorb the local variations that would otherwise distort the factorization.

Optimization and Convergence

To solve this objective, the authors derived a set of Multiplicative Update Rules, extending the foundational work of Lee and Seung. These updates ensure that the non-negativity constraints are maintained throughout the optimization process. Crucially, the researchers provided a theoretical proof of convergence by demonstrating that the Stratified-NMF objective can be mapped onto a larger, structured block-NMF framework. This ensures that the objective function is non-increasing under the proposed update rules, providing numerical stability and reliable performance.

Experimental Validation

The effectiveness of Stratified-NMF was evaluated across four distinct domains, ranging from controlled synthetic environments to complex natural language datasets.

Synthetic and Image Data

On synthetic datasets, the algorithm demonstrated high precision, recovering ground-truth mean shifts with a normalized loss of $9.7 \times 10^{-4}$ within 2,000 iterations. The MNIST handwritten digit experiment provided a compelling visualization of the model's "separation of concerns." When data was stratified such that some digits were shared between groups and others were unique, Stratified-NMF naturally assigned the shared digits to the global dictionary $H$, while the unique digits were captured by the strata-specific shift vectors $v(i)$. This demonstrates the model's ability to automatically distinguish between universal and group-specific features.

Socio-Economic and Textual Analysis

In an application to the California Housing Dataset, the model revealed nuanced socio-economic trends. By stratifying the data by income levels, the researchers found that while certain features like "average rooms" scaled significantly with wealth, others like "house age" remained relatively constant across strata. In a standard NMF, these distinctions might be blurred, but Stratified-NMF preserves the integrity of the global trends while highlighting local deviations.

Finally, in the 20 Newsgroups text dataset, the local shift vectors proved to be highly semantically meaningful. For instance, in a stratum focused on medicine, the top words in $v(i)$ included "kidney" and "symptoms," capturing the specific vocabulary of that group without cluttering the global topic dictionary.

Conclusion and Future Work

Stratified-NMF offers a robust solution for the challenges posed by heterogeneous data in unsupervised learning. By explicitly modeling group-level shifts, it enhances both the accuracy and the interpretability of dimensionality reduction. The model is computationally efficient, avoiding the overfitting risks associated with training entirely separate models for each stratum.

While the current framework is powerful, future research could explore more flexible parameterizations, such as allowing for variable ranks across different strata. Additionally, investigating automated hyperparameter tuning and more sophisticated initialization strategies could further refine the model's performance. As datasets continue to grow in complexity and diversity, tools like Stratified-NMF will be essential for extracting clear, actionable insights from the noise of heterogeneity.

Summary updated

BibTeX
@inproceedings{chapman2023stratified,
  author = {James Chapman and Yotam Yaniv and Deanna Needell},
  title = {{Stratified-NMF for Heterogeneous Data}},
  booktitle = {ACSSC},
  year = {2023},
  doi = {10.1109/ieeeconf59524.2023.10476852},
}
Figure