TL;DR
Cells don’t live in a vacuum; their behavior is profoundly shaped by their immediate neighbors. This paper formalizes a way to ask biological "what-if" questions on tissue graphs—like what happens to a healthy cell if you drop it into a tumor, or if its neighbors suddenly activate a specific signaling pathway. Using a dual-encoder architecture called Cellina that cleanly separates a cell's internal identity from its external neighborhood, the authors outperform existing spatial and non-spatial models across 2.5 million cells while running as fast as standard non-spatial baselines.
What Problem Does This Paper Address?
In computational biology, a major goal is predicting how cells respond to perturbations (like drugs or genetic knockouts) without having to run every possible wet-lab experiment. Most existing machine learning models treat cells like independent marbles in a bag, assuming a stimulus hits every cell uniformly.
Real biological tissues violate this assumption completely. In a tissue, a cell is constantly chatting with its neighbors via chemical signals; its gene expression is a blend of what it is (intrinsic state) and where it lives (extrinsic microenvironment). While a few recent models incorporate spatial coordinates, they usually only tackle one specific type of question or rely on coarse region labels rather than individual, continuous cellular neighborhoods. Furthermore, predicting how a cell type behaves in a neighborhood it has never been seen in during training (out-of-distribution generalization) remains a major hurdle unless a model can stop conflating internal identity with external context.
Methods
First, the authors establish a clean mathematical language for tissue graph counterfactuals, representing tissue slides as graphs where nodes are cells and edges represent physical proximity. Because a graph has two mutable parts—edges and node features—there are two distinct ways to intervene:
- Edge perturbation: Rewiring who a cell's neighbors are (e.g., simulating immune cells infiltrating a tumor).
- Node perturbation: Keeping the neighbors fixed, but altering their gene expression (e.g., simulating a targeted pathway inhibitor hitting the surrounding tissue).
To answer both queries, they introduce Cellina, a graph Variational Autoencoder (VAE) built around supervised disentanglement. Cellina splits a cell's gene expression into two latent vectors: an intrinsic state ($z$) and an extrinsic spatial state ($s$), which are concatenated to reconstruct the cell's gene counts.
- What's standard: Using an MLP encoder for $z$ and modeling single-cell gene counts with a negative binomial decoder.
- What's new: How information is routed. To stop $z$ from lazily memorizing spatial context, the authors attach a classifier to anchor $z$ to known cell-type labels, alongside an adversarial discriminator that actively strips out spatial-domain labels (like "healthy" vs. "tumor"). Because $z$ is forced to be domain-invariant, microenvironmental signals are naturally routed into $s$.
They test two flavors: base Cellina, which pre-computes neighbor expression using a fast, degree-normalized linear average, and Cellina-GAT, which swaps in an expressive Graph Attention Network (GATv2) paired with a graph-supervised contrastive loss on $s$.
Datasets
The authors adapt standard context-transfer benchmarks to spatial data—holding out a specific cell type in a target region during training, and asking models to predict its expression at test time. They evaluate across three datasets (>2.5 million cells total):
- Human Colorectal Cancer (CRC): ~2.4 million cells across six slides (18,000 genes), transferring cells from healthy colonic mucosa (REF) into cancerous (CRC) regions.
- Adult Mouse Brain (MERFISH): ~146,000 cells across three slides (1,122 genes), predicting expression across held-out anatomical domains (Thalamus to Isocortex and Fiber-tracts).
- Perturb-FISH Melanoma Xenograft: An in vivo interventional screen measuring CRISPR knockouts in cancer cells and nearby infiltrating T cells. Here, models predict how control T cells respond when surrounded by cancer cells carrying specific genetic knockouts.
Key Insights and Ideas
- Continuous neighborhoods beat coarse labels—even without supervision: An ablated version of Cellina (stripped of all cell-type and domain supervision) still matches or beats every competitor on correlation in colorectal cancer. Simply encoding a cell's continuous, cell-resolved neighborhood provides a massive inductive bias compared to swapping discrete region labels.
- Simpler aggregation goes a remarkably long way: Base Cellina (using fixed linear neighbor averaging) performs nearly on par with the heavier attention-based Cellina-GAT on edge perturbations, while training as fast as non-spatial models.
- Spatial latents reveal hidden biology for free: Even though Cellina is only supervised with coarse pathologist labels (e.g., "tumor"), its spatial latent $s$ preserves fine-grained local variation. Clustering $s$ inside the tumor region automatically uncovered distinct cancer subdomains driven by classic TGF$\beta$ and NF$\kappa$B/MAPK signaling—and the authors could reproduce those exact cellular responses in silico just by nudging neighbor genes using prior pathway weights.
Key Results
Predicted vs observed IGF2 expression in fibroblasts
- Colorectal Cancer (Edge Perturbation): Cellina (0.86 Pearson $r$ on log fold-changes of top differentially expressed genes) and Cellina-GAT (0.89) substantially outperform the best baseline, non-spatial CPA (0.68), as well as spatial models like MintFlow (0.65) and Concert (0.49). When generalizing to a completely unseen patient, Cellina's lead over CPA widens from +0.18 to +0.27 Pearson.
- Mouse Brain: Cellina and Cellina-GAT tie for top Pearson correlation (0.84 vs. CPA's 0.82) and lead on Signed Precision (0.53 for Cellina-GAT vs. 0.44 for CPA).
- In Vivo CRISPR Knockouts (Node Perturbation): When isolating knockout-specific T-cell responses in Perturb-FISH, Cellina (0.33 Pearson) and Cellina-GAT (0.40) beat the specialized GNN baseline SpatialProp (0.16) by +0.17 and +0.24, respectively. Under a random-cancer-neighbor control, Cellina's score drops to 0.00, proving it captures true knockout-specific intercellular signaling.
Limitations and Future Work
- Reliance on imperfect preprocessing: Supervised disentanglement requires pre-existing cell-type and domain annotations during training. Furthermore, imaging-based spatial transcriptomics suffers from cell segmentation errors (transcripts bleeding across boundaries), which can distort neighbor-influence modeling. Jointly modeling raw images and transcripts is a natural next step.
- Operational, not strict causal, counterfactuals: Because spatial assays destroy the tissue, you cannot measure the exact same cell before and after moving it. Predictions are evaluated against held-out cell populations, and the model lacks formal mathematical identifiability guarantees—something future work could address with sparse mechanism priors.
- Uncertainty calibration: Although Cellina is probabilistic, the authors only evaluate mean predictions, leaving uncertainty calibration and wet-lab validation of cell-depletion simulations for future work.
Summary updated