Abstract: CRISPR technology, combined with single-cell RNA-Seq, has opened the way to large scale pooled perturbation screens, allowing more systematic interrogations of gene functions in cells at scale. However, such Perturb-seq data poses many analysis challenges, due to its high-dimensionality, high level of technical noise, and variable Cas9 efficiency. The single-cell nature of the data also poses its own challenges, as we observe the heterogeneity of phenotypes in the unperturbed cells, along with the effect of the perturbations. All in all, these characteristics make it difficult to discern subtler effects. Existing tools, like mixscape and ContrastiveVI, provide partial solutions, but may oversimplify biological dynamics, or have low power to characterize perturbations with a smaller effect size. Here, we address these limitations by introducing the Supervised Contrastive Variational Autoencoder (SC-VAE). SC-VAE integrates guide RNA identity with gene expression data, ensuring a more discriminative analysis, and adopts the Hilbert-Schmidt Independence Criterion as a way to achieve disentangled representations, separating the heterogeneity in the control population from the effect of the perturbations. Evaluation on large-scale data sets highlights SC-VAE’s superior sensitivity in identifying perturbation effects compared to ContrastiveVI, scVI and PCA. The perturbation embeddings better reflect known protein complexes (evaluated on CORUM), while its classifier offers promise in identifying assignment errors and cells escaping the perturbation phenotype. SC-VAE is readily applicable across diverse perturbation data sets.
Introduction
The advent of Perturb-seq—the combination of CRISPR-based genetic screens with single-cell RNA sequencing—has revolutionized our ability to interrogate gene function at scale. By knocking out thousands of genes and observing the transcriptomic consequences in individual cells, researchers can map complex biological pathways with unprecedented resolution. However, the resulting data is notoriously difficult to analyze. The primary challenge lies in the "signal-to-noise" ratio: the transcriptomic effect of a genetic perturbation is often subtle and easily obscured by dominant background variations, such as the cell cycle or technical noise. Furthermore, CRISPR efficiency is imperfect; many cells receive a guide RNA but fail to exhibit the intended knockout phenotype, creating "escaping" cells that contaminate the analysis.
Existing methods like ContrastiveVI attempt to separate these signals using unsupervised contrastive learning, but they often lack the sensitivity required to detect perturbations with small effect sizes. To address these gaps, we present the Supervised Contrastive Variational Autoencoder (SC-VAE), a framework designed to disentangle perturbation effects from background cellular heterogeneity with high sensitivity.
The SC-VAE Architecture
SC-VAE builds upon the principles of contrastive variational autoencoders by assuming that cellular transcriptomes are generated from two distinct, independent latent spaces. The Background Space ($z_n$) captures natural cell-to-cell variations common to all cells, such as metabolic states or cell cycle phases. The Salient Space ($s_n$) is dedicated to capturing the specific variations induced by genetic perturbations.
To ensure effective disentanglement and sensitivity, SC-VAE introduces three key innovations:
- Supervised Classification: Unlike previous unsupervised models, SC-VAE includes a neural network classifier that forces the salient latent space to predict the specific guide RNA identity. This supervision breaks the symmetry between the two latent spaces, compelling the salient space to focus exclusively on features relevant to the knockout.
- Asymmetric Inference: The model treats perturbed and control cells differently during training. For control cells, the salient latent variable is sampled from a standard Gaussian prior, while for perturbed cells, it is inferred from the data. This prevents the model from leaking perturbation signals into the background space.
- HSIC Regularization: To mathematically enforce the independence of the two spaces, the model employs the Hilbert-Schmidt Independence Criterion (HSIC). This regularization term penalizes any statistical dependence between the background and salient variables, ensuring a cleaner separation of biological signals.
Results: Sensitivity and Disentanglement
We evaluated SC-VAE on two massive genome-wide Perturb-seq datasets (K562 and RPE1) comprising thousands of gene knockdowns. A critical test of any such model is its ability to group genes that function together. Using the CORUM database of mammalian protein complexes as a ground truth, we found that SC-VAE’s salient embeddings significantly outperformed ContrastiveVI, scVI, and PCA in clustering genes belonging to the same complex. This indicates that the salient space successfully captures biologically meaningful functional relationships.
Furthermore, visualizations of the latent spaces confirm successful disentanglement. While the background space primarily captures cell-cycle phases (a common source of biological noise), the salient space (shown in the UMAP above) resolves distinct clusters corresponding to different genetic perturbations. Quantitative analysis using "energy distance"—a metric for distributional differences—showed that SC-VAE consistently identifies perturbation effects that are missed by unsupervised methods, particularly those with small effect sizes that would otherwise be shrunk toward the prior.
Identifying Escaping Cells and Quality Control
One of the most practical applications of SC-VAE is its ability to perform automated quality control. Because the model includes a perturbation classifier, it can identify cells that are mislabeled or have "escaped" the perturbation. In our analysis, the classifier revealed a vertical band of cells that possessed a perturbation barcode but were transcriptomically indistinguishable from control cells. By flagging these "escapers," SC-VAE allows researchers to clean their datasets, leading to more robust downstream biological conclusions. This capability is a significant advancement over existing tools that assume perfect CRISPR efficiency.
Conclusion
SC-VAE provides a powerful, supervised framework for the analysis of large-scale perturbation screens. By integrating guide RNA labels and enforcing statistical independence between latent spaces, it achieves superior sensitivity and cleaner disentanglement than previous methods. Beyond CRISPRi screens, the framework is readily applicable to chemical perturbations and other high-throughput single-cell assays, offering a robust solution for navigating the complexities of modern functional genomics.
Summary updated