Baselines II: Transfer

Virtual Cell
perturbation modelling
linear models
baselines
evaluation
A first look at transfer across context and experiment.
Author

Forrest Sheldon

Published

September 29, 2026

Moving on from true zero-shot models, I want to look at learning perturbations from other experiments. In the next few posts, I’ll use simple interpretable methods to transfer perturbation effects learned in available datasets to our target datasets in the VCC.

Summary

  • Matching the transfer space to the scoring space gives the best effect transfer. This is \(\operatorname{log1p}\)-CP50K.
  • Other screens all have a weak effect transfer but contribute a large amount of noise between them. Averaging primarily drags down the noise.
  • Transferring the average effect gets us to 0.098 overall.

Available datasets and available questions

In Exploring the Data III we found 5 contexts with strong overlap with this year’s VCC perturbations. These were in K562, CD4+ T cells, HCT116, HEK293T and KOLF2.1J. In the H1 screen that we are using for evaluation, these cover 110 perturbation targets and 7,446 shared genes1

The immediate question we would like to answer is, is it better to pick a single experiment that more closely matches the target context, or to average over the many experiments we have. For example, H1 is a stem cell line and we might expect that KOLF2.1J, an induced pluripotent stem cell line, is more similar than the other cancer cell lines. In that case, are we better off transferring the results from KOLF, or averaging all of the lines together?

What space do we transfer in?

To start, we work in pseudobulks that we normalize to CPM. Given a target control profile \(x_0\), we want to predict the perturbation state \(x_p\) using results from another experiment \(y_p, \, y_0\). (These quantities can be thought of as renormalized \(f_g \pi_{cg}\) from our sequencing model, meaning that they contain experiment specific biases for each gene.) We immediately have a few choices:

  • We could transfer the additive effect, \(\hat{x}_p = x_0 + (y_p - y_0)\)
  • We could transfer the ratio, \(\hat{x}_p = x_0 \frac{y_p}{y_0}\)
  • We could transfer the \(\text{log1p}\) effect, \(\phi(x) = \log(x+1)\) with \(\phi(\hat{x}_p) = \phi(x_0) +(\phi(y_p) - \phi(y_0))\)

It is hard to make a case for the additive effect. It does not maintain positivity of \(\hat{x}_p\), it keeps the experiment biases and it does not conform to the principle that changes in expression are usually multiplicative. The ratios eliminate the biases and conform to multiplicative changes but are noisy when counts are low and infinite when we have a zero count in the denominator. Our \(\text{log1p}\) transform is meant to deal with these issues but we can actually do one better.

Consider the transform \(\phi(x) = \log(x+c)\). For different values of the pseudocount \(c\), this transform actually contains all of the forms above. From our perturbation effect equation \(\phi(\hat{x}_p) = \phi(x_0) + \phi(y_p) - \phi(y_0)\) we combine terms and take exponentials to get \[\hat{x}_p = (x_0 + c)\frac{y_p + c}{y_0 + c} - c.\] Taking \(c\to 0\) we get the ratio form above, \(c=1\) gives us \(\text{log1p}\), and \(c\to\infty\) gives us the additive effect. Rather than choose a single transform, we will keep this form and see what pseudocount gives us the best results.

Which pseudocount?

The relative expression level of a gene to the pseudocount \(c\) (which we measure in CPM) trades between the two regimes above. Writing the transfer equation as \[\hat x_p - x_0 = w(c)\,(y_p - y_0), \quad w(c) = (x_0+c)/(y_0+c)\] \(c\) forms the crossover expression level between the ratio and additive effects. For genes with expression levels much less than \(c\), \(w(c) \approx 1\) and the transfer effect is additive. For genes with expression levels greater than \(c\), \(w(c) \approx \frac{x_0}{y_0}\) and the effect is multiplicative.

This immediately suggests that there should be an optimal value for \(c\): too low and we amplify noisy genes with the multiplicative effect, too high and we introduce the donor bias more widely with the additive effect. For the five donor populations, I do a donor to donor transfer (20 ordered pairs), sweeping the value of \(c\).

Figure 1: Donor to donor transfer peaks between 10 and 30 across our datasets. The lines give the mean cosine for how well a single dataset was predicted using the 4 other datasets. K562 is therefore the best predicted response across the datasets

From the figure we can immediately note that average cosine agreement is very low. That means we either have very different true results, or that we are dominated by noise. The peak across these is almost flat between 10 and 30. We would have little reason to pick one over the other but it turns out that there is another reason for this:

PDS and MSE are both pseudobulk normalized to 50k counts before log1p. That means that the scorers use a pseudocount of 20 in their log1p normalisation. As a test, I used different pseudocounts in scoring and then re-ran the donor transfer sweep. The optimal pseudocount moved with the scorer:

Scoring space \(c_{\text{eval}}\) 1 20 100
best transfer \(c\), donor to donor 1 10 30

The result saturates for high scoring space pseudocount, so it is not entirely free but it seems that just choosing the same value as the scorer is close enough to optimal for me. I’ll stick with \(c=20\) for the remainder of the post.

Direct transfer from each screen

Moving on to actually doing the transfer, we look at retrieval (raw PDS, i.e. are we closer to the correct perturbation than others), cosine similarity (how aligned is the direction of each perturbation to the correct direction), and mean squared error ratio (squared distance between the perturbation and prediction vectors divided by the squared perturbation length.)

Source Retrieval Cosine MSE ratio
K562 GWPS 0.852 0.078 3.87
HCT116 0.779 0.053 4.45
HEK293T 0.760 0.041 3.47
KOLF2.1J 0.740 0.072 4.32
CD4+ T 0.701 0.054 2.06

The retrieval scores are very good, despite the cosine similarity being close to orthogonal and the MSE ratio being substantially greater than 1. The transfer divides the space of perturbations into the right sectors, but we are also picking up either substantial differences between the different cell states or adding substantial noise along with the effect. Surprisingly, the other stem cell like type (KOLF) is not the best transfer to H1. Comparing the individual transfers to the average across the five datasets:

Figure 2: Comparing individual dataset transfer scores to transferring the average. Lines represent 95% confidence intervals from bootstrap resampling.

The average effect performs better than any single context across every metric. Before we jump into interpretation, let’s do a little decomposition of these results.

Decomposing the results

It is a little difficult to interpret the scores above: the cosine is very small and the MSE is several times larger than just doing nothing. In order to prioritize our next step, a slightly more transparent decomposition would be better. To begin, we define the pooled norms and inner products of the true effect \(t\) and the prediction \(q\), \[t^2 = \sum_{pg} t_{pg}^2, \quad q^2 = \sum_{pg} q_{pg}^2, \quad t\cdot q = \sum_{pg} t_{pg} q_{pg}.\] If we suppose that the prediction is the scaled true effect plus an error term, \(q = at + \epsilon\) with \(\epsilon \perp t\), then we can calculate the component of the prediction along \(t\) and perpendicular to \(t\), \[ a = \frac{t\cdot q}{t^2}, \quad q_{\parallel}^2 = a^2 t^2, \quad q_{\perp}^2 = \epsilon^2 = q^2 - q_{\parallel}^2\] These quantities can be simply calculated for each of our donors against H1, but it is worth going one step further first. We can calculate the MSE ratio from these, \[\frac{(q-t)^2}{t^2} = (1-a)^2 + \frac{\epsilon^2}{t^2} = (1-a)^2 + \frac{\text{sampling}}{t^2} + \frac{\text{extrinsic}}{t^2}\] The noise term lumps together both sampling and effect variance which we can try to separate. We can estimate the magnitude of sampling noise by resampling the effect pseudobulk at the same depth with the same mean value per gene. Then we transfer these counts to the scoring space and calculate their variance. This gives us a further decomposition into context mismatch and sampling noise shown in the table below:

\[ \frac{(q - t)^2}{t^2} = \underbrace{(1-a)^2 + \frac{\text{extrinsic}}{t^2}}_{\text{context mismatch}} \;+\; \underbrace{\frac{\text{sampling}}{t^2}}_{\text{measurement noise}} \]

Table 1: Signal decomposition on the donor screens.
Source UMIs / target \(a\) \(q_\parallel^2 / q^2\) \(\text{mismatch}/t^2\) \(\text{sampling}/t^2\) MSE ratio
K562 GWPS 1.3M 0.17 0.0088 1.63 2.24 3.87
HCT116 1.5M 0.10 0.0029 1.89 2.55 4.45
HEK293T 2.4M 0.06 0.0015 1.71 1.77 3.47
KOLF2.1J 0.8M 0.20 0.0104 1.67 2.65 4.32
CD4+ T 13.8M 0.11 0.0090 1.77 0.29 2.06
equal-screen average – 0.13 0.0253 1.00 0.39 1.39

The aligned component \(\frac{q_\parallel^2}{q^2}\) is the pooled squared cosine similarity in each screen. This breakdown is much more interpretable than our last table:

  • The KOLF dataset actually has the largest overlap with the H1 screen, but its low depth means its error contribution is also larger, explaining the poor transfer.
  • The deepest sequenced donor (CD4+ T) has relatively poor effect transfer but its low noise makes the overall result still competitive.
  • Averaging strongly cuts the sampling noise and dampens the contribution from context mismatch (note that donor noise, which we cannot isolate here, is also a part of this context mismatch term.)

So all of our donor sets seem to carry similar weak information about the response of the target cell type, but they differ in their contributions from sampling noise and context specific information. This would say that our first next steps will be to look at more careful ways of reducing noise contributions (with tools like gene specific regularisation and dimensionality reduction) and ways of improving our context transfer (perhaps by including multimodal measurements). The next post will focus on a more in depth look at noise in the dataset and what options we have for controlling it.

A submission

Taking all this work and pushing it into a submission, for each perturbation × gene I took the average effect over the subset of the 5 donors that measured both in our \(\phi_{20}\) transformed space. For each context A, B, C, I calculated the transferred effect, \(\hat x_p = (x_0 + 20)\, e^{ \bar d_p} - 20\) with \(x_0\) the context’s pooled control CPM and \(\bar d_p\) the average effect. The result is then floored at zero and renormalized. This gets turned into a fold change per gene: \(f_{pg} = \frac{\hat{x}_{pg}}{x_{0g}}\). Then for each of the 400 sampled control cells with counts \(z_{cg}\) I adjust the counts to \(f_{pg}z_{cg}\) with stochastic rounding.2

Metric VCC 2026 validation H1 harness3
Overall 0.098 0.103
Perturbation discrimination (PDS) 0.607 0.701
Expression accuracy (MSE) 0.000 0.000
DE log-fold-change accuracy 0.147 0.100
DE direction fidelity −0.366 −0.123
DE direction reach 0.191 0.119
DE significance overlap 0.006 −0.177

I think I will call it done there. In the next post I’ll look at a noise analysis of the screens we have to see if we can get bounds on the simplest types of transfer and what tools we can use to reduce the noise in these. Then I’ll apply those to some slightly more advanced regularised regressions meant to control noise effects.

Back to top

Footnotes

  1. This is because the Replogle GWPS screen in K562 removes any genes with fewer than about 2 CPM. Removing it widened the gene universe to about 18k but did not change our results.↩︎

  2. I do some additional adjusting to match the expectations over the whole control panel and to fix the change in the low expression genes to get them to come out right. In brief, a separate log fold change is applied to match the expression in the 400 cell panel to the overall control cells, then I apply the fold changes above. Sparse genes that are mostly 0 are slightly underpredicted by this because a fold change cannot move them to a nonzero value, so I scatter in some single counts across the gene column to make up for this.↩︎

  3. This uses the updated H1 scoring harness which fixes an inconsistency in the baselines. The new harness uses the repeated control cell average which has very low variance and so picks up many DE genes. This moves several baselines towards their random calling null.↩︎