CellMSA: Context Modeling for Single-Cell Representation Learning
Abstract
Single-cell transcriptomics enables profiling of cellular states at unprecedented resolution, but its high dimensionality, sparsity, and technical batch effects pose significant challenges for representation learning. Existing single-cell foundation models typically encode each cell independently or only model cells from the same batch for denoising, thereby underutilizing the rich relational information across batches and cell types to model gene expression patterns. We argue that single-cell models can benefit from more informative cell-context modeling. By comparing consistency and variation across cells, models can capture fine-grained gene-gene dependencies associated with cell states, which are essential for learning high-quality representations. Inspired by the use of multiple sequence alignment (MSA) context in protein modeling, we propose CellMSA, a single-cell representation learning framework that introduces an MSA-inspired inductive bias into transcriptomic modeling. For each target cell, CellMSA retrieves relevant cells from different batches and biologically related cell types as context, and summarizes cross-cell patterns into a context-dependent gene-pair representation. This representation is then injected into a pair-aware target-cell encoder for fine-grained representation learning. We pretrain CellMSA on a large-scale human single-cell corpus of approximately 109 million cell observations, including 65.6 million primary observations. Experiments show that our framework consistently outperforms existing methods across multiple benchmarks. Code is available at the following repository: https://github.com/PharMolix/CellMSA.
Create a lesson
Metadata
- Categories
- q-bio.GN, cs.AI, cs.LG
- Comments
- Accepted by NeurIPS 2026, code released
Related papers
Harmonised benchmarking of foundation models for single-cell and spatial transcriptomics reveals context-dependent generalisation
Shared title terminologyq-bio.GNSally Chen, Roxana Zahedi, Lucy Chhuo et al.
Beyond Independent Genes: Learning Module-Inductive Representations for Single-Cell Gene Perturbation Prediction
Shared title terminologyq-bio.GNJiafa Ruan, Ruijie Quan, Liyang Xu et al.
CisTransCell: Single-Cell Perturbation Prediction via Gene Function, Regulatory Control, and Cellular Context
Shared title terminologyq-bio.GNWei Zhang, Xun Jiang, Yuesi Xi et al.
Synaptic Dendritic Neuron Model (scDNM) for Cell Type Classification in Single-Cell RNA Sequencing Data
Shared title terminologyq-bio.GNDeniz Karapınar, Gaurav Choudhary, Melih Agraz
Benchmarking Recent Single-Cell Synthetic Data Generation Methods on the OneK1K Dataset
Shared title terminologyq-bio.GNBuse Giledereli, Basar Temiz, Amirreza Sattarzadeh Khanehbargh
Rethinking One Gene, One Token: Transcriptome-Aware Tokenization for Single-Cell Foundation Models
Shared title terminologyq-bio.GNJiaqi Xiong, Jiaying Li, Yu Zheng et al.