Introduction
A multi-batch single-cell RNA-seq dataset mixes two kinds of variation. Cells differ because they are different cell types or states, and they differ because they were processed in different batches: different technologies, laboratories or donors. Integration asks for a representation in which comparable cells from different batches sit together while the biological structure within and across batches survives. In this task the only annotation available is the batch; there are no cell-type labels anywhere, for training or for model selection. The two goals therefore pull against each other with nothing to referee them: any operation that mixes batches more strongly can also merge populations that genuinely differ between batches, and nothing in the data says which of the two happened.
The field has developed several families of answers, and the scIB benchmark compares them [1]. Linear corrections adjust expression or principal components per batch [2, 3]. Anchor- and neighbour-based methods find corresponding cells across batches, through mutual nearest neighbours [4, 5] or anchors [6, 7], and correct towards them. Harmony iteratively clusters and removes batch-specific centroid offsets in a PCA space [8], and BBKNN builds a batch-balanced neighbour graph instead of an embedding [9]. Deep generative models such as scVI learn a batch-conditional latent space under a count likelihood [10], and reference-mapping methods extend such models to new query batches [11]. Pretrained single-cell transformers such as Geneformer [12] and scGPT [13] are also available here, but their zero-shot cell embeddings are known to be weak for this purpose [14, 15]; the starter of this task returns Geneformer's mean-pooled zero-shot embedding without any adaptation.
We start from the observation that a well-trained scVI latent is already a strong integrated representation, and ask what it still gets wrong. Two things, in our development experiments: residual local offsets between batches that remain after the VAE has done its global work, and a large dependence of the latent's neighbourhood structure on the random seed. Our method addresses each in turn, and the second half of it, the alignment step, is built around one design rule: align batches by translation, never by contraction.
Method
Base representation: a two-member VAE ensemble
In the fit phase we select 2,000 highly variable genes in a batch-aware way (scanpy's
cell_ranger flavour with a batch key, as in scIB, with fallbacks for degenerate data) and train a
batch-conditional negative-binomial VAE in the scVI configuration used by the scIB benchmark
[10, 1]: a 30-dimensional latent, two hidden layers of 128 units,
layer normalisation, the batch encoded as a covariate in both encoder and decoder, and dropout 0.2,
trained on all adaptation cells.
A single VAE's neighbourhood structure varies a lot with its seed. We therefore train independently seeded models and combine their posterior-mean latents by centring each and scaling it to unit root-mean-square norm,
so that : squared distances in the concatenation are times the average over members, each member weighted equally regardless of the scale of its latent. The second member is trained only if the time already spent leaves a wide margin in the phase's time allowance; otherwise the representation falls back to a single member.
t0 = time.time()
parts = []
for m in range(N_MEMBERS):
if m > 0 and budget_s is not None and (time.time() - t0) * (m + 1) / m > 0.7 * float(budget_s):
break
try:
lat = _train_scvi(a.copy(), ctx, seed_offset=m)[1]
except Exception:
if not parts:
raise
break
lat = lat - lat.mean(0, keepdims=True)
lat = lat / max(float(np.sqrt((lat ** 2).sum(1).mean())), 1e-8)
parts.append(lat.astype(np.float32))
ctx.log(f"VAE member {m + 1}: {time.time() - t0:.0f}s")
return np.concatenate(parts, 1)In the embed phase the scored cells' latent is looked up when fit has seen those cells. When the scored cells belong to donors that fit never saw, the same two-member ensemble is trained from scratch on the scored cells, using the gene panel selected in fit. In our development runs on splits with held-out donors this integrated better, on both splits we tried, than mapping the new donors into the fitted model by architectural surgery [11] and than joint training on a reference subsample plus the new cells. Either way, the base latent then goes through the alignment step below.
p = np.asarray([self.pos.get(int(g), -1) for g in np.asarray(ctx.global_index)])
if (p >= 0).all():
return self.lat[p]
q = self._adata(ctx)
try:
return _ensemble_latent(q, ctx, getattr(ctx, "time_budget_s", None))
except Exception as e: # noqa: BLE001 -- keep a usable representation
ctx.log(f"de-novo VAE failed ({e!r}); falling back to PCA of the panel")
return _pca_latent(q.X, ctx.seed)
def embed(self, ctx):
Z0 = self._base(ctx)
dev = ctx.device if (torch.cuda.is_available() and str(ctx.device).startswith("cuda")) else "cpu"
Z = smda(Z0, np.asarray(ctx.batch), device=dev)
ctx.log(f"SMDA: mean displacement {float(np.linalg.norm(Z - Z0, axis=1).mean()):.3f}")
return reduce_dim(Z, self.max_dim, ctx.seed)SMDA: symmetric MNN displacement alignment
SMDA is a single, local refinement of the scored cells' latent with batch labels . It has four parts.
Comparable cells are mutual nearest neighbours, at a resolution set by the partner batch. For a batch with cells we set the neighbourhood size
and write for the nearest cells of batch to cell (excluding itself). A cell of batch is a partner of if the relation holds in both directions, and , as in MNN correction [4]. Scaling with the partner batch's size keeps a fixed resolution in composition space: a small batch is not matched against a whole region of a large one, and the neighbourhood saturates at 10 cells for batches of roughly a thousand cells or more.
Pairs much farther apart than the typical pair are rejected. True correspondences are separated by the residual batch offset, which is shared across the dataset; a pair that is much longer than that links two different states that happen to be each other's closest match. We pool the lengths of all accepted pairs, compute their median and scaled median absolute deviation , and keep a pair only if .
for q in ub:
Iq = knn[q][0][:, :kq[q]]
ok = torch.zeros_like(Iq, dtype=torch.bool)
for p in ub:
if p == q:
continue
r = rows_of[p]
back = knn[p][0][:, :kq[p]][Iq[r]] # each candidate's nearest cells of batch p
ok[r] = (back == r[:, None, None]).any(-1) & torch.isfinite(knn[q][1][r, :kq[q]])
oks[q] = ok
# True correspondences are separated by the (shared) residual batch offset; MNN pairs that are much
# farther apart than the typical pair link different states that happen to be each other's closest
# match (complementary composition) -> rejected by a robust outlier test on the pair distances.
alld = torch.cat([knn[q][1][:, :kq[q]][oks[q]] for q in ub])
if alld.numel() > 0:
med = alld.median()
mad = 1.4826 * (alld - med).abs().median()
for q in ub:
oks[q] = oks[q] & (knn[q][1][:, :kq[q]] <= med + SMDA_DIST_MAD * mad + 1e-12)Each cell's consensus gives one vote per partner batch. Let be the accepted partners of in batch and the set of batches in which has at least one. The consensus position averages the cell's own position with the mean of its partners in each such batch,
Giving every partner batch one vote, rather than pooling all partners, keeps batch offsets cancelling instead of being dominated by the largest batches. The cell's own position always holds one vote, so a cell with partners in few batches is pulled less far; , the number of partner batches, is its support.
The displacement is smoothed within the batch, so the batch moves as a whole. Moving every cell straight to would average cells with their neighbours and blur the structure inside each batch. Instead, for a cell we take its 15 nearest cells within its own batch, a bandwidth equal to the largest of those distances, and the kernel , , and compute a support-weighted average of the displacements,
with when the denominator is zero, that is when neither the cell nor any of its within-batch neighbours has a partner. Each batch is thereby moved by a smooth translation field. Its internal structure (sub-states, cell-cycle variation, rare populations) is kept; nothing is contracted; and a cell without partners, for example in a population that exists in only one batch, moves with its neighbours instead of being merged into something else. The whole step is applied once.
S = Z.clone() # consensus sum: own position + one vote per batch
cnt = torch.ones(n, device=device)
for q in ub:
Iq = knn[q][0][:, :kq[q]]
ok = oks[q]
has = ok.any(1)
pm = (Z[Iq] * ok[..., None].float()).sum(1) / ok.sum(1).clamp(min=1)[:, None].float()
S += pm * has[:, None].float()
cnt += has.float()
R = S / cnt[:, None] - Z # displacement towards the consensus
w = cnt - 1.0 # support: number of partner batches
Rs = torch.zeros_like(R)
for q in ub:
r = rows_of[q]
I, Dv = knn[q]
I, Dv = I[r][:, :SMDA_K_SMOOTH], Dv[r][:, :SMDA_K_SMOOTH]
fin = torch.isfinite(Dv)
Dz = torch.where(fin, Dv, torch.zeros_like(Dv))
h = Dz.max(1, keepdim=True).values.clamp(min=1e-6)
K = torch.cat([torch.ones_like(h), torch.where(fin, torch.exp(-Dz / h), torch.zeros_like(Dz))], 1)
J = torch.cat([r[:, None], I], 1)
ww = K * w[J]
num = (ww[..., None] * R[J]).sum(1)
den = ww.sum(1, keepdim=True)
Rs[r] = torch.where(den > 0, num / den.clamp(min=1e-12), torch.zeros_like(num))
Z = Z + RsSMDA operates on the cells that the embed phase receives; in development, applying it to all adaptation cells instead was worse overall. The two-member, 30-dimensional latent gives a 60-dimensional embedding, which is within the dimension the interface allows and is returned without further reduction. No cell-type label, and neither pretrained transformer, is used anywhere.
N_HVG = 2000
N_LATENT = 30
N_MEMBERS = 2 # independently seeded VAEs whose (normalised) latents are concatenated
SMDA_K_MAX = 10 # max MNN neighbourhood size
SMDA_K_FRAC = 0.01 # MNN neighbourhood = 1% of the partner batch (bounded to [2, SMDA_K_MAX])
SMDA_K_MIN = 2
SMDA_K_SMOOTH = 15 # within-batch neighbourhood over which displacements are smoothed
SMDA_STEPS = 1
SMDA_DIST_MAD = 1.0 # MNN pairs farther apart than median + 1 MAD of all MNN pair distances are rejectedResults
| Method | ① | ② | ③ | ④ | ⑤ | ⑥ | ⑦ | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Batch-integration score ↑ | Bio-conservation ↑ | Batch-integration score ↑ | Bio-conservation ↑ | Batch-integration score ↑ | Bio-conservation ↑ | Batch-integration score ↑ | Bio-conservation ↑ | Batch-integration score ↑ | Bio-conservation ↑ | Batch-integration score ↑ | Bio-conservation ↑ | Batch-integration score ↑ | Bio-conservation ↑ | |
| Claude Opus 5.5 | 0.812 | 0.861 | 0.736 | 0.722 | 0.549 | 0.646 | 0.776 | 0.776 | 0.613 | 0.683 | 0.598 | 0.631 | 0.692 | 0.785 |
| Frozen Geneformer | 0.315 | 0.548 | 0.417 | 0.641 | 0.365 | 0.639 | 0.504 | 0.525 | 0.461 | 0.674 | 0.426 | 0.612 | 0.408 | 0.640 |
| Constant embedding | 0.440 | 0.350 | 0.447 | 0.357 | 0.443 | 0.342 | 0.439 | 0.349 | 0.424 | 0.369 | 0.425 | 0.375 | 0.427 | 0.360 |
| Random-target MLM | 0.252 | 0.389 | 0.303 | 0.335 | 0.342 | 0.332 | 0.325 | 0.349 | 0.326 | 0.303 | 0.311 | 0.306 | 0.366 | 0.317 |
| HVG + PCA | 0.425 | 0.723 | 0.476 | 0.698 | 0.290 | 0.684 | 0.543 | 0.706 | 0.451 | 0.720 | 0.476 | 0.660 | 0.414 | 0.691 |
| Harmony | 0.757 | 0.894 | 0.694 | 0.760 | 0.501 | 0.708 | 0.738 | 0.750 | 0.537 | 0.707 | 0.542 | 0.628 | 0.583 | 0.743 |
| Scanorama | 0.686 | 0.822 | 0.678 | 0.766 | 0.381 | 0.677 | 0.654 | 0.779 | 0.494 | 0.722 | 0.429 | 0.641 | 0.578 | 0.692 |
| scVI | 0.756 | 0.847 | 0.720 | 0.747 | 0.521 | 0.677 | 0.751 | 0.791 | 0.573 | 0.732 | 0.580 | 0.649 | 0.676 | 0.772 |
| Geneformer, continued MLM | 0.342 | 0.545 | 0.374 | 0.624 | 0.325 | 0.630 | 0.451 | 0.623 | 0.432 | 0.702 | 0.416 | 0.617 | 0.346 | 0.626 |
| scGPT, ECS + DAB | 0.545 | 0.726 | 0.639 | 0.742 | 0.469 | 0.725 | 0.676 | 0.766 | 0.490 | 0.705 | 0.547 | 0.639 | 0.607 | 0.742 |
| CLEAR | 0.340 | 0.561 | 0.398 | 0.642 | 0.333 | 0.679 | 0.505 | 0.628 | 0.410 | 0.699 | 0.442 | 0.628 | 0.366 | 0.648 |
| CONCORD | 0.685 | 0.803 | 0.642 | 0.697 | 0.532 | 0.656 | 0.647 | 0.750 | 0.554 | 0.683 | 0.565 | 0.626 | 0.696 | 0.789 |
| sysVI | 0.691 | 0.858 | 0.663 | 0.710 | 0.488 | 0.714 | 0.651 | 0.757 | 0.494 | 0.707 | 0.539 | 0.648 | 0.585 | 0.748 |
| scCRAFT | 0.822 | 0.826 | 0.720 | 0.753 | 0.574 | 0.700 | 0.792 | 0.784 | 0.584 | 0.709 | 0.602 | 0.621 | 0.632 | 0.667 |
| scCobra | 0.720 | 0.806 | 0.675 | 0.744 | 0.479 | 0.682 | 0.681 | 0.776 | 0.522 | 0.693 | 0.528 | 0.640 | 0.613 | 0.708 |
| DRVI | 0.721 | 0.827 | 0.683 | 0.735 | 0.477 | 0.645 | 0.743 | 0.789 | 0.526 | 0.734 | 0.543 | 0.647 | 0.683 | 0.771 |
| VICReg | 0.577 | 0.631 | 0.617 | 0.702 | 0.462 | 0.424 | 0.727 | 0.788 | 0.560 | 0.660 | 0.573 | 0.602 | 0.635 | 0.728 |
| ComBat | 0.712 | 0.838 | 0.572 | 0.713 | 0.481 | 0.665 | 0.655 | 0.777 | 0.492 | 0.698 | 0.531 | 0.641 | 0.665 | 0.677 |
| SCA | 0.498 | 0.721 | 0.408 | 0.659 | 0.327 | 0.677 | 0.574 | 0.744 | 0.434 | 0.718 | 0.474 | 0.651 | 0.508 | 0.674 |
| SCALEX | 0.546 | 0.641 | 0.541 | 0.568 | 0.499 | 0.563 | 0.615 | 0.664 | 0.466 | 0.529 | 0.450 | 0.502 | 0.485 | 0.518 |
| LIGER | 0.669 | 0.720 | 0.620 | 0.658 | 0.482 | 0.585 | 0.738 | 0.737 | 0.513 | 0.614 | 0.532 | 0.553 | 0.567 | 0.619 |
| Density-Adaptive BBSG | 0.691 | 0.798 | 0.673 | 0.721 | 0.494 | 0.646 | 0.678 | 0.759 | 0.566 | 0.513 | 0.549 | 0.458 | 0.629 | 0.659 |
| Zero-shot scGPT | 0.493 | 0.687 | 0.523 | 0.691 | 0.431 | 0.692 | 0.567 | 0.746 | 0.491 | 0.690 | 0.535 | 0.637 | 0.517 | 0.664 |
| Zero-shot SCimilarity | 0.460 | 0.710 | 0.495 | 0.732 | 0.365 | 0.691 | 0.546 | 0.753 | 0.420 | 0.735 | 0.453 | 0.667 | 0.504 | 0.747 |
| fastMNN | 0.718 | 0.841 | 0.704 | 0.771 | 0.456 | 0.694 | 0.734 | 0.807 | 0.480 | 0.692 | 0.531 | 0.635 | 0.621 | 0.723 |
| mnnCorrect | 0.693 | 0.802 | 0.647 | 0.765 | 0.381 | 0.685 | 0.685 | 0.789 | ||||||
| limma removeBatchEffect | 0.600 | 0.727 | 0.497 | 0.696 | 0.459 | 0.677 | 0.697 | 0.784 | 0.444 | 0.686 | 0.490 | 0.649 | 0.612 | 0.677 |
| Harmony, R package | 0.723 | 0.828 | 0.667 | 0.756 | 0.499 | 0.716 | 0.702 | 0.789 | 0.530 | 0.694 | 0.562 | 0.623 | 0.675 | 0.715 |
| LIGER, R package | 0.683 | 0.681 | 0.632 | 0.665 | 0.478 | 0.590 | 0.766 | 0.761 | 0.523 | 0.619 | 0.512 | 0.542 | 0.589 | 0.645 |
| scMerge2 | 0.726 | 0.834 | 0.675 | 0.728 | 0.507 | 0.604 | 0.704 | 0.755 | 0.509 | 0.593 | 0.536 | 0.643 | 0.630 | 0.642 |
| Seurat CCA | 0.744 | 0.861 | 0.621 | 0.710 | 0.490 | 0.559 | 0.721 | 0.766 | 0.502 | 0.633 | 0.518 | 0.574 | 0.634 | 0.749 |
| Seurat RPCA | 0.758 | 0.876 | 0.680 | 0.756 | 0.522 | 0.656 | 0.750 | 0.784 | 0.493 | 0.649 | 0.525 | 0.585 | 0.624 | 0.773 |
| STACAS | 0.713 | 0.835 | 0.653 | 0.743 | 0.446 | 0.689 | 0.727 | 0.785 | 0.485 | 0.687 | 0.501 | 0.604 | 0.588 | 0.785 |
| BBKNN | 0.462 | 0.969 | 0.430 | 0.822 | 0.301 | 0.665 | 0.410 | 0.845 | 0.290 | 0.641 | 0.326 | 0.583 | 0.358 | 0.673 |
| Zero-shot UCE | 0.532 | 0.664 | 0.610 | 0.717 | 0.448 | 0.677 | 0.530 | 0.702 | 0.497 | 0.723 | 0.542 | 0.650 | 0.570 | 0.679 |
| Zero-shot CellPLM | 0.515 | 0.697 | 0.483 | 0.708 | 0.364 | 0.684 | 0.555 | 0.710 | 0.471 | 0.709 | 0.472 | 0.644 | 0.521 | 0.700 |
| Zero-shot scPRINT | 0.424 | 0.590 | 0.558 | 0.658 | 0.446 | 0.648 | 0.537 | 0.567 | 0.505 | 0.614 | 0.454 | 0.591 | 0.546 | 0.584 |
| scGPT fine-tuned, OpenProblems | 0.466 | 0.686 | 0.515 | 0.728 | 0.432 | 0.671 | 0.557 | 0.730 | 0.486 | 0.709 | 0.504 | 0.638 | 0.540 | 0.697 |
- ① human pancreas, technology batches
- ② human immune, donor/study batches
- ③ human lung atlas, donor batches
- ④ human kidney (diabetic kidney disease), donor batches, single-nucleus
- ⑤ human cross-tissue atlas (GTEx), donor batches, single-nucleus
- ⑥ human multi-organ atlas (Tabula Sapiens), donor-by-assay batches
- ⑦ human cross-tissue immune atlas (Immune Cell Atlas), donor batches
Batch integration. Our batch-integration score is above scVI's on every setting: for example 0.812 against 0.756 on Pancreas, 0.613 against 0.573 on GTEx and 0.692 against 0.676 on ICA. On Immune and GTEx it is above every published baseline; the strongest baselines there are scVI [10] (0.720) and scCRAFT [19] (0.584). On each of the other five settings exactly one baseline is ahead of us: scCRAFT [19] on Pancreas (0.822 against our 0.812), Lung (0.574 against 0.549), Kidney-DKD (0.792 against 0.776) and TabulaSap (0.602 against 0.598), and CONCORD [17] on ICA (0.696 against 0.692). The largest of these gaps is on Lung. Against the starter, the zero-shot Geneformer embedding, the gain is large everywhere, for example 0.812 against 0.315 on Pancreas.
Biology conservation. Here the picture is different. Our biology-conservation score is above scVI's on Pancreas (0.861 against 0.847) and ICA (0.785 against 0.772), and below it on the other five, for example 0.683 against 0.732 on GTEx and 0.646 against 0.677 on Lung. On Lung, GTEx and TabulaSap it is also below the unintegrated HVG + PCA reference (0.684, 0.720 and 0.660), and on Lung it is only just above the zero-shot Geneformer embedding (0.639). Our development measurements had suggested that our method buys its batch mixing at little or no cost in conserved structure; the published means show that, relative to scVI, it does cost conserved structure on most settings, and that the gain we report is a gain in batch mixing.
How we got here
The method was narrowed by a sequence of experiments rather than designed up front. All development numbers below are our own measurements: we assembled labelled public datasets for development and scored candidates against those labels. The labels were used only for this model selection; the submitted code never sees one.
- A VAE latent as the base. Our first candidate was Harmony on a PCA of all adaptation cells. Among the references we reran in development, the scVI latent was the strongest single base, and Harmony applied on top of scVI gave mixed results, over-correcting on some datasets. We kept scVI and looked for something gentler to add.
- Post-processing that contracts, or re-centres, failed. We tested a series of corrections applied to stored embeddings of the scored cells. Per-batch centring removed the batch means but hurt local mixing, because batches differ in composition and their means differ for biological reasons too. Batch-balanced neighbour graphs raised batch mixing but cost cell-type separation. Graph smoothing and a batch-balanced consensus smoothing pulled cells towards their cross-batch neighbours, which mixed batches but contracted the embedding, and did not pay off on balance. These failures are where the rule "translate, do not contract" comes from: SMDA, which we wrote next, keeps the consensus of cross-batch neighbours but moves cells only by a smoothed translation.
- One step, on the scored cells. Early SMDA ran three steps; the comparison between one step and several was mixed in our development measurements. Late in development we compared step sizes again, found them close, and kept the more conservative single step. Applying SMDA to all adaptation cells rather than only to the scored ones was worse overall; restricting matches to clusters kept cell-type structure but left more batch variance; a single global shift per batch did not help on average, changing most datasets very little but lowering one markedly.
- Batch-size-proportional neighbourhoods and the distance filter. On one development dataset with many small batches, SMDA with a fixed neighbourhood was clearly harmful. Making the neighbourhood 1% of the partner batch reduced that loss against plain scVI from -0.056 to -0.037 in our development measurements; on datasets with large batches the two are the same, because the neighbourhood reaches its cap of 10 anyway. The pair-distance filter was added next, to reject long pairs; its net effect in our later ablation was about zero (it added 0.005 averaged over nine development datasets, and left the three datasets we never used during development marginally lower or unchanged), and we kept it as a guard against bad matches.
- The failure we could not fix: complementary compositions. On that same many-small-batch dataset, a developmental population present in only a few batches found MNN partners among mature cell types in the other batches and was pulled towards them. The distance filter we kept reduces this without removing it. Every further fix we tried (local-scale filters, evidence-weighted votes, compatibility-weighted votes between batch pairs, a step size scaled by support, cluster-restricted matching) traded a gain there against losses on other datasets. We concluded that this is a confound between biology and batch that MNN correspondences alone cannot resolve.
- The ensemble came from seed variance. A single scVI model on one development dataset scored 0.712 with one seed and 0.631 with another in our development measurements. Concatenating two members' normalised latents raised the four-dataset mean with SMDA from 0.6642 (single members, averaged) to 0.6735; a third member gave 0.6727, so we stopped at two. Cross-panel ensembles, with members on different gene panels, were worse, and so was taking only MNN pairs that are stable across members.
- Other ideas that did not help: completing scVI's KL annealing (on one development dataset our development score fell from 0.623 to 0.507), a lower maximum KL weight (within seed noise and unstable), a 10-dimensional latent instead of 30, aligning second moments as well as means, a trust-region cap on displacements, linear discriminant analysis on pseudo-labels, reweighting latent directions by their autocorrelation over the neighbour graph, and returning a neighbour graph instead of an embedding.
- Ablations of the final design. On twelve datasets (nine development datasets plus three we never used during development; single-seed latents), scVI alone scored 0.6108, scVI with SMDA 0.6225, and SMDA without the within-batch smoothing 0.5968. Without the smoothing, each cell jumps to its own consensus, cells inside a batch are drawn together and the score falls below plain scVI; the smoothing keeps the structure while still delivering most of the batch-mixing gain. Pooling all partners instead of one vote per batch gave 0.6209 against 0.6225, about equal on average; one vote per batch was clearly ahead only on two datasets with unequal batch sizes. On the three datasets we never used during development the full method was ahead of scVI by +0.015 to +0.031, with both components contributing on two of the three.
Limitations
- The gain is batch mixing, not biology. Our biology-conservation score is below scVI's on five of the seven settings, and below the unintegrated HVG + PCA reference on Lung, GTEx and TabulaSap. Our own development breakdown had shown gains concentrated in batch mixing, and the published means say the trade is less favourable than our development data suggested. A user who cares mainly about conserved structure would not choose SMDA over scVI on that evidence.
- Complementary compositions break the correspondence assumption. When a population exists only in some batches, MNN pairs can link it to a different population in other batches, and SMDA pulls it across. The pair-distance filter and the support-weighted smoothing reduce this but do not remove it, and every fix we tried traded the loss on one dataset for a loss on another.
- Not first on most settings. On five of the seven settings one published baseline has a higher batch-integration score than ours, most often scCRAFT [19], and on Lung the gap is the largest.
- Constants were selected with labels on public data. The submitted code uses no labels, but its few constants (neighbourhood sizes, the distance threshold, one step, two members) were chosen by scoring against cell-type labels on our development datasets. The sensitivity we measured around them was flat, but this is a form of supervised selection that a purely unsupervised user would not have.
- The contribution is a refinement of an existing model. Most of the representation is scVI; our additions are a seed ensemble and a post-hoc alignment step. The pretrained transformers, which the task makes available, are not used at all, and on donors that fit never saw the method simply retrains the VAE on the new cells rather than transferring anything it learned.
- Cost. Two VAE members roughly double the training time of a single scVI model; the second member is skipped when time is short, and the representation then has the larger seed variance of a single model.
References
- Malte D. Luecken, M. Büttner, K. Chaichoompu et al. (2022). Benchmarking atlas-level data integration in single-cell genomics. Nature Methods.
- W. Evan Johnson, Cheng Li, Ariel Rabinovic (2007). Adjusting batch effects in microarray expression data using empirical Bayes methods. Biostatistics.
- Matthew E. Ritchie, Belinda Phipson, Di Wu et al. (2015). limma powers differential expression analyses for RNA-sequencing and microarray studies. Nucleic Acids Research.
- Laleh Haghverdi, Aaron T L Lun, Michael D Morgan et al. (2018). Batch effects in single-cell RNA-sequencing data are corrected by matching mutual nearest neighbors. Nature Biotechnology.
- Brian Hie, Bryan Bryson, Bonnie Berger (2019). Efficient integration of heterogeneous single-cell transcriptomes using Scanorama. Nature Biotechnology.
- Tim Stuart, Andrew Butler, Paul Hoffman et al. (2019). Comprehensive Integration of Single-Cell Data. Cell.
- Massimo Andreatta, Santiago J Carmona (2021). STACAS: Sub-Type Anchor Correction for Alignment in Seurat to integrate single-cell RNA-seq data. Bioinformatics.
- Ilya Korsunsky, Nghia Millard, Jean Fan et al. (2019). Fast, sensitive and accurate integration of single-cell data with Harmony. Nature Methods.
- Krzysztof Polański, Matthew D Young, Zhichao Miao et al. (2020). BBKNN: fast batch alignment of single cell transcriptomes. Bioinformatics.
- Romain Lopez, Jeffrey Regier, Michael B. Cole et al. (2018). Deep generative modeling for single-cell transcriptomics. Nature Methods.
- Mohammad Lotfollahi, Mohsen Naghipourfar, Malte D. Luecken et al. (2022). Mapping single-cell data to reference atlases by transfer learning. Nature Biotechnology.
- Christina V. Theodoris, Ling Xiao, Anant Chopra et al. (2023). Transfer learning enables predictions in network biology. Nature.
- Haotian Cui, Chloe Wang, Hassaan Maan et al. (2024). scGPT: toward building a foundation model for single-cell multi-omics using generative AI. Nature Methods.
- Kasia Z. Kedzierska, Lorin Crawford, Ava P. Amini et al. (2023). Assessing the limits of zero-shot foundation models in single-cell biology. bioRxiv.
- Rebecca Boiarsky, Nalini Singh, Alejandro Buendia et al. (2023). A Deep Dive into Single-Cell RNA Sequencing Foundation Models. bioRxiv.
- Wenkai Han, Yuqi Cheng, Jiayang Chen et al. (2022). Self-supervised contrastive learning for integrative single cell RNA-seq data analysis. Briefings in Bioinformatics.
- Qin Zhu, Zuzhi Jiang, Binyamin Zuckerman et al. (2026). Revealing a coherent cell-state landscape across single-cell datasets with CONCORD. Nature Biotechnology.
- Karin Hrovatin, Amir Ali Moinfar, Luke Zappia et al. (2025). Integrating single-cell RNA-seq datasets with substantial batch effects. BMC Genomics.
- Chuan He, Paraskevas Filippidis, Steven H. Kleinstein et al. (2025). Partially characterized topology guides reliable anchor-free scRNA-integration. Communications Biology.
- Bowen Zhao, Kailu Song, Dong-Qing Wei et al. (2025). scCobra allows contrastive cell embedding learning with domain adaptation for single cell data integration and harmonization. Communications Biology.
- Amir Ali Moinfar, Fabian J. Theis (2024). Disentangling cellular heterogeneity into interpretable biological factors through structured latent representations. bioRxiv.
- Adrien Bardes, Jean Ponce, Yann LeCun (2022). VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learning. ICLR.
- Benjamin DeMeo, Bonnie Berger (2023). SCA: recovering single-cell heterogeneity through information-based dimensionality reduction. Genome Biology.
- Lei Xiong, Kang Tian, Yuzhe Li et al. (2022). Online single-cell data integration through projecting heterogeneous datasets into a common cell-embedding space. Nature Communications.
- Joshua D. Welch, Velina Kozareva, Ashley Ferreira et al. (2019). Single-Cell Multi-omic Integration Compares and Contrasts Features of Brain Cell Identity. Cell.
- Stephen Chung, Wenyu Du (2025). The Station: An Open-World Environment for AI-Driven Discovery.
- Graham Heimberg, Tony Kuo, Daryle J. DePianto et al. (2025). A cell atlas foundation model for scalable search of similar human cells. Nature.
- Yingxin Lin, Shila Ghazanfar, Kevin Y. X. Wang et al. (2019). scMerge leverages factor analysis, stable expression, and pseudoreplication to merge multiple single-cell RNA-seq datasets. Proceedings of the National Academy of Sciences.
- Yuhan Hao, Tim Stuart, Madeline H. Kowalski et al. (2024). Dictionary learning for integrative, multimodal and scalable single-cell analysis. Nature Biotechnology.
- Yanay Rosen, Yusuf Roohani, Ayush Agrawal et al. (2023). Universal Cell Embeddings: A Foundation Model for Cell Biology. bioRxiv.
- Hongzhi Wen, Wenzhuo Tang, Xinnan Dai et al. (2024). CellPLM: Pre-training of Cell Language Model Beyond Single Cells. ICLR.
- Jérémie Kalfon, Jules Samaran, Gabriel Peyré et al. (2025). scPRINT: pre-training on 50 million cells allows robust gene network predictions. Nature Communications.