arXiv:2610.27322cs.LGOct 2026

Manuscript Offprint

arXiv:2610.27322

VampPrior Unleashed

Andrew A. Stirn, Abhejit Rajagopal, David A. Knowles, Grace Huynh

Abstract

Deep latent variable models (DLVMs) underpin many modern analysis pipelines, for example in single-cell genomics, yet their prior distributions have received markedly little attention. The VampPrior approximates the optimal prior (the aggregate posterior) and often attains high model evidence. Here, we identify two key limitations of the VampPrior: it ties prior and posterior uncertainty to a single amortized covariance and clusters poorly due to its fixed uniform mixture weights. We unleash the VampPrior by decoupling its prior and posterior covariances, resolving the conflict of generating high prior and low posterior entropy with the same shared parameters and substantially improving model evidence. We then replace the uniform mixture with a Dirichlet process. When combined, our proposals provide higher model evidence than the VampPrior and robust non-parametric clustering. Augmenting single cell Variational Inference (scVI) with our prior improves single-cell integration and clustering across six atlases while significantly raising model evidence. Our approach changes only the prior and thus can be applied to any DLVM with a continuous latent space.

1 INTRODUCTION

Deep latent variable models (DLVMs) underpin many of the popular single-cell models of the last decade: scVI (Lopez, Regier, et al. 2018) and scANVI (Xu et al. 2021) for scRNA-seq; PeakVI (Ashuach, Reidenbach, et al. 2022) and PoissonVI (Martens et al. 2024) for ATAC-seq; MethylVI and MethylANVI (Weinberger et al. 2026) for scBS-seq; totalVI (Gayoso et al. 2021) for Cite-seq; MultiVI (Ashuach, Gabitto, et al. 2023) for single-cell multi-omics; and DestVI (Lopez, Li, et al. 2022), ResolVI (Ergen and Yosef 2025), and scVIVA (Levy et al. 2025) for spatial transcriptomics. Single-cell analyses benefit from explicit probabilistic modeling to handle sparse, noisy, and over-dispersed count data; batch effects (nuisance technical variation); and partially labeled data. DLVMs provide an integrated low-dimensional, batch-effect-free representation of the data that enables downstream tasks such as clustering, visualization, trajectory inference, and differential expression analysis. Despite widespread adoption of DLVMs by biologists, there has been little innovation in the prior distributions used in these models. Prior choice governs the geometry of the latent space, affecting posterior collapse, representation quality, and, critically for single-cell applications, the recovery of discrete cell-type clusters and continuous differentiation trajectories. Roughly half of the aforementioned methods employ a standard normal prior, while the other half employ a Gaussian mixture model (GMM) prior. DestVI is the only method to leverage the VampPrior (Tomczak and Welling 2018) (albeit alongside a standard normal prior).

Observing an awkward tradeoff between a GMM prior's clustering quality and the VampPrior's model evidence, Stirn and Knowles (2025) introduced the VampPrior Mixture Model (VMM). They tune the VMM to achieve state-of-the-art clustering but find there its model evidence lags behind the VampPrior's, suggesting the model is a less faithful descriptor of the observed data. This paper asks, "Can we have the best of both worlds?" and "How can we easily traverse the tradeoff between structure and model evidence?" We propose a new nonparametric prior that definitively shifts the Pareto frontier of the clustering-quality and model-evidence tradeoff. At their most-balanced operating points, our approach outperforms the VMM at both clustering and model evidence.

Our technical contributions are twofold. First, we recognize the VampPrior's decision to model prior and posterior variance with the same shared parameters hamstrings its modeling performance since the same covariance parameterizing function has the conflict-ing tasks of producing both low entropy posteriors that drive predictive performance and a higher entropy prior that governs the marginal likelihood. Our VampPrior-Unleashed frees the VampPrior from this artificial constraint by decoupling the VampPrior's component covariances from the encoder network. We find that this additional degree of freedom greatly improves model evidence. Second, we replace the VampPrior's uniform mixture with a Dirichlet process (DP) mixture to encourage fewer active components. Empirically, we observe that a DP VampPrior (without decoupled covariances) exacerbates evidence degradation making our proposed covariance decoupling even more valuable if using a DP. In contrast, at its most-balanced operating point our DP-VampPrior-Unleashed (a DP-mixture VampPrior with decoupled covariances) yields a well-structured latent distribution with cohesive, parsimonious clusters and significantly higher evidence than even the VampPrior's highest attainable—a substantial achievement given the VampPrior already approximates the optimal prior for the evidence lower bound (ELBO). Conveniently, adjusting the DP's concentration traverses the Pareto frontier without needing to specify the number of mixture components a priori.

Augmenting scVI with our DP-VampPrior-Unleashed prior improves its single-cell integration benchmark (scIB) Luecken et al. (2022) metrics while attaining state-of-the-art levels of marginal likelihood enabling higher-fidelity downstream differential expression analyses. We emphasize that our contributions apply to any continuous latent-space DLVM despite our experimental focus on single-cell data. We anticipate many more applications may benefit from our approach in biology and beyond.

References (30)