TL;DR
scTree extends Tree Variational Autoencoders to single-cell RNA sequencing (scRNA-seq), jointly performing batch correction and hierarchical clustering in an end-to-end framework. By conditioning leaf decoders on batch labels and introducing a reconstruction-loss-based splitting rule, it accurately resolves cell lineages and rare sub-populations without erasing biological variation.
What Problem Does This Paper Address?
Unsupervised clustering of scRNA-seq data is essential for discovering cell types and understanding cell differentiation. Because cellular development is inherently hierarchical, hierarchical clustering is an intuitive modeling choice.
However, standard hierarchical clustering struggles on scRNA-seq count matrices due to high dimensionality, technical dropouts, and batch effects—systematic technical variations introduced by different donors, sample preparation protocols, or sequencing platforms. Common pipelines resolve this via a disconnected two-step process: first mapping cells to a batch-corrected latent space (e.g., using PCA, scVI, or LDVAE), then applying clustering algorithms post-hoc. This decoupled approach can erase real biological signals (over-correction) or fail to align hierarchical cluster boundaries with true developmental pathways.
Methods
scTree builds upon TreeVAE (Manduchi et al., 2023), a generative model that learns a probabilistic binary tree of latent variables alongside leaf-specific decoders. The authors adapt and extend this framework specifically for single-cell genomics:
-
Count-Aware Likelihood: Instead of continuous Gaussian or Bernoulli distributions, scTree assumes a Negative Binomial (NB) generative distribution: $$\mathbf{x} \mid \mathbf{z}_{P_l}, P_l \sim \text{NB}(\mu_l(\mathbf{z}_l), \theta)$$ where leaf-specific decoders $\mu_l$ output cell-specific means while dispersion parameters $\theta$ are shared per gene across leaves.
-
Integrated Batch Correction: Rather than forcing the latent space to artificially balance batches, batch covariates are fed directly into the leaf decoders. This allows routing probabilities and latent embeddings ($\mathbf{z}_l$) to remain unconfounded by batch labels.
- Reconstruction-Loss Splitting Rule: Standard TreeVAE splits the leaf with the largest cell count, introducing an inductive bias toward balanced clusters that misses rare cell types. scTree proposes candidate subtrees for each leaf, trains them for 10 epochs, and selects the split that maximizes the $L_1$ difference in reconstruction loss between child leaves: $$\|\log p(\mathbf{x} \mid \mathbf{z}_{P_{l_1}}, P_{l_1}) - \log p(\mathbf{x} \mid \mathbf{z}_{P_{l_2}}, P_{l_2})\|_1$$ Leaves that specialize strongly on distinct profiles are split first.
[Input x] ---> [Encoder (Bottom-up)] ---> [Root Latent z0]
|
+-------------+-------------+
(p_left) (p_right)
v v
[Node z1] [Node z2]
... ...
v v
[Leaf Decoder μ_l(z_l, Batch)]
|
v
[Negative Binomial Output]
Datasets
The authors evaluated scTree on seven publicly available scRNA-seq datasets:
- Healthy Reference Atlases: PBMC (30,449 cells; 2 donors across 7 technologies), Retina (19,829 mouse retinal bipolar cells; 2 batches), Pancreas (16,382 cells; 9 batches), and Lung Atlas (32,426 cells; 16 batches).
- Partially Overlapping Populations: Immune Human Cell (IHC) (33,506 cells; 10 batches across 5 studies), where 5 out of 16 cell types appear in only 3 batches.
- Challenging Malignant Tissues: GBM (6,855 glioblastoma cells; 27 patients) and SCC (10,529 squamous cell carcinoma cells; 8 patients), both characterized by intense patient-specific genetic heterogeneity.
Key Insights and Ideas
- End-to-End Beats Stepwise: Jointly optimizing tree routing and batch-integrated decoders avoids the pitfalls of two-step pipelines, where dimensionality reduction can inadvertently drop subtle cell-type distinctions before clustering even begins.
- The Over-Integration Trap: Standard methods (scVI, LDVAE) drive batch mutual information ($\text{NMI}_\text{batch}$) near zero. However, true biological ground truth often naturally correlates with batch or donor identities (e.g., in tumor biopsies or condition-specific cell subsets). Over-integrating batches destroys these true differences; scTree maintains high cluster purity (NMI/ARI) by keeping batch conditioning confined to the decoders.
- Loss-Guided Division Uncovers Rare Subsets: The new reconstruction-based splitting rule allows smaller, specialized sub-populations to split rather than forcing large, homogeneous clusters to subdivide simply due to cell abundance.
Key Results
Clustering quality was assessed using Normalized Mutual Information (NMI), Adjusted Rand Index (ARI), Dendrogram Purity (DP), and Leaf Purity (LP):
- Tumor Datasets with Severe Batch Confounders: On SCC, scTree (reconstruction split) achieved 0.56 NMI / 0.63 ARI / 0.81 DP, markedly outperforming scVI + Agglomerative (0.34 NMI / 0.42 ARI / 0.66 DP) and LDVAE + Agglomerative (0.46 NMI / 0.56 ARI / 0.75 DP). On GBM, scTree attained 0.53 NMI / 0.51 ARI, roughly doubling scVI's performance (0.28 NMI / 0.23 ARI).
- Healthy Atlases: On the Pancreas dataset, scTree improved ARI to 0.83, compared to 0.57 for scVI + Agg and 0.55 for LDVAE + Agg.
- Biological Tree Hierarchy: Qualitative inspection on the IHC dataset confirmed that scTree correctly segregated Lymphoid from Myeloid lineages high in the hierarchy, while isolating bone-marrow-specific cell types into their own subtrees without forcing artificial alignment with blood cells.
Limitations and Future Work
- Strict Binary Structure: Biological taxonomy does not always bifurcate evenly; multi-branching trees would offer a more natural representation of cellular differentiation.
- Stopping Criteria: The number of target clusters currently needs to be set in advance (matched to ground-truth cell-type counts in benchmarks), which is unrealistic for exploratory single-cell studies.
- Latent Interpretability: Because each leaf maintains a separate latent representation, there is no single, unified low-dimensional space for visualization beyond the root embedding.
- Hyperparameter Sensitivity: As with many hierarchical deep generative models, balancing tree-growing schedules, KL-annealing, and learning rates requires careful calibration.
Summary updated