When biologists combine single-cell or microscopy data from many labs, sequencing technologies or plates, the merged data often groups by where it was measured rather than by biology. Correcting this "batch effect" requires deciding which groups of cells in one batch correspond to which groups in every other batch. With $B$ batches, each holding a handful of cell clusters, the number of possible cross-batch correspondences grows exponentially. Current tools handle this in one of three ways. They match cells greedily to their nearest neighbors in other batches. They solve an exact matching between two batches and then chain those matchings together. Or they softly pull all batches toward one shared space. None of these chooses a small, explicit set of multi-batch correspondences, and none treats "this cell type is missing from this batch" as a first-class answer.
Wireless network engineering has faced the same structure: choosing which subsets of base stations transmit together out of $2^n$ possibilities. There, theorems show the optimal schedule uses only about as many active patterns as there are users, and sparse optimization finds them. We propose to transfer that idea directly. Multi-batch integration becomes a choice among cross-batch patterns. Each pattern is a tuple that names one cluster per batch or declares the type absent from that batch. The patterns are selected by a linear program whose optimal solutions provably use at most as many patterns as there are clusters in total. Each selected pattern becomes a correction anchor for every batch at once. The method has no merge order, no hand-tuned similarity cutoff, and an explicit price for declaring a cell type batch-specific.
Core Claim
The pattern-sparsity results we borrow are concrete. Large-Scale Spectrum Allocation for Cellular Networks via Sparse Optimization and Scalable Spectrum Allocation for Large Networks Based on Sparse Optimization prove that utility-maximizing spectrum allocation needs at most $k+1$ segments for $k$ users. In a 100-access-point network, their reweighted-$\ell_1$ solver found that only 23 patterns were needed (Scalable Spectrum Allocation…). Optimal Joint User Association and Multi-Pattern Resource Allocation in Heterogeneous Networks bounds active patterns by users plus base stations. These papers supply the method and the style of guarantee. They say nothing about biology.
Our formulation works as follows. Cluster each batch $b$ separately into clusters with centroids $\mu_{b,c}$, for $c = 1,\dots,K_b$. A pattern $p=(c_1,\dots,c_B)$ assigns each batch either one of its clusters or the symbol $\varnothing$ ("absent here"). Let $x_p \ge 0$ be the weight placed on pattern $p$. We solve
$$ \min_{x\ge 0}\ \sum_p x_p\Big(\sum_{b:\,c_b\neq\varnothing}\|\mu_{b,c_b}-\bar\mu_p\|^2+\lambda\,|\{b: c_b=\varnothing\}|\Big)\quad\text{s.t.}\quad \sum_{p:\,c_b(p)=c} x_p = 1\ \ \text{for every batch } b \text{ and cluster } c. $$
Here $\bar\mu_p$ is the mean of the centroids present in pattern $p$. The parameter $\lambda$ is the price paid each time a pattern declares a type absent from a batch. The program has $\sum_b K_b$ equality constraints, so any vertex solution has at most $\sum_b K_b$ nonzero patterns. This is the same counting argument that gives $k+1$ in the spectrum work, applied over an exponential pattern space.
Integral solutions are partitions of all clusters into cross-batch groups with at most one cluster per batch. Fractional solutions are informative too: they mark a cluster that mixes two biological types. The constant $\lambda$ replaces BERMUDA's pre-computed similarity threshold. A cluster stays unmatched when matching it would cost more than $\lambda$ in dispersion per batch it would otherwise be absent from.
The bound itself is a standard linear-programming fact, and we do not claim it as deep. The empirical claim is what matters: on real data, the number of active patterns should land near the true number of shared and batch-specific types. Solving jointly over all batches should also beat chained pairwise matching exactly where it is expected to, namely when some cell types appear in only some batches.
Research Program
Solving over all $\prod_b (K_b+1)$ patterns is impossible, and the integral version is a multi-dimensional assignment problem, which is NP-hard for $B\ge 3$. We will use column generation instead. Start with singleton patterns, which declare each cluster batch-specific. Then repeatedly add the pattern with the most negative reduced cost, using the dual variables of the cluster constraints.
The pricing step asks which tuple of clusters is tightest relative to the duals. We restrict it to tuples drawn from each cluster's few nearest cross-batch centroids. This mirrors how Zhuang et al. cut variables from $O(2^n)$ to $O(nk)$ through local interference neighborhoods. We then round to an integral partition by branch-and-price on small instances and by greedy rounding on large ones. As a comparison solver, we will also run the continuous reweighted-$\ell_1$ relaxation used in the spectrum papers.
Once patterns are chosen, each pattern's barycenter defines one correction vector for each of its member clusters. Patterns containing a single cluster receive no correction. Correction is then extrapolated to individual cells by the nearest-anchor weighted average of BATMAN. That paper is the direct ancestor of our approach. It showed that global minimum-weight bipartite matching of cluster centroids beats greedy mutual nearest neighbors, but its formulation covers only two batches. Our contribution is the multi-way, absence-aware generalization with a sparsity certificate.
Two further pieces complete the method. We will use the dual variables at the optimum as per-cluster evidence of batch-specificity, to be read alongside the statistical alignability test of SMAI. SMAI decides whether two whole datasets are alignable. It does not decide which subsets of $B$ datasets share which types, and it is restricted to linear transforms. Finally, we will choose $\lambda$ by held-out stability rather than by hand, and report sensitivity curves.
We deliberately do not build an end-to-end differentiable version with learned thresholds, in the style of the attention-driven on/off thresholds in RJAPCBN. The discrete program is small (hundreds of clusters), so solving it exactly is cheaper and easier to interpret than learning to approximate it.
Baselines
The naive reference point is no correction, plus global z-scoring or ComBat. Cross-platform analysis of cancer microarray data documents that such normalization leaves samples grouped by study. This baseline fixes the floor for every metric.
The strongest existing multi-batch method is Harmony, with Seurat-RPCA as a second strong option. Evaluating batch correction methods for image-based cell profiling reports both as consistently among the top three across all five JUMP Cell Painting scenarios. However, the file quotes no scalar score: no reported result found on Lacuna for Harmony's numeric metrics on JUMP or on the Human Pancreas benchmark. We will therefore rerun Harmony ourselves on identical principal-component inputs, using the same cell clusters where applicable and the same evaluation code. Each method gets an equal hyperparameter search budget: diversity penalty and cluster count for Harmony, $\lambda$ and cluster resolution for ours. Beating Harmony means matching it on batch mixing while improving preservation of batch-specific types, or doing both. A gain in mixing alone does not count.
The closest structural baseline is BATMAN chained across batches. We will report it in two ways: averaged over random merge orders, and with the best order chosen in hindsight. On Splatter simulations with large batch effects, BATMAN reported an iLISI of 1.84 against 1.00 for Seurat and MNNcorrect, and 92% 50-RNN preservation against 58% (Seurat) and 51% (MNN) (BATMAN). In the two-batch case our method reduces to essentially BATMAN plus an absence option, so we must reproduce roughly those numbers there. The real test is at $B\ge 3$.
We also include BERMUDA, with its threshold tuned on held-out data (BERMUDA), as the existing approach for unbalanced compositions. We include scBatchProx, with its reported 3–8% relative gain in embedding quality on Human Pancreas (Federated-inspired Single-cell Batch Integration in Latent Space), as a post-hoc layer that can be stacked on any method. Three ablations isolate our key ingredients. The first removes the absence option, forcing full tuples. The second replaces the sparse vertex solution with dense entropic multi-marginal coupling, which keeps all patterns with small weight. The third replaces column generation with reweighted $\ell_1$.
Why not just…?
Why not just use Harmony, which already handles many batches? Harmony softly assigns cells to shared clusters and pulls every batch toward each cluster's centroid. It has no explicit way to say a cluster exists in batches 1 and 4 but not elsewhere. This is a real threat, because Harmony is strong on JUMP. The Splatter experiment below, with types removed from chosen subsets of batches, will show whether this limitation matters in practice. If Harmony preserves held-out types as well as our method, the contribution shrinks to interpretability and a certificate of parsimony, and we will say so.
Why not just match every batch to one reference batch with BATMAN? Star matching has no merge-order problem. It fails by construction, however, when the reference lacks a type that two other batches share: those two batches never get aligned to each other. We will plant exactly this case and also report star matching with the best reference chosen in hindsight. If the best-reference star matches our results on real data, the joint program is unnecessary in practice.
Why not just pool all cells, cluster once, and align within clusters? When batch variance exceeds biological variance, which is the regime Warnat et al. and the RxRx1 seen-versus-unseen gap (91.1% versus 75.1% for DenseNet161, RxRx1) both document, pooled clusters form along batch lines. The no-correction baseline's clustering purity will show this directly.
Why not just use pairwise unbalanced matching with a fixed cutoff? That is effectively BERMUDA's design. Pairwise decisions can be mutually inconsistent across three or more batches, for example A matches B and B matches C while A does not match C. Our program forbids this by construction. We will count such inconsistencies in the pairwise baseline.
Proposed Experiments
The decisive synthetic test uses Splatter. We will vary $B$ from 2 to 12 and remove a chosen subset of cell types from chosen subsets of batches. We will measure iLISI on shared types, 50-RNN preservation, and the fraction of batch-specific types that stay unmixed. The method succeeds if, for $B\ge 4$, it keeps iLISI comparable to BATMAN's 1.84 regime while preserving batch-specific types better than Harmony, chained BATMAN and best-reference star matching. It must also show near-zero variance across input orders, which it should by construction, against measurable order variance for chained BATMAN. We will also check the parsimony claim directly: the number of active patterns should track the planted number of distinct presence patterns, well below the $\sum_b K_b$ bound.
On real data, we will use the five-technology Human Pancreas benchmark, with iLISI, kBET and cell-type preservation. We expect our presence patterns to recover technology-specific gaps, for instance rare populations captured only by Smart-seq2. On the SMAI negative-control tasks Neg1–Neg3, the program should leave clusters unmatched, which is the analogue of SMAI-test flagging them unalignable (SMAI). For high-content imaging, we will apply the method to profile embeddings from the multi-lab, multi-microscope JUMP scenarios, using the evaluation protocol of Evaluating batch correction methods for image-based cell profiling, and to embeddings of the 51-batch RxRx1 set. RxRx1 tests scaling to many batches, and its four cell types give a natural presence structure.
Three outcomes would falsify the proposal. The first is that the no-absence ablation performs as well as the full method, which would mean the absence option buys nothing. The second is that dense multi-marginal coupling matches sparse selection, which would mean sparsity is not what helps. The third is that best-reference star matching equals the joint solve on real benchmarks. Any one of these would show that pattern sparsity, the ingredient borrowed from wireless allocation, does not earn its place in batch correction.
References
- Large-Scale Spectrum Allocation for Cellular Networks via Sparse Optimization
- Scalable spectrum allocation for large networks based on sparse optimization
- Network Topology Adaptation and Interference Coordination for Energy Saving in Heterogeneous Networks
- BATMAN: Fast and Accurate Integration of Single-Cell RNA-Seq Datasets via Minimum-Weight Matching
- Principled and interpretable alignability testing and integration of single-cell data
- Computationally Efficient Unsupervised Deep Learning for Robust Joint AP Clustering and Beamforming Design in Cell-Free Systems
- Cross-platform analysis of cancer microarray data improves gene expression based classification of phenotypes
- Evaluating batch correction methods for image-based cell profiling
- BERMUDA: a novel deep transfer learning method for single-cell RNA sequencing batch correction reveals hidden high-resolution cellular subtypes
- Federated-inspired Single-cell Batch Integration in Latent Space
- RxRx1: A Dataset for Evaluating Experimental Batch Correction Methods