Inferensys

Glossary

Label Transfer

A supervised machine learning approach that projects cell-type annotations from a well-characterized reference atlas onto a new query dataset by identifying transcriptional similarities across studies.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
DEFINITION

What is Label Transfer?

Label transfer is a supervised machine learning technique that projects cell-type annotations from a curated reference atlas onto an unlabeled query dataset by identifying transcriptional similarities, enabling rapid and consistent cell identity classification across experiments.

Label transfer is a computational method that automates cell type annotation by mapping labels from a well-characterized reference dataset to a new query dataset. The process identifies mutual nearest neighbors or shared latent representations between the reference and query cells, transferring categorical identities without requiring manual marker gene inspection or de novo clustering for each new study.

Modern implementations, such as those in Seurat and scArches, use query-to-reference mapping within a reduced-dimensional space like PCA or a deep learning latent space. This approach corrects for batch effects during projection, ensuring that a T-cell in the query is matched to a T-cell in the reference atlas, even when the datasets were generated in different laboratories or with different protocols.

Reference-Guided Annotation

Key Characteristics of Label Transfer

Label transfer is a supervised machine learning paradigm that projects cell-type identities from a curated reference atlas onto an unlabeled query dataset by identifying mutual nearest neighbors in a shared latent space.

01

Reference Atlas Dependency

The quality of label transfer is entirely contingent on the reference atlas. The reference must be comprehensive, containing all cell types expected in the query, and meticulously annotated. A reference missing a rare population will force the algorithm to incorrectly map those query cells to the closest available label, a phenomenon known as classification by exclusion. High-quality references, like the Human Cell Atlas, provide standardized ontologies that ensure consistent nomenclature across studies.

02

Mutual Nearest Neighbor Anchoring

The core algorithmic mechanism relies on identifying anchors—pairs of cells from the reference and query that are mutual nearest neighbors in a shared low-dimensional space. This reciprocity filter is critical for rejecting spurious matches. The process typically involves:

  • Canonical Correlation Analysis (CCA) to align datasets in a correlated subspace.
  • L2-normalization of embeddings to mitigate sequencing depth artifacts.
  • A shared nearest neighbor (SNN) graph to score anchor consistency before propagating labels.
03

Zero-Shot Classification Capability

Unlike traditional classifiers that require retraining for every new dataset, label transfer operates in a zero-shot manner. The reference model, often a pre-trained foundation model like Geneformer or scGPT, generates contextualized embeddings for the query cells without any fine-tuning. The query cells are projected into the reference's latent space, and labels are assigned based on proximity to annotated reference neighborhoods, enabling instant annotation of millions of cells.

04

Uncertainty Quantification

Modern label transfer implementations provide a prediction score for each transferred label, quantifying the confidence of the mapping. This score is typically derived from the proportion of nearest reference neighbors sharing the majority label. Low-confidence mappings often indicate:

  • Novel cell states absent from the reference.
  • Doublets or low-quality cells.
  • Intermediary differentiation states that sit between discrete reference labels. Filtering by a confidence threshold prevents the propagation of erroneous annotations.
05

Batch-Aware Integration

Label transfer is inherently a data integration task. The query and reference often originate from different laboratories, protocols, and donors, introducing severe batch effects. Algorithms like Seurat v5 and scArches decouple biological variation from technical noise by learning a conditional latent space. This ensures that a T-cell from a 10x Genomics query correctly maps to a T-cell from a Smart-seq2 reference, rather than clustering by technology.

06

Hierarchical Ontology Mapping

Advanced label transfer respects the cell ontology tree. Instead of forcing a flat classification, algorithms can propagate labels at multiple resolutions—assigning a broad lineage label (e.g., Lymphoid) when fine-grained mapping (e.g., CD4+ Naive T-cell) is uncertain. This hierarchical approach, implemented in tools like CellTypist, provides a structured annotation that reflects the nested nature of cell identity and avoids high-confidence errors at the terminal leaf nodes.

LABEL TRANSFER

Frequently Asked Questions

Clear, technical answers to common questions about projecting cell-type annotations from reference atlases onto new single-cell datasets.

Label transfer is a supervised machine learning approach that projects cell-type annotations from a well-characterized reference atlas onto a new, unlabeled query dataset. The algorithm identifies transcriptional similarities between cells across studies, effectively transferring known biological identities without requiring manual re-annotation. This process leverages a shared latent space—often generated through data integration or query-to-reference mapping—to find the nearest neighbors or most probable matches for each query cell. Unlike unsupervised clustering, label transfer preserves the semantic knowledge embedded in curated references, enabling consistent nomenclature across experiments, labs, and platforms. The method is foundational for building automated annotation pipelines and harmonizing large-scale cell atlas projects like the Human Cell Atlas.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.