# CellMSA: Context Modeling for Single-Cell Representation Learning

*Suyuan Zhao, Minghao Liu, Yizhen Luo, Zaiqing Nie*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151414) · [OpenReview](https://openreview.net/forum?id=aqtv1iusCF) · [alphaXiv](https://www.alphaxiv.org/abs/2609.38908) · [Open on the map](../papers.html#p151414)

Category: [AI for Molecules, Materials & Genomics](../pcat/8.md) › [Single-Cell Multi-Omics Integration](../pgroup/316.md) · Type: new method · Keywords: single-cell transcriptomics, representation learning, context modeling, gene expression, batch effect, MSA-inspired

Areas: [AI for Science](../areas/ai-for-science.md) › Spatial Biology Modeling › Representation Learning

## Summary
CellMSA introduces an MSA-inspired context modeling framework that leverages cross-batch and cross-cell-type relationships to learn high-quality single-cell representations, outperforming existing methods on multiple benchmarks.

## Explained to a 5-year-old
Scientists look at tiny pieces of cells called genes to see what the cell is doing. The data is messy and has lots of differences, like when you mix up your drawings. The researchers built a new way to compare cells from different groups to find hidden patterns. By looking at how cells are similar and different, they can make better pictures of what each cell means. This helps doctors understand diseases and find new treatments faster.

## Explained to a 5-year-old, longer
Scientists study single cells by reading the instructions inside them, which are called genes. These instructions are written in a language that is very long and has many missing parts. Different cells can be from the same person but look a little different because of how they were measured. To understand each cell better, researchers wanted to look at other cells that are similar or from different groups. They imagined a method that works like how biologists line up DNA sequences to see patterns. This method picks nearby cells from different batches and related cell types as helpful context. It then creates special pairings of genes that show how they change together across cells. These gene pairings are used to teach a computer model to recognize the cell's state. The model is trained on a huge collection of human cell data containing millions of cells. After training, the model can tell apart different cell types more accurately than older methods. This helps scientists discover new cell types and understand how diseases affect cells. Ultimately, it may lead to better medical treatments personalized for each patient.

## For a technical reader
The paper addresses the challenge of learning compact representations from high-dimensional, sparse single-cell gene expression data that suffers from batch effects. It introduces a context-modeling scheme that retrieves related cells from different batches and cell types, computes gene-pair patterns across these contexts, and feeds these patterns into a pair-aware encoder. The model is pretrained on a massive human single-cell corpus of roughly 109 million cells, enabling it to capture fine-grained gene-gene dependencies. Empirical evaluation shows consistent improvements over existing baselines on several benchmark tasks without requiring additional labeled data. The approach can be integrated into existing pipelines as a drop-in replacement for cell-wise encoders, offering better representation quality for downstream analyses.

## Problem
Single-cell transcriptomics data is high-dimensional, sparse, and suffers from batch effects, making representation learning challenging. Existing models often treat cells independently or only within the same batch, missing valuable relational information across batches and cell types.

## Method
The approach retrieves relevant cells from different batches and biologically related cell types as context, summarizes cross-cell patterns into context-dependent gene-pair representations, and injects these into a pair-aware target-cell encoder for fine-grained representation learning. It is pretrained on a large-scale human single-cell corpus of approximately 109 million cells.

## Results
The approach consistently outperforms existing methods across multiple benchmarks.

## Contributions
It introduces an MSA-inspired inductive bias for transcriptomic modeling, enabling context-dependent gene-pair representations and leveraging cross-batch and cross-cell-type relationships. The work also provides a large-scale human single-cell corpus for pretraining and demonstrates superior performance on benchmark tasks.

## Research questions this paper is counted under

- [How can we learn single-cell representations that faithfully capture biological variation while removing batch effects and technical noise?](../q/341.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151414)
