Sending Clusters, Not Cells: Budgeted Central Annotation for Single-Cell Data

A single-cell RNA sequencing experiment measures the activity of thousands of genes in each of tens of thousands of individual cells from one tissue sample. The first thing a lab or hospital usually wants from that data is a label for every cell, such as "T cell" or "fibroblast." The most accurate labelers today are large "foundation models" pretrained on tens of millions of cells. They live on central GPU servers. Sending every cell of every sample to such a service costs upload volume, puts raw patient data off-site, and makes each sample wait in a shared queue. Small models that run on-site are cheap, but they are less accurate and fail on cell types they have never seen.

This note proposes a middle path that uses a basic fact about single-cell data. Cells from one sample arrive together, and cells of the same type sit close together once the data is reduced to a low-dimensional map. So the decision to escalate to the central model should be made per cluster of similar cells, not per cell. A small on-site model labels the clusters it is sure about. For each cluster it is unsure about, it sends only a handful of representative cells to the central model and spreads the returned label across the cluster. If the central model's answers for a cluster disagree or look uncertain, the site sends more cells from that cluster, and possibly splits it. We claim this recovers most of the accuracy gap between small and large models for a small fraction of the central compute and upload of either a send-everything pipeline or a standard per-cell confidence cascade. We also claim that the disagreement signal flags novel cell types better than per-cell rejection thresholds.

What the two directions contribute, and an honest framing of latency

Work on edge versus centralized processing studies what happens when every input must travel to a distant server. Dynamic Compression Ratio Selection for Edge Inference Systems with Hard Deadlines treats offloading under deadlines as a sequential decision problem. When the server's output distribution has high Shannon entropy, the server asks the device to resend the input at higher resolution. The paper reports a 97.5% on-time success rate on MNIST, 4.5 points above the best fixed-resolution policy. Distributed Collaborative Inference System in Next-Generation Networks and Communication builds a three-tier device, edge and cloud cascade for BERT. Each input finishes locally or moves up a tier based on softmax confidence, which gives a 17% latency reduction over Tabi on IMDB. Edge Learning with Timeliness Constraints argues that wall-clock delay, not round count, is the quantity to optimize. We reuse two methods from this line: entropy-triggered requests for more information, and confidence-gated escalation. In both prior systems, every input is escalated or not independently. Neither exploits structure shared across inputs.

The single-cell side supplies both the models and the failure modes. A Simple and Comprehensive Benchmark for Single-Cell Transcriptomics shows that a 0.64M-parameter adapted multilayer perceptron reaches 81.4% cell-type accuracy on CELLxGENE, against 84.9% for a tuned 21.87M-parameter Transformer. That makes the small model a credible on-site labeler with a measurable gap to close. BMFM-RNA provides a central model trained with a whole-cell reconstruction objective. It reports an average 3.7-point zero-shot annotation gain over scGPT. Evaluation of single-cell classifiers motivates the proposal from the other side. Standalone classifiers either force novel cell types into known labels or reject closely related known subtypes as "unassigned," and they saturate at roughly 500 reference cells per type. Federated Self-Supervised Single-cell Clustering documents that raw data often cannot be pooled across institutions. That is a second reason to send as few cells off-site as possible.

A reviewer will fairly point out that sequencing takes hours, so millisecond network delay is irrelevant. We agree, and we do not claim a millisecond-scale use case. The latency that matters here is sample turnaround at a shared central annotation service: time to upload the sample, time spent waiting in the GPU queue, and time for central inference, measured against a deadline of minutes to hours per sample. We also treat central GPU-seconds and the number of raw cells leaving the site as budgets in their own right. Under this framing, the latency direction supplies the problem shape: many tasks, one congested central resource, and a per-task deadline. It does not supply its millisecond numbers.

Core Claim

Label errors in single-cell data are strongly correlated within clusters. The central model's answers on a few cells therefore carry information about all the cells near them. Per-cell cascades treat cells as independent and spend central compute on thousands of uncertain cells whose answers are nearly redundant. Cluster-level escalation with adaptive resampling should reach the large model's accuracy for a small fraction of the central cost. Disagreement among the central model's answers within a cluster should be a better novelty signal than per-cell confidence from either model alone.

Research Program

The on-site stage runs standard quality control, a low-dimensional embedding, and graph clustering at deliberately fine resolution, so that clusters are over-split rather than merged. The Qi et al. adapted multilayer perceptron then labels every cell. For each cluster $c$ we compute an ambiguity score $a_c$, defined as the mean prediction entropy of the small model over cells in $c$ plus the entropy of the cluster's label histogram. Clusters below a threshold keep their local labels.

For each ambiguous cluster, the site sends $k$ cells to the central model, starting with $k$ between 5 and 20. The cells are chosen to cover the cluster: its medoid plus farthest-point samples. When the central labels agree with high confidence, the majority label is propagated to the whole cluster. When they disagree, or the central model's entropy is high, the site takes the analogue of the "information augmentation" step in the deadline-inference paper. It either sends more cells or re-clusters that cluster at finer resolution and repeats. A cluster that stays in disagreement after the resampling budget is exhausted is reported as a candidate novel or transitional population rather than being forced into a label.

A queue-aware scheduler decides how many cells each sample may send given its deadline and current central load. We will start from a greedy policy that spends budget on the highest-ambiguity clusters first. We add a Markov decision process policy, in the style of the deadline-inference paper, only if greedy leaves measurable deadline misses on the table.

We will measure the central model's output in two forms. One is the label alone. The other is the label plus its whole-cell embedding returned to the site, which lets the site reassign boundary cells by nearest neighbor. This tests whether returning richer information helps propagation.

The main biological risk is continuous cell states. Intermediate states in epithelial-to-mesenchymal transition (Intermediate cell states in EMT) and hybrid stem-like states in breast cancer (Hybrid Stem Cell States) do not form tight clusters. Propagating one label across a gradient would erase exactly the structure biologists care about. The resampling-and-split loop is designed for this case. We will report accuracy separately for cells on cluster boundaries and for datasets with known continua, so that any failure is visible rather than averaged away.

Baselines

The naive references are the two endpoints. The "all local" baseline runs the adapted multilayer perceptron on every cell and sends nothing. Its reported accuracy on the Qi et al. CELLxGENE split is 81.4% (A Simple and Comprehensive Benchmark). The "all central" baseline sends every cell to the central model. On the same split, the tuned Transformer reaches 84.9%. For BMFM-RNA, the file reports only relative gains over scGPT (3.7 points zero-shot) and 89.2% on a multiple sclerosis task, so we will measure its absolute accuracy ourselves on our splits. Both endpoints will be rerun on identical preprocessed data, using the same trained model weights that our method calls, so that every difference comes from routing.

The strongest existing competitor is a per-cell confidence cascade. It adapts the probabilistic confidence offloading of Distributed Collaborative Inference System: any cell whose small-model confidence falls below a threshold goes to the central model. No result for this cascade on single-cell data was found on Lacuna. Its only reported numbers are for IMDB text: a 17% latency reduction over Tabi and over 90% accuracy. We will sweep its threshold to trace a full accuracy-versus-central-calls curve and give it the same tuning budget as our ambiguity threshold and $k$. Our method "beats" it if, at matched central GPU-seconds, it reaches higher accuracy on known types and higher recall of novel types. Equivalently, it beats it if it reaches the all-central accuracy with at least several-fold fewer central calls. A tie at matched budget would count against the proposal.

We also include a static-compression baseline: the per-cell cascade with only the top highly variable genes uploaded. This probes whether cutting gene count, rather than cell count, gives the savings. We ablate our own method in three ways. The first removes adaptive resampling, using a fixed $k$ with no split. The second removes the representative sampling, using random cells. The third removes clustering by grouping cells by small-model predicted label instead of by expression neighborhood. The third ablation isolates whether the gain comes from biological structure in expression space or merely from batching.

Why not just…?

Why not just send everything to the central model? It is the accuracy ceiling, and when there is no load, no deadline and no data restriction it simply wins. The case against it is cost. Central compute and upload scale linearly with cell count, and multi-institution data sharing is often blocked (Federated Self-Supervised Single-cell Clustering). Our experiments report what fraction of its accuracy we keep per unit of central compute and per raw cell exported. If that fraction is not high at small budgets, the proposal fails.

Why not just run the small model on-site? The reported gap to the large model is 3.5 points (81.4% versus 84.9%). Separately, benchmarks of standalone classifiers show that they mishandle novel cell types and closely related subtypes (Evaluation of single-cell classifiers). The held-out-type experiments below measure directly how much of that failure escalation repairs.

Why not just use a per-cell confidence cascade? This is the real threat, since it is simple and already works for text. Our bet is that it wastes central calls on redundant cells within a cluster. It may also stay confidently wrong on novel types that the small model maps to a known label with high confidence, and no cell-level threshold catches those. If cells within a cluster turn out to have largely independent errors, the per-cell cascade will match us at equal budget, and the matched-budget curves will show it. In that case the contribution shrinks to the novelty-detection signal, or disappears.

Why not just put the full foundation model on-site? For well-resourced sites with a GPU, this removes the problem entirely, and we say so. The proposal targets many small sites sharing one service, where per-site GPUs and per-site model maintenance are the constraint. We will report on-site CPU inference time for the 21.87M-parameter Transformer next to our pipeline so readers can judge where the crossover lies for their own setting.

Proposed Experiments

We will use the CELLxGENE split from Qi et al., the PBMC, Pancreas, Mix3 and Mix4 reference-test pairs from the classifier evaluation, and the PBMC and mouse bladder data used by FedSC. Each dataset is treated as a stream of samples, one donor or batch per task. A simulator sets site upload bandwidth, a central GPU pool with a queue, and Poisson-distributed sample arrivals at several load levels. Metrics are per-cell accuracy and macro-F1, the fraction of samples correctly annotated before their deadline, central GPU-seconds, and raw cells exported per sample. For novelty we report recall and precision of flagged populations.

Three checks decide the question. The first is the matched-budget accuracy curve against the per-cell cascade, with every parameter swept on both sides. The second holds out one cell type from both models' training data, following the classifier-evaluation protocol. It asks whether within-cluster disagreement flags the held-out cells better than per-cell entropy thresholds do, without increasing false "unassigned" calls on known subtypes. The third is a stratified report on boundary cells and on datasets with continuous states, which shows whether propagating labels across clusters erases intermediate populations.

A positive result on the first check with a clear failure on the third would narrow the claim to discrete tissues. A negative result on the first check ends the proposal as a method, whatever happens on the other two.