When Covariance Is Not Enough: Kernel-Based Regularization for Single-Cell Counterfactuals

Korbinian Traeuble, Edward de Brouwer, Archit Verma, Doron Haviv, Kipper Fletez-BrantarXiv 2026 · arXiv

TL;DR

This paper demonstrates that standard linear regularization is insufficient for generating "faithful" single-cell counterfactuals—predictions of how a specific cell would respond to a different environment. By replacing or augmenting linear cross-covariance with a non-linear kernel-based penalty (nHSIC), the authors successfully disentangle donor-specific signatures from experimental conditions, enabling more accurate in-silico biological screenings.

What Problem Does This Paper Address?

In single-cell biology, we often want to know: "What would this specific patient's lung cell look like if it were in a different tissue or treated with a specific drug?" This is a counterfactual question. Because we can usually only measure a single cell once (destroying it in the process), we rely on generative models to "edit" cells in-silico.

The challenge is faithfulness. An edit is only useful if it preserves the unique "fingerprint" of the individual donor while correctly applying the effect of the new condition. Current state-of-the-art models, like the Concept Bottleneck Generative Model (scCBGM), try to separate "known" factors (like tissue type) from "unknown" factors (like donor identity) in a latent space. To keep these factors independent, they typically use a linear cross-covariance penalty.

The authors argue that this first-order approach fails when biological interactions are non-linear—for example, when a disease doesn't just shift the average gene expression but instead changes the variance of a donor's unique signature. In these "heteroskedastic" regimes, linear models produce generic, "average" cell predictions rather than personalized ones.

Methods

The authors build upon the Concept Bottleneck VAE framework. This architecture encodes a cell into a latent representation $z$, which is then split into two heads:

  1. $\hat{c}$ (Concepts): Supervised dimensions representing known factors (e.g., cell type, tissue).
  2. $u$ (Unknowns): Unsupervised dimensions that must capture everything else, including donor identity and technical noise.

To ensure these blocks are truly independent, the authors introduce the normalized Hilbert-Schmidt Independence Criterion (nHSIC) as an orthogonality loss. Unlike linear covariance, nHSIC uses kernels (specifically RBF kernels) to measure dependence in a Reproducing Kernel Hilbert Space (RKHS). This allows the model to "see" and penalize higher-order, non-linear dependencies that a linear penalty would miss.

Datasets

The study utilizes two primary data sources:

  • Synthetic Donor-Holdout Dataset: A custom-built simulator generating 240,000 cells across 150 donors. It uses a hierarchical Poisson model with a "low-rank" donor structure, meaning donors share underlying transcriptional programs. This is crucial for testing if a model can generalize to donors it has never seen during training.
  • TAURUS Cohort: A real-world single-cell RNA-seq dataset from an inflammatory bowel disease study. The authors specifically focused on a "rectum → terminal ileum" counterfactual task for a specific cell subtype (stem_LGR5pos).
Figure 1: Structure of the synthetic donor-holdout dataset (240,000 cells, 150 donors, 20 of them held out). All panels show the same UMAP, fitted once on a uniform random subsample of 40,000 cells in the 128- dimensional PCA space the model is trained in, and recoloured: (A) the 4 simulated cell types; (B) donor identity, with 8 donors highlighted (donor_000, donor_001, donor_002, donor_003, donor_014, donor_015, donor_020, donor_021) and the remaining donors in gray; (C) the binary tissue concept is_ileum, which is what the counterfactual flips; (D) training donors versus the 20 held-out donors.

Key Insights and Ideas

  • The "Blind Spot" of Covariance: If a condition (like inflammation) amplifies a donor's existing signature rather than adding a fixed offset, the mean shift might be zero, but the variance changes. Linear covariance reports zero violation here, allowing donor information to "leak" into the concept head and ruining the counterfactual edit.
  • Low-Rank is Realistic: By modeling donor effects as a combination of shared "gene programs" (low-rank) rather than independent per-gene noise, the authors made the problem of predicting unseen donors solvable. This reflects real biology, where individuals vary by up- or down-regulating common pathways.
  • Complementary Penalties: The authors found that nHSIC and linear covariance work best in tandem. Covariance is a cheap, low-variance estimate of first-order dependence, while nHSIC catches the complex non-linear interactions.

Key Results

The authors evaluated their models using rMMD (relative Maximum Mean Discrepancy). A score of 1.0 means the edit is no better than a generic population average; a score closer to 0 means the edit successfully captured the specific donor's target state.

  • Synthetic Success: In the non-linear (heteroskedastic) regime, the linear covariance model failed completely (rMMD ≈ 1.30). Adding nHSIC recovered the donor-specific edit, dropping the rMMD to 0.15.
  • Real-World Validation: On the TAURUS dataset, the linear model again struggled to move the cells toward the target (rMMD ≈ 0.95). The combined "Covariance + nHSIC" model achieved an rMMD of 0.41, successfully overlapping the predicted cells with the real, withheld target cells.
UMAP visualizations showing how nHSIC (Row C) successfully moves counterfactual cells (red) onto the real target cells (green) in a non-linear regime, whereas linear covariance (Row B) falls short.

Limitations and Future Work

The primary drawback of the non-linear approach is hyperparameter sensitivity. The strength of the penalty ($\lambda_\perp$) must be carefully tuned; if it's too high, the model "over-regularizes," driving predictions off the data manifold and producing unrealistic cells.

Future work includes:

  • Exploring the batch-size dependence of the nHSIC estimator.
  • Moving from cell-level to patient-level distributions.
  • Applying these models to in-silico drug screening and longitudinal disease mapping.
  • Testing the model in count space rather than the 128-dimensional PCA space used in this study.

Summary updated

Abstract

Counterfactual editing of single cells, predicting how an observed cell would look had one factor been different, enables in-silico screening where experiments are infeasible, but is useful only if the edit is faithful to the individual and not merely to the condition. Concept bottleneck generative models make the effects of interventions interpretable by decomposing a cell's representation into known and unknown factors. Previous work uses a linear cross-covariance penalty to disentangle known and unknown dimensions. We demonstrate that this first-order criterion does not fully separate information when non-linear interactions are present. We first demonstrate the inadequacy of linear cross-factor penalization with simulation experiments with controlled edits and known non-linear covariate effects. We then demonstrate that adding a nonlinear kernel criterion, the normalized Hilbert-Schmidt Independence Criterion, is able to recover the true intervention effects on simulation data. Finally, we apply the non-linear concept bottleneck model to a complex single-cell RNA-seq dataset and find that it improves the ability to generate counterfactual expression profiles of cells under different tissue environments.
BibTeX
@misc{traeuble2026when,
  author = {Korbinian Traeuble and Edward de Brouwer and Archit Verma and Doron Haviv and Kipper Fletez-Brant},
  title = {{When Covariance Is Not Enough: Kernel-Based Regularization for Single-Cell Counterfactuals}},
  year = {2026},
  eprint = {2611.13748},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.13748},
}
Figure