henhaobio
Sign in

bioRxivBioinformaticsPreprint

Fast and interpretable non-negative matrix factorization for atlas-scale single cell data

Zachary J. DeBruineiD, John Andrew PospisilikiD, Timothy J. TricheiD

PDFDOI

Abstract

Non-negative matrix factorization (NMF) is a popular method for analyzing strictly positive data due to its relatively straightforward interpretation. However, NMF has a reputation as a less efficient alternative to the singular value decomposition (SVD), a standard operation that is highly optimized in most linear algebra libraries. Sparse single-cell sequencing assays, now feasible in thousands of subjects and millions of cells, generate data matrices with tens of thousands of strictly non-negative transcript abundance entries. We present an extremely fast NMF implementation made available in the RcppML (Rcpp Machine Learning library) R package that rivals the runtimes of state-of-the-art Singular Value Decomposition (SVD). NMF can now be run quickly on desktop computers to analyze sparse single-cell datasets consisting of hundreds of thousands of cells. Our method improves upon current NMF implementations by introducing a scaling diagonal to increase interpretability, guarantee consistent regularization penalties across different random initializations, and symmetry in symmetric factorizations. We use our method to show how NMF models learned on standard log-normalized count data are interpretable dimensional reductions, describe interpretable patterns of coordinated gene activities, and explain biologically relevant metadata. We believe NMF has the potential to replace PCA in most single-cell analyses, and the presented NMF implementation overcomes previous challenges with long runtime.

Abstract summary

Claude Opus 5.5 · xhigh effort · 18 Oct 2026 · from the abstract · CC BY-ND 4.0

An Rcpp implementation brings non-negative matrix factorization to singular-value-decomposition-like runtimes on sparse single-cell matrices, adding a scaling diagonal that keeps regularization penalties consistent across random initializations.

Non-negative matrix factorization (NMF) is used on strictly positive data because its factors are relatively easy to interpret, but it has a reputation for being less efficient than the heavily optimized singular value decomposition (SVD) routines in linear algebra libraries, which matters once a dataset reaches hundreds of thousands of cells. The authors present an implementation they say closes that runtime gap and, with a scaling diagonal, keeps regularization penalties consistent across random initializations.

Key results

  1. ClaimedAn NMF implementation shipped in the RcppML R package is reported to run at speeds competitive with optimized SVD, putting atlas-scale factorization within reach of a desktop machine.

    Described as rivalling SVD runtimes and as usable on sparse single-cell data of hundreds of thousands of cells; no timings, hardware, datasets or SVD implementation are named in the abstract. · Abstract

  2. ClaimedA scaling diagonal is added to the factorization so that regularization penalties stay consistent across different random initializations and symmetric factorizations remain symmetric.

    Presented as the algorithmic change over existing NMF implementations; the abstract reports no experiment demonstrating the improved consistency or symmetry. · Abstract

  3. SuggestedRun on standard log-normalized counts, the factors are presented as interpretable dimensions that capture coordinated gene activity and line up with biological metadata.

    Asserted from applications of the method; no datasets, factor counts, metadata variables or comparison with principal component analysis are reported in the available text. · Abstract

Methods, data and reproducibility

A fast NMF routine for sparse non-negative matrices, released as the RcppML (Rcpp Machine Learning library) R package, with a diagonal scaling term folded into the factorization; it is applied to log-normalized single-cell count matrices as a dimensionality reduction.

Methods & tools
RcppML, R, NMF, SVD, PCA
Limitations (2)
  • No runtime, memory or accuracy numbers, no named datasets and no named SVD or NMF baseline appear in the available text, so the speed claim cannot be checked from it. · noted in this summary
  • The suggestion that NMF could take over from principal component analysis in most single-cell analyses is offered as the authors' view, without a head-to-head comparison in the abstract. · noted in this summary

Read this if you default to PCA for single-cell dimensionality reduction and want factor-based alternatives that stay tractable at hundreds of thousands of cells.

Citations
63

Reproducibility ledger

Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.

Sign in to file a reproducibility report.

Similarity Map
SelectedSame fieldCross-field
THISJohnson '23Mao '22Kleverov '26Liefeld '23Elyanow '20Han '26
70% semantic matchSystems Biology
Jeanette Johnson, Ashley P. Tsang, Jacob T. Mitchell+15 more·Nature Protocols·Nov 21, 2023· 26 citations