English

bayesNMF: Fast Bayesian Poisson NMF with Automatically Learned Rank Applied to Mutational Signatures

Methodology 2026-03-31 v3

Abstract

Bayesian Poisson Non-Negative Matrix Factorization (NMF) is widely used to model count data, including in cancer mutational signature analysis. However, standard Gibbs samplers rely on computationally expensive Poisson augmentation, and current software implementations learn the latent rank either through slow and potentially subjective heuristic rank selection or with automatic approaches that do not report posterior uncertainty. In this paper, we introduce bayesNMF, an MH-within-Gibbs sampler to address both of these limitations. First, we define high-overlap proposals for Metropolis-Hastings sampling to remove the need for Poisson augmentation. Second, we define a BIC-based sparsity prior to learn rank automatically within the Bayesian formulation while allowing for posterior uncertainty quantification. We provide an open-source R software package with all of the models and plotting capabilities demonstrated in this paper on GitHub at jennalandy/bayesNMF. Although our applications focus on cancer mutational signatures, our software and results can be extended to any use of Bayesian Poisson NMF.

Keywords

Cite

@article{arxiv.2502.18674,
  title  = {bayesNMF: Fast Bayesian Poisson NMF with Automatically Learned Rank Applied to Mutational Signatures},
  author = {Jenna M. Landy and Nishanth Basava and Giovanni Parmigiani},
  journal= {arXiv preprint arXiv:2502.18674},
  year   = {2026}
}

Comments

16 pages, 4 figures (+ references and supplement). For open-source R software package, see https://github.com/jennalandy/bayesNMF. For all code used in the simulation studies and data application, see https://github.com/jennalandy/bayesNMF_PAPER