Modelling Cellular Perturbations with the Sparse Additive Mechanism Shift Variational Autoencoder

Michael Bereket, Theofanis Karaletsos

In drug discovery and molecular biology, researchers increasingly rely on "perturb-seq" experiments to observe how thousands of individual cells react to different interventions, such as gene edits or chemical treatments. The ultimate goal is to build a "digital twin" of a cell capable of predicting the effects of novel drugs or treatment combinations without requiring exhaustive, costly laboratory experiments.

However, existing machine learning models face two major hurdles in this domain. First is disentanglement: it is notoriously difficult to separate a cell's "basal" state (its natural, unperturbed variation) from the specific "shift" caused by an intervention. Second is generalization: most models struggle to predict "out-of-distribution" (OOD) scenarios, such as how two drugs will behave when combined if the model has only seen them administered individually.

To address these challenges, researchers have introduced the Sparse Additive Mechanism Shift Variational Autoencoder (SAMS-VAE). This framework operates on the biological intuition that cellular responses are often sparse—a single gene knockout or targeted drug does not alter every cellular process at once. By forcing learned latent shifts to be sparse, SAMS-VAE achieves superior generalization to unseen combinations and uncovers interpretable latent structures that map directly to known biological pathways.

The SAMS-VAE Architecture

SAMS-VAE introduces a generative framework that models how cells respond to interventions by learning sparse, additive shifts in a latent space. Its architecture relies on several key innovations:

  • Additive Latent Space: The latent state of a perturbed cell ($z$) is modeled as the sum of its basal state ($z^b$) and a perturbation effect ($z^p$).
  • Mechanism Sparsity: The perturbation effect is defined as $e_t \odot m_t$, where $e_t$ is a global latent vector for a specific treatment and $m_t$ is a sparse binary mask. This mask forces the model to identify a specific, limited subspace of the latent dimensions that the treatment actually affects.
  • Correlated Inference: Standard VAEs often assume latent variables are independent during inference. SAMS-VAE uses a "correlated encoder" that considers the predicted perturbation effect when encoding the basal state, leading to much more accurate posterior distributions.
Algorithm and graphical model for the SAMS-VAE generative process.

To rigorously measure perturbation-specific model properties, the authors also introduce a framework for evaluating these models using Average Treatment Effects (ATE), comparing the model's predicted changes against real-world differential expression data.

Key Insights and Results

The model was evaluated on two large-scale single-cell RNA-sequencing (scRNA-seq) datasets: the Replogle et al. CRISPRi dataset (over 118,000 cells and 722 unique genetic perturbations) for testing biological mechanism recovery, and the Norman et al. CRISPRa dataset (105 unique guides and 131 combinations) for benchmarking combinatorial OOD reasoning.

Sparsity as a Regularizer for Discovery

By enforcing sparsity through the binary mask, SAMS-VAE avoids simply "fitting the noise." Instead, the latent dimensions naturally align with real biological modules. The learned masks are highly predictive of known molecular pathways, outperforming other disentanglement-focused models in recovering biological ground truth. For example, specific latent dimensions cleanly map to annotated pathways like the Mediator Complex, Spliceosome, and various Ribosomal Subunits.

Latent embeddings and mask probabilities showing SAMS-VAE's alignment with annotated biological pathways.

State-of-the-Art Generalization and Fidelity

SAMS-VAE achieved the highest test Importance Weighted ELBO (IWELBO), indicating it captures the underlying data distribution better than baselines like CPA or SVAE+. Furthermore, in the Replogle dataset, SAMS-VAE achieved an ATE-Pearson correlation of 0.765, meaning its predicted gene expression changes matched real-world differential expression data significantly better than simpler models.

Combinatorial Success

The additive assumption ($z = basal + effect_1 + effect_2$) holds up remarkably well for predicting unseen combinations. In the Norman OOD task, SAMS-VAE consistently outperformed baselines at predicting the effects of drug combinations that were entirely absent from the training set, suggesting that complex biological systems often behave linearly in a properly regularized latent space.

Limitations and Future Directions

While the additive assumption is powerful, biology is not always strictly linear. Some drug combinations result in synergy or antagonism, where the total effect is significantly more or less than the sum of its parts. While SAMS-VAE handles some of this non-linearity through its deep decoder, explicitly modeling non-additive interactions in the latent space is a clear next step.

Additionally, the model currently relies on intervention "dosage" being a binary (on/off) or simple scalar value. Future iterations could integrate more complex prior knowledge about chemical structures or gene regulatory networks to further guide the latent space, making SAMS-VAE an even more robust tool for machine learning-driven scientific discovery.

Summary updated

BibTeX
@inproceedings{bereket2023modelling,
  author = {Michael Bereket and Theofanis Karaletsos},
  title = {{Modelling Cellular Perturbations with the Sparse Additive Mechanism Shift Variational Autoencoder}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=DzaCE00jGV},
}
Figure