Factoring nonnegative matrices with linear programs

Victor Bittorf, Benjamin Recht, Christopher Ré, Joel A. Tropp

Abstract

This paper describes a new approach, based on linear programming, for computing nonnegative matrix factorizations (NMFs). The key idea is a data-driven model for the factorization where the most salient features in the data are used to express the remaining features. More precisely, given a data matrix X, the algorithm identifies a matrix C such that X approximately equals CX and some linear constraints. The constraints are chosen to ensure that the matrix C selects features; these features can then be used to find a low-rank NMF of X. A theoretical analysis demonstrates that this approach has guarantees similar to those of the recent NMF algorithm of Arora et al. (2012). In contrast with this earlier work, the proposed method extends to more general noise models and leads to efficient, scalable algorithms. Experiments with synthetic and real datasets provide evidence that the new approach is also superior in practice. An optimized C++ implementation can factor a multigigabyte matrix in a matter of minutes.

Introduction

Nonnegative Matrix Factorization (NMF) is a cornerstone of machine learning, essential for finding meaningful parts-based representations of data, such as identifying topics in document collections or features in images. Despite its utility, NMF is notoriously difficult to solve, as the general problem is NP-hard.

While previous researchers have developed "provably correct" algorithms (notably the AGKM algorithm), these solutions often fall short in practical applications. They typically struggle with scalability on large datasets, require precise a priori knowledge of noise levels, and lack robustness when faced with messy, real-world data. This paper bridges the gap between theoretical correctness and practical scalability by framing NMF as a linear programming problem.

The Separability Assumption and Hottopixx

The authors leverage the separability assumption: the idea that for any dataset, there exists a small subset of "anchor" rows—referred to as "hott topics"—that can be used to reconstruct all other rows as convex combinations. Geometrically, this means the data points lie within a simplex defined by these anchor points.

Geometric representation of the separability assumption: data points (blue dots) lie within the convex hull of anchor points (1, 2, 3), with $d_1$ representing the margin.

To identify these anchor rows efficiently, the authors introduce the Hottopixx algorithm. Key technical contributions include:

  • Linear Programming (LP) Formulation: Finding anchor rows is reduced to a single, large-scale linear program.
  • Incremental Gradient Descent: To avoid the overhead of traditional LP solvers, Hottopixx uses a form of stochastic gradient descent to solve the LP efficiently.
  • Column Squishing: A novel, linear-time projection algorithm (Algorithm 5) ensures the matrix remains within required constraints during optimization.
  • Parallel Implementation: Designed for modern multicore processors, the implementation uses cache-aware data structures and "lock-free" updates to maximize throughput.

Key Insights: The Power of the Margin

A critical insight in this work is the introduction of a "margin constraint." This concept suggests that non-essential features should be reasonably far from the "hott topics" (represented by $d_1$ in the geometric model). By incorporating this assumption, the authors prove much tighter error bounds than previous work, particularly in high-noise environments.

Furthermore, the model is inherently data-driven. Instead of finding abstract factors, it forces the algorithm to select actual rows from the matrix as factors, ensuring the results remain highly interpretable. The authors also observed superlinear speedups during testing; because the localizing matrix $C$ is small enough to fit in a processor's L3 cache while worker threads scan the main data matrix, the algorithm's efficiency increases significantly as more cores are added.

Experimental Results

The researchers evaluated Hottopixx on both synthetic and real-world benchmarks, including a 2.7 GB "Jumbo" dataset, the ClueWeb09 co-occurrence matrix, and the RCV1 (Reuters Corpus Volume 1) text dataset.

  • Efficiency: Hottopixx can factor a multigigabyte matrix in approximately five minutes on a standard multicore workstation.
  • Noise Robustness: In synthetic tests, the algorithm remained accurate even under noise levels that caused previous state-of-the-art algorithms like AGKM to fail entirely.
  • Practical Utility: On the RCV1 dataset, using just 1,500 "hott topics" identified from over 47,000 features, the algorithm achieved a misclassification error of 7%, nearly matching the 5.5% error achieved using the full feature set.
  • Scalability: The implementation demonstrated superlinear scaling up to 20 threads, proving its optimization for modern hardware.

Conclusion

While Hottopixx relies on the separability assumption—which may not apply to every domain—it provides a robust and scalable framework for NMF in fields like text analysis and image processing. The authors suggest that this "factorization localizing" framework is general enough to be extended to other problems, such as subspace clustering or dictionary learning, potentially bringing similar scalability to those domains.

Summary updated

BibTeX
@inproceedings{bittorf2012factoring,
  author = {Victor Bittorf and Benjamin Recht and Christopher Ré and Joel A. Tropp},
  title = {{Factoring nonnegative matrices with linear programs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2012},
  url = {https://openreview.net/forum?id=S1NlVObdWr},
}
Figure