Skip to content

Non-negative Matrix Factorization

A constrained matrix representation approximating nonnegative observations as additive combinations of nonnegative learned basis components.

Version
v2 · 2026-11-14 · History
Domain-specific #
13468
Domain group
Applied Sciences & Engineering
Origin domain
Computer Science & Software Engineering
Subdomains
Machine Learning, Numerical Linear Algebra → Computer Science & Software Engineering
Aliases
Nonnegative matrix factorization, NMF

Core Idea

Non-negative matrix factorization (NMF) seeks nonnegative factors \(W\) and \(H\) whose product approximates a nonnegative data matrix \(V\): \(V\approx WH\). Typically \(V\) has features in rows and observations in columns; \(W\) supplies shared nonnegative basis profiles and \(H\) gives nonnegative weights for each observation. The chosen inner dimension \(r\) determines the number of profiles and often yields compression.[1][2]

Because every contribution \(W_{ik}H_{kj}\) is nonnegative, the representation combines components additively without cancellation. This can support a parts-based reading, but nonnegativity alone does not guarantee unique factors or recovery of actual sources. NMF names the constrained model, not one Lee–Seung multiplicative-update algorithm or one loss function.[1][3]

How would you explain it like I'm…

Sticker Stacking Pictures

Imagine a big picture made by stacking see-through stickers on top of each other. You can only add stickers, never cut pieces away. This idea finds a few sticker shapes and how much of each to use so that piling them up rebuilds the picture as closely as possible.

Add-Only Ingredient Finder

Imagine a big table of numbers, like how much of each color is in many pictures, where none of the numbers are negative. Non-negative matrix factorization tries to rebuild that table from two smaller tables: a short list of 'ingredient' patterns, and a recipe saying how much of each ingredient to add. Everything in both tables has to be zero or more, so ingredients can only be added, never subtracted. You choose how many ingredients to allow, and with only a few, the small tables are a squeezed-down version of the big one.

Add-Only Parts Decomposition

Non-negative Matrix Factorization takes a data table with no negative entries and approximates it as the product of two smaller non-negative tables, W and H. Each column of the data is rebuilt as a weighted sum of a few basis columns from W, using weights from H that are also never negative. Because nothing can be subtracted, the pieces can only add up, which sometimes makes them look like recognizable parts, such as parts of faces or notes in music. The number of pieces, r, is chosen by you; a small r compresses the data but usually means the rebuild is only approximate. It differs from methods that allow negative weights, where pieces can cancel each other out. Even so, the parts it finds are not guaranteed to be the true, unique sources behind the data.

 

NMF represents a non-negative matrix V (m by n) as V ≈ WH, where W (m by r) and H (r by n) are also constrained to be non-negative. Each observation column v_j is approximated as the sum over k of h_kj w_k, an additive, conical combination of basis columns. The inner dimension r sets how many components are available; when r is small relative to m and n, the factorization compresses the data. NMF is a constrained representation problem, not a particular algorithm: Lee and Seung's multiplicative updates for squared-Euclidean and generalized Kullback-Leibler losses are one approach, but other solvers and losses target the same form. Exact factorizations exist for some matrices and choices of r, but practical work usually trades exactness for compression or interpretable structure. Comparing two factorizations requires stating the data scaling, r and the loss. Because the constraint forbids subtraction, NMF can yield parts-based representations (as in face images or music spectra), but uniqueness and recovery of true sources require additional identifiability conditions.

Scope of Application

Lee and Seung used nonnegative facial pixel values, learning basis images and per-face encodings. Smaragdis and Brown used nonnegative magnitude spectra over time, with spectral-note profiles and activations as the two factors. These are unlike data settings with the same \(V,W,H\) roles. The rank, measurement scale and reconstruction criterion need to be stated for each; low error does not by itself validate an interpretation of the factors.[1][4]

The frozen title “Online NMF” redirects to the broad Wikipedia page but denotes a narrower streaming/update-mode family. This draft does not absorb it as an alias or claim its separate identity has been adjudicated.

Clarity

NMF differs from signed low-rank methods such as PCA because negative factor entries and cancellation are excluded. It also differs from vector quantization, which selects one prototype rather than combining several nonnegative profiles. A factorization may still be ambiguous: positive diagonal rescaling of \(W\) with inverse rescaling of \(H\) leaves \(WH\) unchanged, and stronger nonuniqueness may remain without further data conditions.[1][3]

Manages Complexity

\(W\) captures repeated feature profiles and \(H\) records where and how strongly each profile participates. The representation reduces many observations to a smaller shared vocabulary when \(r\) is suitably chosen. Its economy is conditional: too few components can miss important structure, while extra components can reduce residual error at the cost of redundancy or unstable interpretation.[2][4]

Abstract Reasoning

Identify a genuinely nonnegative data matrix, choose compatible factor dimensions and an approximation criterion, find nonnegative \(W,H\), then evaluate both reconstruction and component stability. Squared Euclidean and generalized KL losses are common alternatives. Their optimization algorithms are implementations; they do not alter the minimal \(V\approx WH\) identity. Additional identifiability assumptions are needed before calling a basis column a recovered physical part.[2][3]

Knowledge Transfer

Live Factorization is related but is not asserted as a strict DAG parent: it requires exact recovery and same-type factors, while ordinary NMF can be approximate with rectangular \(W,H\). NMF's mathematical accent is that the data and both factors are entrywise nonnegative, with a declared inner dimension and fit question. The face and music studies show literal role transfer, not a general guarantee of semantic parts.

Neighborhood in Abstraction Space

Non-negative Matrix Factorization sits in a sparse region of the domain-specific corpus (76th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Statistical Learning & Model Failure Modes (44 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] Daniel D. Lee and H. Sebastian Seung, “Learning the parts of objects by non-negative matrix factorization”, Nature 401 (1999), pp. 788–791; full-text copy. registry ↩a ↩b ↩c ↩d

[2] Daniel D. Lee and H. Sebastian Seung, “Algorithms for Non-negative Matrix Factorization”, NeurIPS 13 (2000/2001), §§2–3. registry ↩a ↩b ↩c

[3] David Donoho and Victoria Stodden, “When Does Non-Negative Matrix Factorization Give a Correct Decomposition into Parts?”, NeurIPS 16 (2003), abstract and §§1–2. registry ↩a ↩b ↩c

[4] Paris Smaragdis and Judith C. Brown, “Non-Negative Matrix Factorization for Polyphonic Music Transcription”, IEEE WASPAA (2003), §§1.1–1.2. registry ↩a ↩b