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.
Glossary
Label Transfer

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Label transfer relies on a robust single-cell analysis ecosystem. Master these core concepts to understand the preprocessing, integration, and annotation workflows that enable accurate query-to-reference mapping.
Query-to-Reference Mapping
The core computational framework that enables label transfer. A query dataset is projected onto a pre-built reference atlas using dimensionality reduction and nearest-neighbor search. The algorithm identifies the most transcriptionally similar reference cells for each query cell, then propagates annotations based on a majority vote or similarity-weighted consensus. This avoids computationally expensive full dataset reintegration and allows rapid, scalable annotation of new single-cell experiments against curated, gold-standard references like the Human Cell Atlas.
Data Integration
The computational alignment of multiple single-cell datasets into a shared latent space, correcting for batch effects while preserving genuine biological variation. Methods like Harmony and scVI are critical precursors to label transfer, ensuring that cells of the same type from different experiments occupy overlapping positions in the embedding. Without proper integration, batch-specific technical noise can dominate the transcriptional similarity search, leading to systematic misannotation when labels are transferred across studies.
Cell Type Annotation
The process of assigning biological identities to single-cell clusters by comparing their gene expression signatures to known marker genes or reference databases. Label transfer automates this traditionally manual curation step. Key approaches include:
- Marker-based: Manual inspection of canonical gene expression
- Correlation-based: Comparing cluster averages to bulk reference profiles
- Classifier-based: Training supervised models on labeled reference data
- Reference mapping: Projecting query cells onto annotated atlases for direct label propagation
Single-Cell Foundation Models
Large-scale pretrained transformer models like Geneformer and scGPT that learn universal cell representations from massive single-cell corpora. These models are revolutionizing label transfer by providing context-aware embeddings that capture nuanced cell states beyond simple marker gene matching. A foundation model can perform zero-shot annotation by attending to gene-gene interaction networks learned during self-supervised pretraining, enabling accurate label transfer even for rare or transitional cell populations that lack clear marker signatures.
Batch Effect Correction
A preprocessing step that removes technical variation introduced by different experimental batches, sequencing platforms, or laboratory protocols. Effective batch correction is a prerequisite for successful label transfer, as uncorrected technical artifacts can dominate the similarity search and cause systematic misclassification. Methods range from linear approaches like ComBat to nonlinear techniques like Mutual Nearest Neighbors (MNN) and deep generative models. The goal is to align cells of the same biological type across batches while preserving genuine condition-specific differences.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us