scRAE: Deterministic Regularized Autoencoders With Flexible Priors for Clustering Single-Cell Gene Expression Data

Arnab Kumar Mondal, Himanshu Asnani, Parag Singla, Prathosh Ap

TL;DR

scRAE introduces a novel deterministic regularized autoencoder framework tailored for clustering single-cell RNA sequencing (scRNA-seq) data. By replacing rigid, fixed latent priors with a jointly trained, learnable prior generator network, scRAE successfully navigates the bias-variance trade-off to achieve state-of-the-art clustering performance across multiple real-world datasets.

What Problem Does This Paper Address?

Single-cell RNA sequencing (scRNA-seq) allows scientists to analyze the genetic material of individual cells, opening new doors for cancer research and developmental biology. However, analyzing this data is notoriously difficult due to its high dimensionality and extreme sparsity. A major culprit is the "dropout" phenomenon, where a gene is active in a cell but goes undetected during sequencing, resulting in datasets filled with artificial zeros.

To make sense of this sparse data, researchers use Regularized Autoencoders (RAEs) to compress the data into a lower-dimensional latent space before clustering. However, standard RAEs suffer from a strict bias-variance trade-off. If the model enforces a simple, rigid prior distribution on the latent space (like a standard Gaussian), it introduces high bias, forcing biologically distinct cell types into an unnatural shape and ruining cluster quality. Conversely, if the latent space is completely unregularized, the model overfits the data (high variance), creating a fractured, non-smooth latent space.

Methods

The authors propose scRAE (single-cell Regularized Autoencoder) to dynamically balance this bias-variance trade-off. Instead of forcing the latent space to fit a static distribution, scRAE learns the prior distribution flexibly and automatically alongside the autoencoder.

As shown in the architecture diagram below, scRAE consists of four interconnected neural networks:

  1. Encoder ($E_\phi$): Maps the high-dimensional, sparse scRNA-seq data into a dense, low-dimensional latent space ($z$).
  2. Decoder ($D_\theta$): Reconstructs the original data from the latent code using a Zero-Inflated Negative Binomial (ZINB) loss function, which explicitly models the excess zeros caused by dropout events.
  3. Prior Generator Network (P-GEN / $G_\psi$): A generator network that learns to produce a flexible prior distribution ($P_\psi$) to regularize the latent space.
  4. Critic ($C_\kappa$): Works adversarially with the generator, using Wasserstein distance to align the encoder's aggregated posterior distribution ($Q_\phi$) with the learned prior ($P_\psi$).
The architecture of scRAE, combining a ZINB-based autoencoder with an adversarial prior generator network (P-GEN).

By training these components end-to-end, the model optimizes its position on the bias-variance curve on the fly, ensuring the latent space remains smooth without erasing meaningful biological clusters.

Datasets

The authors evaluated scRAE on 10 diverse, real-world scRNA-seq datasets spanning different protocols, cell types, and sample sizes:

  • Small-to-medium datasets: Klein-2k, Han-2k, Zeisel-3k, Segerstolpe-3k, Cao-4k, and Baron-8k.
  • Large-scale datasets: Macosko-44k, Zheng-68k, Zheng-73k, and Rosenberg-156k (ranging up to 156,049 cells).

These benchmarks represent a comprehensive cross-section of current single-cell transcriptomics data.

Key Insights and Ideas

  • The Danger of Rigid Priors: Standard generative models like VAEs often perform poorly on downstream clustering because their fixed Gaussian priors over-regularize the latent space. They prioritize fitting a smooth bell curve over preserving the distinct, separated boundaries of actual cell types.
  • Flexibility via Joint Training: By framing prior selection as a learnable, adversarial task, scRAE allows the data itself to dictate the optimal shape of the latent space.
  • Dropout-Aware Reconstruction: Incorporating the ZINB model directly into the autoencoder's loss function ensures that the network distinguishes between true biological non-expression and technical dropout artifacts.

Key Results

The authors compared scRAE against six state-of-the-art deep learning methods for single-cell analysis, including scVI, SAUCIE, scDeepCluster, scVAE, DR-A, and scziDesk.

scRAE consistently outperformed all baselines across all 10 datasets, regardless of whether the latent space dimensionality was set to 2, 10, or 20. Performance was measured using several robust clustering metrics:

  • Normalized Mutual Information (NMI): scRAE achieved the highest NMI scores across the board, demonstrating superior cluster purity.
  • Adjusted Mutual Information (AMI): Even when adjusting for chance, scRAE maintained its top-tier performance.
  • Homogeneity and Completeness: The model achieved higher scores in both metrics, meaning its clusters cleanly contained points from a single true class, and members of a given class were successfully grouped together.
Clustering performance measured by Normalized Mutual Information (NMI) across different latent dimensions.

Additionally, complexity analysis showed that scRAE scales remarkably well. On the massive Rosenberg-156k dataset, scRAE completed training in 1,785 seconds—outperforming more complex models like scDeepCluster and scziDesk in computational efficiency while delivering vastly superior clustering accuracy.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@article{mondal2022scrae,
  author = {Arnab Kumar Mondal and Himanshu Asnani and Parag Singla and Prathosh AP},
  title = {{scRAE: Deterministic Regularized Autoencoders With Flexible Priors for Clustering Single-Cell Gene Expression Data}},
  journal = {IEEE ACM Trans. Comput. Biol. Bioinform.},
  year = {2022},
  doi = {10.1109/tcbb.2021.3098394},
}
Figure