Anchoring on Shared Perturbations to Correct Plate Effects in Cell Screens

In a cell-screening experiment, every plate of wells passes through slightly different reagents, incubators and microscope settings. Each plate therefore stretches and shifts the measured features, a distortion called a technical batch effect. Current fixes either assume every plate carries clean untreated "negative control" wells, or learn a correction by trial and error. None of them can say when a plate simply does not contain enough information to be corrected.

We propose to treat plate correction as a blind calibration problem. The idea comes from signal processing, where one recovers unknown signals and unknown sensor gains together. In a screen, the "sensor" is the plate and the "signals" are the perturbations it measures. The theory of this problem makes a sharp prediction. A plate's per-feature gain and offset can be recovered, without controls, only if the plate shares at least two biologically distinct perturbations with the rest of the screen. Recovery error should then shrink predictably as more shared perturbations are added. We will build a robust median-based estimator from this prediction, check that the predicted threshold appears in real Cell Painting data, and test whether it beats control-based adaptation when controls are scarce or the mix of treatments differs between plates.

Core Claim

We model the feature profile of a well on plate $b$ treated with perturbation $p$ as $y_{bp} = g_b \odot s_p + o_b + \varepsilon$. Here $s_p$ is the plate-free biological profile, $g_b$ and $o_b$ are unknown per-feature gains and offsets for plate $b$, $\odot$ is element-wise multiplication, and $\varepsilon$ is noise. This is the multi-signal gain model of Blind Calibration in Compressed Sensing using Message Passing Algorithms, with an added offset and an identity sensing matrix.

That paper proved that one observed signal cannot separate a weak signal from a low-gain sensor, and that two or more diverse signals break the ambiguity. The analogue here has three parts:

  1. Negative controls are a single shared perturbation, so on their own they pin down offsets but not gains. The only exception is if one also assumes that control-cell heterogeneity is identical across plates.
  2. Gains become identifiable once each plate shares at least two distinct perturbations. The graph linking plates through shared perturbations must also be connected.
  3. With $k$ shared perturbations of spread $\Delta$ (the per-feature variance of their true profiles) and $r$ replicate wells each, the gain error should scale roughly as $\sigma/\sqrt{k\, r\, \Delta}$. This form follows from ordinary least-squares error for a slope fitted to $kr$ points.

What is new is not the model. It is the identifiability condition, a tested scaling law for real screens, and a correction that needs no controls and uses medians so it stays reliable when some wells are corrupted.

Research Program

Estimator. The estimator alternates two steps. It first estimates the shared profiles $s_p$ as medians across plates of the currently corrected wells. It then refits each plate's $g_b$ and $o_b$ by a robust line fit of that plate's anchor wells against the $s_p$. The robust fit uses a median of pairwise slopes. The median replacement is taken from Provable Non-convex Phase Retrieval with Outliers: Median TruncatedWirtinger Flow. That paper showed that swapping sample means for medians lets gradient methods ignore up to a constant fraction of corrupted measurements, keeping "near 100% success rate even when up to 20% of the measurements are corrupted". Here it plays the role of ignoring toxic or mis-dispensed wells without annotating them.

Initialization. Iterations start from control-free whole-plate robust centering. This is the analogue of the spectral initialization used in Reshaped Wirtinger Flow for Solving Quadratic System of Equations.

Scope. The correction runs post hoc on any frozen encoder's well embeddings, so it is complementary to representation learners.

Diagnostic. For each plate, the tool reports its number of distinct shared anchors and their spread. From these it gives a predicted error, so a practitioner knows before correcting whether the plate is under-determined.

Theory. We will prove the identifiability condition and a finite-sample error bound for the median estimator under the stated model. We will not attempt the harder non-linear or message-passing state-evolution questions that the file lists as open.

Baselines

Do nothing. The naive reference point is uncorrected embeddings. Any method must clearly beat it on leave-plate-out metrics.

Standard practice. The standard practical baseline is per-plate robust z-scoring on negative controls. It is the most widely used and costs almost nothing. We run it on identical embeddings and plates.

Strongest existing method. The strongest competitor is CS-ARM-BN from Stabilizing In-Context Multi-Source Domain Adaptation for Biomedical Images Through Controls. It feeds negative-control samples into test-time batch-normalization adaptation, and it is the method designed for exactly the small-sample, label-shifted plates we target. It reports 0.930 ± 0.019 accuracy on new JUMP-CP batches, against an in-domain 0.939 ± 0.005 (Table 1). It stays around 0.90 under severe label shift. We will use its JUMP-CP sources 3 and 8 protocol and its backbone, applying our correction to that backbone's features with the same training budget.

  • Beating CS-ARM-BN means matching it when controls are present.
  • It also means exceeding it once controls are removed or reduced to one well per plate.
  • Matching the in-domain accuracy would be the ceiling.

Learned affine correction. We also compare against scBatchProx from Federated-inspired Single-cell Batch Integration in Latent Space. It learns per-batch affine (FiLM) transforms on frozen embeddings, which is the same family of correction learned without an identifiability argument. It reported a "3–8% relative gain" in embedding quality on single-cell data. We give it the same embeddings and a matched hyperparameter search.

Ablations. Three ablations isolate the key ingredients:

  1. Mean-based rather than median-based fitting isolates the robustness component.
  2. Offsets-only correction tests whether gains matter at all.
  3. Randomly relabelled anchors, with shared structure destroyed, test whether shared perturbations are what does the work.

Why not just…?

Why not just z-score each plate on its controls? It is the real default, and when controls are plentiful and plate composition is stable it may be nearly as good as our method. The model predicts it fails in two ways. It cannot recover gains unless control heterogeneity is stationary across plates. Control centering with few samples is known to degrade Stabilizing In-Context Multi-Source Domain Adaptation for Biomedical Images Through Controls. The semi-synthetic experiment injects gains and offsets separately, so it will show directly whether control centering leaves gain error that our estimator removes. If it does not, the gain part of our proposal is unnecessary and we will say so.

Why not just robustly center each plate using all its wells? This needs no controls and is the most serious threat. It is exact when every plate holds the same mix of treatments. It becomes biased as soon as composition differs, because the plate median then reflects biology as well as technical shift. This is the over-correction risk that the batch-effect literature warns about. We test this directly by subsampling perturbations per plate to create controlled label shift. If whole-plate centering matches us under shift, the anchoring idea adds nothing.

Why not just learn a better encoder? Cross-well training objectives already suppress plate artifacts:

These results leave little room on BBBC021. We therefore treat BBBC021 as a no-harm check and apply our correction on top of such encoders. The claim is complementarity on new plates, not replacement of the encoder.

Proposed Experiments

Synthetic check of the threshold. We simulate the model with known gains and vary the number of shared perturbations per plate from 1 to 20 and the fraction of corrupted wells from 0 to 30%. The decisive check is whether gain error drops sharply between one and two anchors. It should then follow the predicted $1/\sqrt{k r \Delta}$ curve, and the median estimator should hold up where the mean fails.

Semi-synthetic JUMP-CP. We take real embeddings from well-behaved JUMP-CP plates, inject known per-feature gains and offsets, then remove controls and impose label shift. The measures are gain-recovery error and downstream mechanism-of-action accuracy. This separates what each baseline recovers from what it merely hides.

Real JUMP-CP. We run leave-batch-out accuracy under the CS-ARM-BN protocol with controls present, reduced, and absent. We also report accuracy against each plate's diagnostic-predicted error, to test whether the diagnostic flags plates that correction will not fix.

RxRx3-core. We report drug-target interaction average precision and gene–gene retrieval, with the benchmark's reported Phenom-2 AP of 0.307 and CellProfiler AP of 0.276 RxRx3-core: Benchmarking drug-target interactions in High-Content Microscopy as reference points. Before claiming results, we will first verify how many perturbations are actually repeated across its plates.

BBBC021. We run NSCB on top of a frozen contrastive encoder as the no-harm check.

Falsification. The proposal fails if either of two things happens. The threshold at two anchors may be absent in real data. Or whole-plate robust centering may match the anchored estimator under controlled label shift.