TL;DR
CellScribe is a generative framework that unifies two usually separate tasks in single-cell biology—identifying a cell's lineage (cell type) and quantifying its active biological programs (cell state)—within a single large language model (LLM). By aligning the model's outputs with biological ontologies via reinforcement learning and teaching it to read multiple labelled cells in one prompt, CellScribe can even identify brand-new cell types it was never trained on.
What Problem Does This Paper Address?
Single-cell RNA sequencing (scRNA-seq) lets researchers profile individual cells inside a tumour, revealing two complementary pieces of information:
- Cell identity (lineage): What kind of cell is this (e.g., a CD8 T cell)? This is a single-label, hierarchical problem governed by the cell ontology, where predicting a slightly broader parent lineage is still partially correct.
- Cell state: What is the cell doing right now (e.g., proliferating, hypoxic, or stressed)? Unlike identity, state is multi-label and continuous—a single cell can be cycling and stressed at the same time.
Currently, computational tools treat these two axes separately. Supervised classifiers can annotate cell types at scale, but their fixed output heads cannot predict types outside their training vocabulary. Meanwhile, state-inference tools either score gene signatures independently (struggling when programs share genes) or fit cohorts retrospectively rather than predicting the state of a new cell. CellScribe bridges both tasks in one portable, generative interface.
Methods
CellScribe pairs a frozen 100M-parameter single-cell encoder (scFoundation) with a frozen Qwen2.5-0.5B-Instruct LLM decoder. Rather than inserting the cell embedding as a special token in the prompt, the authors use AdaLN-Zero (Adaptive Layer Normalization) adapters to modulate the residual stream (scale and shift) inside every decoder block. Only the cell-to-LLM projection and AdaLN layers are trained.
The model is trained in three stages:
- Supervised Fine-Tuning (SFT): Trained jointly on 20M cells to answer either typing prompts or state prompts (emitting up to 5 active meta-programs with magnitudes and a dominant hallmark).
- Biological Reward Alignment (GRPO): Using Group Relative Policy Optimisation on 600k cells, the model generates 12 completions per prompt and is rewarded for biological accuracy rather than token-level matching—specifically, shortest-path distance on the cell ontology for typing, and program-set agreement, score error, and hallmark accuracy for state.
- Span-Conditioned In-Context Learning (ICL): To handle unseen cell types, the authors extend AdaLN so that each token position in a prompt is modulated by the specific cell embedding it describes. Post-trained on 6M cells, the model learns to compare a query cell against labelled demonstration cells in the same prompt. Crucially, during this stage, real type names are replaced with surrogate labels (ontology-shaped nonce phrases) so the model cannot cheat by memorising familiar names.
Datasets
- CELLxGENE Census (v2, 2025-01-30 snapshot): Provides 62.6M cells across 700+ cell ontology types for cell typing. Study-holdout evaluation covers 4.44M cells and 309 types, with 50 additional fine-grained types held out for unseen-type ICL testing, and 1.14M cells from Tabula Sapiens used for focused comparison.
- Curated Cancer Cell Atlas (3CA): Provides 4.07M cells from 99 cancer studies, with activity scores for 41 recurrent meta-programs grouped into 11 hallmarks. Evaluated on 257k malignant cells from held-out studies.
Key Insights and Ideas
- AdaLN beats token injection: Modulating the LLM's residual stream via AdaLN-Zero outperforms prepending cell embeddings as prompt tokens or using a Perceiver resampler—especially for cell state, where alternative conditioning drops top-1 and hallmark accuracy by 50–80%.
- Biological rewards shape error structure: GRPO alignment doesn't just boost exact hits; it pulls remaining typing mistakes closer to the true lineage along the cell ontology and sharpens meta-program ranking.
- Surrogate labels prevent shortcut learning: If trained on real cell-type names during ICL post-training, the model ignores the demonstration cells and predicts from the query embedding alone. Replacing names with nonce phrases forces it to learn a genuine cell-to-label binding mechanism that transfers to unseen types.
Key Results
CellScribe evaluation across typing, state, alignment, and in-context learning
- Cell typing (4.44M cells, 309 types): CellScribe achieves 0.223 macro-$F_1$ and 0.484 weighted-$F_1$, outperforming a supervised scFoundation probe (0.194 / 0.366) as well as language/retrieval baselines like Cell2Sentence (0.083 macro-$F_1$) and CellWhisperer (0.053 macro-$F_1$). On Tabula Sapiens (full label space), it reaches 0.441 weighted-$F_1$ versus 0.072 for CellWhisperer.
- Cell state (257k malignant cells, 41 meta-programs): CellScribe reaches 0.344 hallmark accuracy, 0.298 program-set $F_1$, and 0.330 NDCG@5, beating the scFoundation probe (0.227, 0.205, 0.233).
- GRPO alignment: Improves hierarchical $F_1$ by +1.0 to +1.6 points, top-1 program accuracy by +1.7 points, hallmark accuracy by +2.1 points, and NDCG@5 by +5.7 points over SFT alone.
- Unseen-type ICL (50 held-out types): In 3-way, 1-shot episodes, ICL post-training raises exact hierarchical $F_1$ from 0.023 to 0.435 (and 0.695 across the full lineage).
Limitations and Future Work
The authors note that frozen scFoundation embeddings already carry strong discriminative signal for cell typing, whereas cell state is a harder structured prediction problem that benefits more from the LLM's generative capacity. Promising future directions include:
- Perturbation prediction: Conditioning jointly on a cell and a drug or genetic intervention to predict resulting state transitions.
- Interpretability: Understanding how AdaLN's scale and shift modulations act across decoder layers and decoding steps.
- Clinical integration: Coupling bulk RNA-seq deconvolution to CellScribe so that cell-type profiles recovered from bulk samples can be typed and scored against clinical endpoints.
Summary updated