TL;DR
Foundation models work wonders in vision and language because pixels and words form consistent input spaces, whereas clinical flow cytometry is fractured: every lab measures a different subset of cellular proteins ("markers") and introduces noisy batch effects. By pretraining a transformer across nearly 90,000 samples spanning 525 distinct marker combinations, the authors show that a single frozen model can extract universal, clinically useful representations—even on completely unseen marker combinations—matching or beating bespoke models trained from scratch on target datasets.
What Problem Does This Paper Address?
Flow cytometry is the workhorse of clinical immunology. It profiles individual cells by tagging surface or intracellular proteins ("markers") with fluorescent antibodies. Individual clinical trials usually only collect a few dozen or hundred patient samples, making them prime candidates for transfer learning.
However, pooling public data to build a "cytometry foundation model" hits a double wall of heterogeneity:
- Inconsistent feature spaces: Unlike single-cell RNA sequencing, which captures the whole genome, a flow cytometry experiment typically measures a bespoke "panel" of only 4 to 50 markers. Over 95% of known markers are structurally missing in any given sample.
- Batch effects: Even when two labs measure the exact same marker (like CD3), variations in instruments, reagents, and protocols shift the raw signals.
The authors ask a fundamental empirical question: if we pretrain a model on a massive, messy patchwork of studies, does it actually learn transferable immune biology, or does it just memorize dataset-specific quirks?
Methods
Building directly on an existing variable-panel transformer architecture (GPCT), the authors scale sample-level pretraining to unprecedented cross-study breadth.
- Handling missing features: Across a standardized vocabulary of 261 markers, each cell is represented by its expression values concatenated with a binary availability mask. Crucially, unmeasured markers are replaced with learnable mask embeddings before entering the encoder, teaching the model to distinguish "measured as zero" from "not measured at all."
- Sample-level attention: Rather than looking at single cells in isolation, an 8-layer transformer applies self-attention across cells within a sample, allowing it to capture population frequencies and inter-cell relationships.
- Multi-task self-supervision: During pretraining, random markers (or entire marker channels) are masked out. For every masked entry, the model predicts the mean and variance (via Gaussian negative log-likelihood) of three targets: raw marker expression, the cell's rank percentile within the sample, and local expression density.
- Strict frozen evaluation: What is new here is the rigorous evaluation framework. To prove the representations themselves are doing the heavy lifting without overfitting small clinical cohorts, the pretrained encoder's weights are frozen. Only a lightweight cross-attention classification head is trained on downstream tasks, pitted directly against "specialist" encoders pretrained from scratch on the target domain's unlabelled data.
Datasets
- Pretraining Corpus (New Benchmark Infrastructure): Curated from the public ImmPort repository, comprising 89,324 quality-filtered samples (~4.5 billion cells) across 112 human studies, 525 distinct panels, and 243 unique markers—the largest curated cross-study cytometry corpus by study count to date.
- Downstream Evaluation Suite: Five tasks across four external clinical datasets strictly disjoint from pretraining, categorized by panel overlap:
- Novel panels (panel-zero-shot): COVID severity (6 classes), COVID patient sex (binary, on the same cohort), and HVTN vaccine antigen stimulation (binary).
- Subset panel: B-cell neoplasm subtypes (9 classes; 2,251 samples).
- Exact panel match (Negative Control): HEU infant HIV exposure (binary), a dataset known to carry no discriminative signal, included to verify the pipeline doesn't hallucinate patterns.
Key Insights and Ideas
- Diversity trumps sheer volume and model size: Surprisingly, training on a random 10% subset of the corpus yields nearly identical downstream performance to using 100% of the data. Why? Because uniform random subsampling preserves almost all of the study and panel diversity (109 of 112 studies). Similarly, scaling the model parameters by $5\times$ lowers pretraining loss without improving downstream transfer.
- True co-expression biology, not lookup tables: When the authors mask out entire markers on unseen datasets, the frozen model accurately imputes core surface markers (like CD3 and CD4) from context alone, yet fails to predict intracellular cytokines (IFN-$\gamma$, TNF) from surface markers—matching the known biological reality that cytokine secretion operates independently of surface phenotype.
- Multi-axis representations: Using the exact same frozen embeddings on the COVID cohort, separate linear/attention heads can predict both disease severity and biological sex, showing the encoder preserves orthogonal biological signals simultaneously.
Key Results
- Cross-study transfer: The frozen encoder matches or beats in-distribution specialists on 4 of 5 tasks (and all three novel-panel tasks). Its biggest win is on HVTN, achieving 0.957 AUC vs. 0.916 for the specialist. On the massive B-neoplasm dataset, it trails the specialist by just 0.004 (0.873 vs. 0.877 AUC). Both score near chance (~0.48 AUC) on the HEU negative control.
- Graceful degradation under missing markers: On B-neoplasm, randomly dropping markers at test time (without retraining the classifier) causes smooth, gradual decay rather than catastrophic collapse: AUC drops gently from 0.87 (all 7 markers) to >0.83 (4 markers) and 0.73 (only 2 markers).
- Imputation & Geometry: Per-cell Pearson correlation ($r$) between imputed and true marker values exceeds 0.70 on 16 of 38 marker-dataset pairs (reaching $r = 0.91$ for CD3). UMAP projections show samples self-organizing by immune lineage (T-cell, B-cell, myeloid) rather than study batch.
Limitations and Future Work
- Modest ML scale & scope: At ~89k samples, the corpus is huge for cytometry clinical trials, though modest compared to vision/language datasets. Incorporating repositories like FlowRepository and testing outside clinical immunology remain open steps.
- Fixed pretraining recipe: Hyperparameters and the GPCT self-supervised objective were held fixed; better objectives might break through the observed scaling plateau.
- Classifier-level zero-shot: While the encoder handles unseen panels zero-shot, each downstream classifier head was trained and tested on a single consistent panel. Training a single classifier on Lab A's panel and deploying it directly onto Lab B's different panel—alongside multi-panel patient-level modeling—is the ultimate frontier for future work.
Summary updated