Contextualized Differential Expression with Latent Cell-State Inference

Andrea Rubbi, Lama M. Salem, Caleb Ellington, Pietro Lio, Mohammad Lotfollahi, Manolis Kellis, Ben LengerichNeurIPS 2026

TL;DR

When studying a diseased tissue at the single-cell level, not every cell inside a sick patient is actually sick, and a gene’s response to disease often depends on biological context like age, sex, or cell subtype. Standard statistical pipelines ignore both realities by slapping the patient's diagnosis onto every single cell and averaging everything into a single number per gene. PRISM fixes this by simultaneously inferring which individual cells are truly affected and how gene expression shifts continuously across biological contexts—sharpening noisy single-cell data into a high-resolution map of disease.

What Problem Does This Paper Address?

A foundational question in genomics is differential expression (DE): which genes turn up or down when comparing healthy and diseased tissue? Single-cell RNA sequencing lets us measure gene activity in thousands of individual cells across hundreds of human donors. Yet, how we analyze this data suffers from a fundamental mismatch between labels and reality.

First is cell identity (the dilution problem). Clinical diagnoses happen at the patient level, not the cell level. Even in advanced Alzheimer’s disease, a patient's brain contains a vast majority of transcriptomically healthy immune cells (microglia) sitting right next to activated, diseased ones. Assuming every cell in an Alzheimer's donor is "diseased" contaminates the signal with healthy background noise.

Second is context. Standard DE pipelines output a single fixed effect size per gene. Historically, to respect donor-level variation and avoid false positives, researchers use "pseudobulk" methods—summing up all counts per donor before running statistical tests. While well-calibrated, aggregation averages away the exact heterogeneity single-cell tech was invented to see! A gene might spike dramatically in activated immune cells or older female patients while staying flat everywhere else.

Methods

The authors introduce PRISM (Phenotype-Resolved Inference in Single-cell Mixed models), which builds upon standard negative-binomial mixed-effects models (like NEBULA) that account for donor-level random effects and technical covariates.

Overview of the PRISM architecture, generative model, EM loop with PRISM-OT, and four coupled outputs.

PRISM introduces three major innovations to this standard backbone:

  1. Positive-Unlabeled (PU) Latent Cell States: Control-donor cells are deterministically anchored as healthy ($d_{ij} = 0$). Case-donor cells are modeled as a mixture of healthy and diseased states. Using an Expectation-Maximization (EM) loop, PRISM pools likelihood evidence across the entire transcriptome to compute a cell-level responsibility $q_{ij}$ (probability that cell $j$ in donor $i$ is in the disease state) and averages them into a donor burden score ($\rho_i$).
  2. Contextualized Disease Effects: Instead of a static scalar $\alpha_g$ for disease effect, PRISM models a linear function of observed context $\mathbf{z}_{ij}$ (e.g., continuous cell-state coordinates, age, sex): $\Delta_g(\mathbf{z}_{ij}) = \alpha_g + \boldsymbol{\theta}_g^\top \mathbf{z}_{ij}$. This gives two distinct statistical tests: general DE ($\alpha_g = 0$) and context-dependent DE ($\boldsymbol{\theta}_g = 0$).
  3. PRISM-OT Regularization: Left completely unsupervised, an EM algorithm looking for variation in case cells can easily latch onto strong nuisance signals—like batch effects or cell-cycle stages—rather than actual disease. PRISM-OT applies a closed-form 1-D Wasserstein-2 (optimal transport) projection at every E-step. It nudges the distribution of case-cell probabilities toward a bimodal "healthy/affected" shape while strictly preserving the likelihood-derived rank ordering of cells, all without needing pre-curated marker genes.

Datasets

PRISM is evaluated across three distinct regimes:

  • Synthetic Simulations & Stress Tests: Extending the simulation framework of He et al. (2021) across 924 runs varying prevalence, donor count, dispersion, and context strength—plus a newly designed confounded batch stress test where technical batch noise equals the true biological disease signal.
  • ROSMAP Human Alzheimer’s Cohort: Real-world observational data comprising 73,830 microglia from 420 human brain donors (234 Alzheimer’s cases, 186 controls).
  • Norman Perturb-seq Screen: A single- and dual-target CRISPRa genetic perturbation dataset where ground-truth "affected" labels are known at the single-cell level.

Key Insights and Ideas

  • De-diluting cells and modeling context are synergistic: Better context estimates ($\boldsymbol{\theta}_g$) sharpen the multi-gene likelihood ratios that identify sick cells ($q_{ij}$); in turn, weighting regression updates by $q_{ij}$ stops healthy cells in sick donors from diluting the gene-level effects.
  • Shape priors beat rigid marker panels: When batch effects rival disease signals, unanchored EM gets confused. Feeding the model curated marker genes prevents this but introduces heavy bias and ruins cell-ranking accuracy. PRISM-OT solves this cleanly by constraining only the marginal histogram shape of the probabilities, leaving the data free to rank which cells are sickest.
  • Pseudobulk calibration without pseudobulk blindness: By combining a clustered cell-level score test with a donor-level pseudobulk test, PRISM maintains rock-solid false-positive control across donors while unlocking pure single-cell hypotheses ($\boldsymbol{\theta}_g$) that have no pseudobulk equivalent.

Key Results

  • Simulations: PRISM achieves 95.1% power for general DE and 95.7% power for context-DE while holding false positive rates tightly in check ($\text{FPR}_\alpha = 2.0\%$, $\text{FPR}_\theta = 0.2\%$). Standard pseudobulk tools (DESeq2, edgeR) hit ~82% power with inflated FPRs ($\ge 13\%$) and cannot test context-DE at all.
  • Confounded Stress Test: Under heavy batch confounding, PRISM-OT drops context-DE false positives from 8.9% (unanchored) down to 0.8% while maintaining a perfect cell-ranking AUROC of 1.000 (compared to 0.751 for marker-anchored priors).
  • Alzheimer’s Microglia (ROSMAP): Converging in 12 minutes on a single A100 GPU, PRISM identifies 2,676 general DE genes (recovering canonical markers like APOE and LPL) and 1,539 context-DE genes (including 31 sex-varying genes), while localizing high-$q_{ij}$ cells cleanly to activated disease-associated microglia (DAM) regions.
  • Perturb-seq: Transferred with zero hyperparameter tuning, PRISM recovers 12/12 on-target CRISPRa genes and accurately tracks per-construct perturbation penetrance.

Limitations and Future Work

The authors are admirably transparent about what PRISM can and cannot claim:

  • Clean controls assumption: PRISM assumes control donors contain zero diseased cells ($d_{ij} = 0$). Undiagnosed latent pathology in control brains could violate this anchor.
  • Model scores, not clinical ground truth: $q_{ij}$ and $\rho_i$ reflect statistical fit to a two-component model, not assay-independent pathological truth, and PRISM-OT’s enforced bimodality does not prove the underlying biology is discrete.
  • Unmodeled confounding & linearity: While PRISM-OT tames context-DE false positives under unmodeled batch confounding, general-DE FPR remains elevated (0.210) if batch isn't explicitly adjusted for. Additionally, the context encoder is currently strictly linear, leaving nonlinear biological interactions for future work.

Summary updated

Abstract

Standard single-cell differential expression (DE) analysis identifies genes that change across conditions, but it usually overlooks two key sources of heterogeneity that single-cell data are uniquely positioned to reveal: how disease-associated expression varies among cells within a donor, and how expression contrasts depend on cell state or subject-level context. Assigning every cell the diagnosis of its donor can contaminate DE signal when disease penetrance is partial, while modeling each gene with a single disease effect cannot capture heterogeneous responses across cell populations. We present PRISM (Phenotype-Resolved Inference in Single-cell Mixed models), a negative-binomial mixed-effects framework that augments standard DE analysis with three outputs: a context-DE vector \(\boldsymbol{\theta}_g\) that tests whether disease effects vary along a biological axis \(\mathbf{z}_{ij}\) (such as cell state, sex, or age); regularised cell-state responsibilities \(q_{ij}\) for a putative disease-associated expression component; and a subject-level state summary \(\rho_i\). Naive likelihood-only inference of \(q_{ij}\) can align with nuisance variation (batch, cell cycle, or dominant subtypes) rather than the intended disease axis. We therefore introduce PRISM-OT, a closed-form one-dimensional Wasserstein-2 projection that regularises the disease-arm posterior toward an affected/unaffected marginal while preserving the likelihood-derived rank ordering of cells. In simulations, PRISM accurately recovers simulated latent-state assignments and detects context-dependent DE at \(P_{\mathrm{ctx}}=95.7\%\) while controlling \(\mathrm{FPR}_{\alpha}=2.0\%\). Applied to 73,830 ROSMAP microglia from 420 subjects, PRISM recovers Alzheimer's-consistent microglial biology in a single joint analysis. On a Perturb-seq benchmark with ground-truth cell-level labels, PRISM transfers without tuning and recovers per-construct penetrance estimates consistent with an independent proxy. PRISM is available on PyPI as `prism-de`.
BibTeX
@inproceedings{rubbi2026contextualized,
  author = {Andrea Rubbi and Lama M. Salem and Caleb Ellington and Pietro Lio and Mohammad Lotfollahi and Manolis Kellis and Ben Lengerich},
  title = {{Contextualized Differential Expression with Latent Cell-State Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=RRB4zaB0gn},
}
Figure