bio.rodeo
ModelsOrganizationsProvidersLeaderboardAboutSign in
bio.rodeo

The authoritative source for evaluating biological foundation models. No hype, just honest analysis.

Categories
  • DNA & Gene
  • RNA
  • Protein
  • Small molecule
  • Single-cell
  • Spatial omics
  • Pathology
  • Imaging
  • Metabolomics
  • Biosignals
  • Language model
bio.rodeoModelsOrganizationsProvidersLeaderboardAboutFAQSubmit a modelContact
© 2026 Pulsatance. All rights reserved. ~
Built by Pulsatance
models / single-cell / ba-scvi
Single-cell
Phenomic AIReleased March 2025

BA-scVI

Single-cell RNA integration model using adversarial batch training to embed and label cells from a new study without supplying a batch ID.

The short version

  • —Embeds a user h5ad file and predicts cell types against a 46-study human reference atlas
  • —Takes no batch ID at inference, so an unseen study maps straight into the shared space
  • —Discriminators next to the latent layer strip batch signal from both encoder and decoder
  • —Keeps author subtype resolution, recovering merged breast subtypes at 96% KNN accuracy
93Openness1Citations
0HF downloads
5GitHub stars

Where to run it

No providers recorded yet. Browse all providers

Pooling single-cell RNA studies into one atlas runs into batch effects: the same cell type measured on 10x, Microwell-seq, or Seq-Well lands in different regions of expression space, and methods that scrub those differences often scrub biological resolution along with them. Judging which method works has been its own problem, because integration is typically scored on a handful of datasets with a battery of loosely related metrics.

BA-scVI (Batch Adversarial single-cell Variational Inference) comes from Phenomic AI and was presented at the LMRL workshop at ICLR 2025 alongside two things built to answer that scoring problem: the K-Neighbors Intersection (KNI) score, which folds cross-study cell-type label accuracy and a batch-mixing penalty into a single number, and two curated human benchmarks — scMARK (11 studies) and scREF (46 studies) — with author labels standardized across them. BA-scVI is the model that came out of optimizing against that score.

Architecturally it is a variant of scVI with two changes. A discriminator predicts batch identity from the layers adjacent to the central embedding rather than from the embedding itself, which the authors found stabilizes adversarial training, and the batch-ID concatenation that standard scVI feeds its encoder is removed entirely. That second change is the consequential one: without a batch ID at inference, a study the model has never seen can be projected into the existing space directly, which is what reference-based mapping requires. The quickest path to a result is the phenomic-ai PyPI package, whose pai embed command and PaiEmbeddings API take an .h5ad file and one of 32 tissue/organ choices and return cell embeddings and cell-type predictions from Phenomic's hosted scREF service. Little is held back behind that service: the bascvi repository carries the model definition, a PyTorch Lightning training loop, the h5ad_to_zarr.py and shuffle_zarrs.py preprocessing chain, prediction scripts, and the KNI scoring code, and the trained human checkpoint, the scREF corpus, and scMARK are all published separately.

#Key Features

  • Inference without a batch ID: Dropping batch-ID conditioning from the encoder lets a new dataset be embedded with no retraining and no batch covariate, unlike standard scVI.
  • Adversarial batch penalty on both halves: Discriminators act on encoder outputs and decoder inputs, suppressing batch signal on the way in and on the way out rather than only at the bottleneck.
  • Turnkey annotation workflow: pip install phenomic-ai gives a one-command CLI taking an .h5ad file and a tissue label and returning embeddings plus predicted cell types.
  • Preserved cell-type granularity: Original author subtype labels remain recoverable from the aligned space, addressing the atlas-building community's standing worry that integration flattens fine cell-type structure.

#Technical Details

The inference network keeps scVI's zero-inflated negative binomial likelihood and its KL terms for the latent and library encoders, adding a term that maximizes discriminator loss; the two networks are updated in alternating steps. The reported configuration uses an adversarial weight of 1000, Adam with learning rates of 5e-5 for the inference network and 1e-2 for the discriminator, batch size 64, and up to 100 epochs, embedding into 10 dimensions. scREF spans 46 human studies, 2,359 samples, and 36 tissues across droplet and plate-based chemistries, standardized to 60 cell-type labels and study-stratified down to 1.21 million cells.

On scREF, BA-scVI reaches a KNI of 0.632 against 0.578 for a tuned four-layer scVI, 0.488 for Harmony, and 0.483 for PCA; on scMARK it reaches 0.711 against 0.646 for Harmony and 0.643 for four-layer scVI. Transformer-based single-cell models fine-tuned per their own protocols scored lower on scREF — 0.399 for Geneformer and 0.468 for scGPT — and substituting BA-scVI for the recommended fine-tuning head improved those alignments without matching the untransformed result. Two-fold cross-validated KNN accuracy on held-out cells reached 83% on a large breast study, 96% once numbered subtypes are merged, 99% on a brain study, and 83% on a blood study.

#Applications

The practical use is annotating and integrating a freshly generated dataset against an organism-scale human reference without curating a training run: a lab points pai embed at its .h5ad, names the tissue, and gets back a 10-dimensional embedding plus predicted cell types consistent with 46 published studies. The same embedding places new cells alongside existing ones, supporting cross-study comparison, and the released checkpoint and training code allow the model to be run locally or retrained on other corpora.

#Impact

BA-scVI's contribution is less a new architecture than a demonstration that a well-tuned adversarial VAE still beats transformer-based single-cell foundation models at organism-scale alignment, measured by a metric that refuses to reward batch mixing and label accuracy separately. The accompanying scREF atlas and KNI score are arguably the more durable artifacts, giving the field a 46-study yardstick where previous comparisons used a handful of datasets. The caveats are real: this is a workshop paper rather than a peer-reviewed article, the benchmarks and released checkpoint are human-only, the KNI score is proposed only for unsupervised alignment because a supervised model could game it, and the CLI path depends on a company-operated backend. Licensing is the loose end: scREF is MIT on HuggingFace and scMARK is CC BY 4.0 on Zenodo, but the bascvi repository ships no LICENSE file, so its MIT grant survives only as a line of README prose — the bundled pai client is the one component with the license text attached.

At a glance

Released
March 2025
Category
Single-cell
Organization
Phenomic AI

Related models

  • scVI (CELLxGENE Census)

    Chan Zuckerberg Initiative

  • scContrast

    Brown University

  • SCimilarity

    Genentech

  • Pan-human Azimuth

    New York Genome Center / Critical Path Institute / Washington University in St. Louis / EMBL-EBI / Indiana University / Wellcome Sanger Institute / New York University

  • scHDeepInsight

    University of Tokyo / RIKEN Center for Integrative Medical Sciences / Griffith University / Korea University

Links

GitHub RepositoryResearch PaperHuggingFace ModelDatasetDataset

Tags

batch_correctioncell_type_annotationdomain_adversarial_networkembeddingsvariational_autoencoder

Something wrong?

Much of this page is generated or calculated automatically. Flag anything that looks off and we will re-run it.