uce.UCE
UCE embeds single cells from any species into one shared space using protein embeddings of their expressed genes.
Molecules, proteins and genomics · 178 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 104.1M
- Operations
- 178
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2023, bioRxiv
- Cited by
- 164 (as of 22 October 2026)
- Authors
- Yanay Rosen, Yusuf Roohani, Ayush Agrawal and others
- Source
- GitHub: snap-stanford/UCE
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m10729
- Graph hash
- 14aadd4e2e30a7e6f72baf09dcf81940f99980770b6c199eda0f5e28d8c52013
- Skeleton hash
- c9137c0a244b24ea9a0dbf455a962ef5da9bf6fd5155e1f7eb0e4c29cdd4033e
- Architecture hash
- 4a0dcd6bd503e6751788dad826a5db1312f3f9ec3976c85fb229639ade947b3c
- Diagram SHA-256
- 5e25aeb12ecc3b5a40601a2ab59977d33ac6d8d8b0be7b6e75c4e478626a9379
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
UCE, the Universal Cell Embedding, is a foundation model for cell biology that maps single cells into one shared representation space. It was trained on a corpus of cell atlas data from human and other species in a completely self-supervised way, without any data annotations. It matters because new cells can be mapped into this space with no additional data labeling, model training or fine-tuning.
UCE takes a weighted and normalized sample, with replacement, of a cell's expressed genes. Each sampled gene is represented by the ESM2 protein language model embedding of the protein it codes for. Genes from the same chromosome are grouped between special tokens and sorted by genomic location, and a CLS token marks the whole cell. This sequence passes through a transformer, and the cell's embedding is the CLS token embedding at the final layer. During training a random subset of 20% of the expressed genes is masked before sampling. A fully connected network then predicts whether each query gene was expressed.
The paper reports that UCE is a 33 layer model with over 650 million parameters. This model uses the 4-layer configuration that the released code loads by default. On the Tabula Sapiens v2 dataset, the paper reports UCE ahead of the next best method Geneformer by 9.0% on overall score, as results at the time.
Key idea. UCE represents each gene by a protein language model embedding of its protein product, so one self-supervised transformer can embed cells from any species.
- single-cell rna-seq
- cell embedding
- foundation model
- self-supervised
- protein embeddings
- cross-species
- cell atlas
- zero-shot
- transformer
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Rosen_2023, title={Universal Cell Embeddings: A Foundation Model for Cell Biology}, url={http://dx.doi.org/10.1101/2023.11.28.568918}, DOI={10.1101/2023.11.28.568918}, publisher={openRxiv}, author={Rosen, Yanay and Roohani, Yusuf and Agrawal, Ayush and Samotorcan, Leon and Quake, Stephen R. and Leskovec, Jure}, year={2023}, month=Nov }