CellMSA: Context Modeling for Single-Cell Representation Learning
Organizations: Institute for AI Industry Research (AIR), Tsinghua University · Department of Computer Science and Technology, Tsinghua University · Tsinghua Institute of Multidisciplinary Biomedical Research (TIMBR), Tsinghua University · National Institute of Biological Sciences (NIBS) · PharMolix Inc.
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.
Figures & tables
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.731 | 0.594 | 0.574 | 1.000 | 0.621 | 0.028 | 0.366 | 0.780 | 0.000 | 0.359 | 0.725 | 0.578 |
| scVI | 0.741 | 0.592 | 0.562 | 1.000 | 0.649 | 0.046 | 0.363 | 0.822 | 0.190 | 0.414 | 0.724 | 0.600 |
| scGPT | 0.730 | 0.558 | 0.569 | 1.000 | 0.670 | 0.033 | 0.346 | 0.789 | 0.128 | 0.393 | 0.714 | 0.586 |
| Geneformer | 0.709 | 0.539 | 0.531 | 0.999 | 0.751 | 0.035 | 0.344 | 0.739 | 0.222 | 0.418 | 0.694 | 0.584 |
| STATE-SE | 0.730 | 0.553 | 0.530 | 1.000 | 0.878 | 0.010 | 0.315 | 0.503 | 0.417 | 0.425 | 0.703 | 0.592 |
| Cell type annotation | PT cell state classification | |||||
| Model | Accuracy | Macro F1 | Weighted F1 | Accuracy | Macro F1 | Weighted F1 |
| scVI | ||||||
| scGPT | ||||||
| Geneformer | ||||||
| STATE-SE | ||||||
| Stack | ||||||
| Model | Pearson | PRAUC | Spearman-FC | DE Overlap |
| Expression + STATE-ST | 0.398 | 0.276 | 0.404 | 0.139 |
| STATE-SE + STATE-ST | 0.353 | 0.287 | 0.365 | 0.180 |
| Stack + STATE-ST | 0.358 | 0.293 | 0.372 | 0.148 |
| CellMSA + STATE-ST | 0.433 | 0.334 | 0.431 | 0.215 |
Appendix figures & tables38 assets
Supplementary material from the paper’s appendix.
Appendix
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.784 | 0.735 | 0.647 | 1.000 | 0.661 | 0.038 | 0.212 | 0.789 | 0.000 | 0.340 | 0.791 | 0.611 |
| scVI | 0.812 | 0.748 | 0.601 | 1.000 | 0.702 | 0.097 | 0.237 | 0.866 | 0.429 | 0.466 | 0.790 | 0.661 |
| scGPT | 0.744 | 0.539 | 0.599 | 1.000 | 0.711 | 0.045 | 0.195 | 0.817 | 0.298 | 0.413 | 0.720 | 0.598 |
| Geneformer | 0.744 | 0.602 | 0.566 | 1.000 | 0.770 | 0.031 | 0.217 | 0.748 | 0.425 | 0.438 | 0.728 | 0.612 |
| STATE-SE | 0.698 | 0.432 | 0.582 | 1.000 | 0.884 | 0.003 | 0.210 | 0.438 | 0.457 | 0.399 | 0.678 | 0.566 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.714 | 0.485 | 0.627 | 1.000 | 0.614 | 0.021 | 0.332 | 0.808 | 0.000 | 0.355 | 0.706 | 0.566 |
| scVI | 0.745 | 0.507 | 0.598 | 1.000 | 0.667 | 0.036 | 0.321 | 0.848 | 0.285 | 0.431 | 0.713 | 0.600 |
| scGPT | 0.721 | 0.478 | 0.630 | 1.000 | 0.670 | 0.029 | 0.277 | 0.834 | 0.166 | 0.395 | 0.707 | 0.582 |
| Geneformer | 0.724 | 0.633 | 0.581 | 1.000 | 0.753 | 0.032 | 0.255 | 0.713 | 0.303 | 0.411 | 0.734 | 0.605 |
| STATE-SE | 0.741 | 0.541 | 0.544 | 1.000 | 0.858 | 0.000 | 0.230 | 0.360 | 0.502 | 0.390 | 0.707 | 0.580 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.659 | 0.611 | 0.510 | 0.999 | 0.602 | 0.027 | 0.231 | 0.642 | 0.000 | 0.300 | 0.695 | 0.537 |
| scVI | 0.714 | 0.556 | 0.535 | 0.999 | 0.604 | 0.042 | 0.237 | 0.766 | 0.352 | 0.400 | 0.701 | 0.581 |
| scGPT | 0.679 | 0.487 | 0.525 | 0.998 | 0.637 | 0.025 | 0.279 | 0.685 | 0.176 | 0.360 | 0.672 | 0.547 |
| Geneformer | 0.636 | 0.585 | 0.499 | 0.998 | 0.709 | 0.039 | 0.217 | 0.582 | 0.231 | 0.356 | 0.680 | 0.550 |
| STATE-SE | 0.653 | 0.597 | 0.515 | 0.999 | 0.860 | 0.014 | 0.228 | 0.381 | 0.530 | 0.403 | 0.691 | 0.576 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.760 | 0.717 | 0.546 | 1.000 | 0.638 | 0.000 | 0.802 | 0.858 | 0.000 | 0.460 | 0.756 | 0.637 |
| scVI | 0.687 | 0.685 | 0.592 | 1.000 | 0.613 | 0.000 | 0.823 | 0.854 | 0.018 | 0.461 | 0.741 | 0.629 |
| scGPT | 0.790 | 0.818 | 0.587 | 1.000 | 0.718 | 0.000 | 0.789 | 0.829 | 0.343 | 0.536 | 0.799 | 0.694 |
| Geneformer | 0.790 | 0.665 | 0.538 | 1.000 | 0.829 | 0.000 | 0.809 | 0.845 | 0.596 | 0.616 | 0.748 | 0.695 |
| STATE-SE | 0.853 | 0.823 | 0.542 | 1.000 | 0.877 | 0.000 | 0.775 | 0.592 | 0.604 | 0.570 | 0.804 | 0.711 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.799 | 0.577 | 0.562 | 1.000 | 0.643 | 0.014 | 0.489 | 0.703 | 0.000 | 0.370 | 0.735 | 0.589 |
| scVI | 0.823 | 0.726 | 0.555 | 1.000 | 0.662 | 0.024 | 0.426 | 0.752 | 0.382 | 0.449 | 0.776 | 0.645 |
| scGPT | 0.795 | 0.523 | 0.565 | 1.000 | 0.652 | 0.012 | 0.421 | 0.713 | 0.000 | 0.360 | 0.721 | 0.576 |
| Geneformer | 0.810 | 0.653 | 0.544 | 1.000 | 0.732 | 0.010 | 0.419 | 0.699 | 0.000 | 0.372 | 0.752 | 0.600 |
| STATE-SE | 0.795 | 0.568 | 0.519 | 1.000 | 0.882 | 0.006 | 0.366 | 0.504 | 0.279 | 0.408 | 0.721 | 0.595 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.822 | 0.800 | 0.583 | 1.000 | 0.696 | 0.022 | 0.442 | 0.830 | 0.000 | 0.398 | 0.801 | 0.640 |
| scVI | 0.803 | 0.756 | 0.535 | 1.000 | 0.727 | 0.033 | 0.417 | 0.850 | 0.223 | 0.450 | 0.774 | 0.644 |
| scGPT | 0.823 | 0.800 | 0.566 | 1.000 | 0.736 | 0.035 | 0.390 | 0.832 | 0.135 | 0.426 | 0.797 | 0.649 |
| Geneformer | 0.778 | 0.700 | 0.527 | 1.000 | 0.811 | 0.026 | 0.446 | 0.779 | 0.061 | 0.425 | 0.751 | 0.621 |
| STATE-SE | 0.778 | 0.650 | 0.520 | 1.000 | 0.911 | 0.002 | 0.321 | 0.519 | 0.318 | 0.414 | 0.737 | 0.608 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.738 | 0.716 | 0.591 | 1.000 | 0.617 | 0.031 | 0.562 | 0.840 | 0.000 | 0.410 | 0.761 | 0.621 |
| scVI | 0.698 | 0.517 | 0.563 | 1.000 | 0.632 | 0.019 | 0.541 | 0.840 | 0.474 | 0.501 | 0.695 | 0.617 |
| scGPT | 0.733 | 0.648 | 0.563 | 1.000 | 0.666 | 0.046 | 0.553 | 0.862 | 0.311 | 0.488 | 0.736 | 0.637 |
| Geneformer | 0.726 | 0.656 | 0.538 | 1.000 | 0.733 | 0.036 | 0.541 | 0.816 | 0.474 | 0.520 | 0.730 | 0.646 |
| STATE-SE | 0.753 | 0.710 | 0.529 | 1.000 | 0.853 | 0.000 | 0.554 | 0.537 | 0.516 | 0.492 | 0.748 | 0.646 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.731 | 0.470 | 0.522 | 0.999 | 0.575 | 0.015 | 0.258 | 0.784 | 0.000 | 0.326 | 0.680 | 0.539 |
| scVI | 0.739 | 0.511 | 0.530 | 0.999 | 0.615 | 0.022 | 0.293 | 0.835 | 0.204 | 0.394 | 0.695 | 0.574 |
| scGPT | 0.750 | 0.506 | 0.535 | 0.999 | 0.629 | 0.018 | 0.260 | 0.771 | 0.305 | 0.396 | 0.698 | 0.577 |
| Geneformer | 0.732 | 0.515 | 0.509 | 0.998 | 0.750 | 0.032 | 0.254 | 0.747 | 0.412 | 0.439 | 0.689 | 0.589 |
| STATE-SE | 0.769 | 0.631 | 0.519 | 0.999 | 0.890 | 0.009 | 0.247 | 0.511 | 0.548 | 0.441 | 0.730 | 0.614 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.776 | 0.598 | 0.614 | 1.000 | 0.584 | 0.007 | 0.271 | 0.765 | 0.000 | 0.325 | 0.747 | 0.578 |
| scVI | 0.747 | 0.469 | 0.599 | 1.000 | 0.635 | 0.019 | 0.275 | 0.786 | 0.236 | 0.390 | 0.704 | 0.578 |
| scGPT | 0.759 | 0.591 | 0.603 | 1.000 | 0.582 | 0.003 | 0.233 | 0.767 | 0.115 | 0.340 | 0.738 | 0.579 |
| Geneformer | 0.711 | 0.491 | 0.564 | 1.000 | 0.685 | 0.002 | 0.208 | 0.727 | 0.355 | 0.395 | 0.691 | 0.573 |
| STATE-SE | 0.733 | 0.597 | 0.557 | 1.000 | 0.849 | 0.000 | 0.208 | 0.486 | 0.435 | 0.396 | 0.721 | 0.591 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.758 | 0.584 | 0.595 | 1.000 | 0.643 | 0.013 | 0.167 | 0.784 | 0.000 | 0.321 | 0.734 | 0.569 |
| scVI | 0.813 | 0.703 | 0.597 | 1.000 | 0.691 | 0.037 | 0.235 | 0.845 | 0.000 | 0.361 | 0.778 | 0.612 |
| scGPT | 0.760 | 0.574 | 0.579 | 1.000 | 0.700 | 0.015 | 0.148 | 0.807 | 0.000 | 0.334 | 0.728 | 0.571 |
| Geneformer | 0.735 | 0.512 | 0.539 | 1.000 | 0.748 | 0.021 | 0.169 | 0.748 | 0.268 | 0.391 | 0.697 | 0.574 |
| STATE-SE | 0.736 | 0.451 | 0.539 | 1.000 | 0.889 | 0.002 | 0.192 | 0.419 | 0.354 | 0.371 | 0.681 | 0.557 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.556 | 0.406 | 0.585 | 0.999 | 0.650 | 0.060 | 0.267 | 0.641 | 0.000 | 0.323 | 0.637 | 0.511 |
| scVI | 0.638 | 0.507 | 0.541 | 0.999 | 0.692 | 0.089 | 0.227 | 0.690 | 0.000 | 0.339 | 0.671 | 0.539 |
| scGPT | 0.586 | 0.426 | 0.581 | 0.999 | 0.699 | 0.070 | 0.311 | 0.682 | 0.000 | 0.352 | 0.648 | 0.530 |
| Geneformer | 0.564 | 0.349 | 0.528 | 0.999 | 0.775 | 0.088 | 0.265 | 0.637 | 0.000 | 0.353 | 0.610 | 0.507 |
| STATE-SE | 0.587 | 0.445 | 0.515 | 0.998 | 0.894 | 0.046 | 0.306 | 0.473 | 0.581 | 0.460 | 0.636 | 0.566 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.782 | 0.529 | 0.587 | 1.000 | 0.603 | 0.000 | 0.277 | 0.847 | 0.000 | 0.346 | 0.725 | 0.573 |
| scVI | 0.767 | 0.447 | 0.622 | 1.000 | 0.487 | 0.000 | 0.254 | 0.931 | 0.000 | 0.334 | 0.709 | 0.559 |
| scGPT | 0.751 | 0.421 | 0.568 | 1.000 | 0.642 | 0.000 | 0.267 | 0.835 | 0.032 | 0.355 | 0.685 | 0.553 |
| Geneformer | 0.704 | 0.335 | 0.528 | 1.000 | 0.769 | 0.000 | 0.235 | 0.759 | 0.475 | 0.448 | 0.642 | 0.564 |
| STATE-SE | 0.740 | 0.415 | 0.528 | 1.000 | 0.866 | 0.000 | 0.216 | 0.524 | 0.515 | 0.424 | 0.671 | 0.572 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.766 | 0.825 | 0.552 | 1.000 | 0.579 | 0.024 | 0.274 | 0.678 | 0.000 | 0.311 | 0.786 | 0.596 |
| scVI | 0.806 | 0.878 | 0.560 | 1.000 | 0.657 | 0.061 | 0.336 | 0.765 | 0.025 | 0.369 | 0.811 | 0.634 |
| scGPT | 0.729 | 0.574 | 0.561 | 1.000 | 0.622 | 0.029 | 0.283 | 0.712 | 0.000 | 0.329 | 0.716 | 0.561 |
| Geneformer | 0.712 | 0.615 | 0.525 | 1.000 | 0.698 | 0.035 | 0.316 | 0.663 | 0.000 | 0.342 | 0.713 | 0.565 |
| STATE-SE | 0.678 | 0.367 | 0.533 | 1.000 | 0.880 | 0.001 | 0.242 | 0.450 | 0.292 | 0.373 | 0.645 | 0.536 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.565 | 0.303 | 0.594 | 1.000 | 0.653 | 0.004 | 0.374 | 0.850 | 0.000 | 0.376 | 0.616 | 0.520 |
| scVI | 0.520 | 0.411 | 0.526 | 1.000 | 0.659 | 0.072 | 0.282 | 0.868 | 0.091 | 0.394 | 0.614 | 0.526 |
| scGPT | 0.588 | 0.318 | 0.613 | 1.000 | 0.702 | 0.008 | 0.307 | 0.860 | 0.000 | 0.375 | 0.630 | 0.528 |
| Geneformer | 0.542 | 0.288 | 0.555 | 1.000 | 0.776 | 0.010 | 0.290 | 0.779 | 0.000 | 0.371 | 0.596 | 0.506 |
| STATE-SE | 0.610 | 0.322 | 0.512 | 1.000 | 0.881 | 0.000 | 0.344 | 0.662 | 0.334 | 0.444 | 0.611 | 0.544 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.780 | 0.609 | 0.662 | 1.000 | 0.607 | 0.000 | 0.668 | 0.799 | 0.000 | 0.415 | 0.763 | 0.624 |
| scVI | 0.764 | 0.589 | 0.595 | 1.000 | 0.651 | 0.001 | 0.666 | 0.815 | 0.494 | 0.525 | 0.737 | 0.652 |
| scGPT | 0.768 | 0.564 | 0.610 | 1.000 | 0.704 | 0.002 | 0.670 | 0.767 | 0.477 | 0.524 | 0.736 | 0.651 |
| Geneformer | 0.766 | 0.555 | 0.554 | 1.000 | 0.802 | 0.001 | 0.652 | 0.753 | 0.588 | 0.559 | 0.719 | 0.655 |
| STATE-SE | 0.743 | 0.501 | 0.552 | 1.000 | 0.843 | 0.000 | 0.615 | 0.561 | 0.559 | 0.516 | 0.699 | 0.626 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.641 | 0.405 | 0.573 | 1.000 | 0.595 | 0.000 | 0.345 | 0.813 | 0.000 | 0.351 | 0.655 | 0.533 |
| scVI | 0.649 | 0.431 | 0.568 | 1.000 | 0.631 | 0.000 | 0.227 | 0.817 | 0.000 | 0.335 | 0.662 | 0.531 |
| scGPT | 0.649 | 0.408 | 0.575 | 1.000 | 0.668 | 0.000 | 0.332 | 0.808 | 0.000 | 0.361 | 0.658 | 0.539 |
| Geneformer | 0.626 | 0.401 | 0.527 | 1.000 | 0.726 | 0.000 | 0.284 | 0.788 | 0.000 | 0.360 | 0.639 | 0.527 |
| STATE-SE | 0.676 | 0.428 | 0.536 | 1.000 | 0.874 | 0.000 | 0.220 | 0.508 | 0.204 | 0.361 | 0.660 | 0.541 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.712 | 0.472 | 0.533 | 1.000 | 0.608 | 0.001 | 0.330 | 0.809 | 0.000 | 0.350 | 0.679 | 0.547 |
| scVI | 0.716 | 0.387 | 0.542 | 1.000 | 0.618 | 0.005 | 0.355 | 0.822 | 0.245 | 0.409 | 0.661 | 0.560 |
| scGPT | 0.701 | 0.442 | 0.543 | 1.000 | 0.656 | 0.003 | 0.339 | 0.781 | 0.094 | 0.374 | 0.671 | 0.553 |
| Geneformer | 0.706 | 0.519 | 0.507 | 1.000 | 0.741 | 0.002 | 0.327 | 0.770 | 0.276 | 0.423 | 0.683 | 0.579 |
| STATE-SE | 0.709 | 0.449 | 0.515 | 1.000 | 0.867 | 0.000 | 0.309 | 0.434 | 0.406 | 0.403 | 0.668 | 0.562 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.778 | 0.719 | 0.542 | 1.000 | 0.677 | 0.194 | 0.261 | 0.759 | 0.000 | 0.378 | 0.760 | 0.607 |
| scVI | 0.838 | 0.800 | 0.525 | 1.000 | 0.707 | 0.225 | 0.397 | 0.771 | 0.356 | 0.491 | 0.791 | 0.671 |
| scGPT | 0.783 | 0.720 | 0.551 | 1.000 | 0.697 | 0.171 | 0.242 | 0.759 | 0.024 | 0.379 | 0.763 | 0.610 |
| Geneformer | 0.757 | 0.719 | 0.509 | 1.000 | 0.753 | 0.187 | 0.243 | 0.661 | 0.000 | 0.369 | 0.746 | 0.595 |
| STATE-SE | 0.835 | 0.816 | 0.525 | 1.000 | 0.912 | 0.102 | 0.227 | 0.624 | 0.559 | 0.485 | 0.794 | 0.670 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.717 | 0.669 | 0.521 | 0.998 | 0.662 | 0.027 | 0.384 | 0.746 | 0.000 | 0.364 | 0.726 | 0.581 |
| scVI | 0.710 | 0.669 | 0.545 | 0.999 | 0.703 | 0.061 | 0.378 | 0.821 | 0.345 | 0.461 | 0.731 | 0.623 |
| scGPT | 0.659 | 0.532 | 0.526 | 0.997 | 0.723 | 0.084 | 0.334 | 0.773 | 0.317 | 0.446 | 0.679 | 0.586 |
| Geneformer | 0.676 | 0.552 | 0.510 | 0.998 | 0.756 | 0.049 | 0.328 | 0.715 | 0.526 | 0.475 | 0.684 | 0.600 |
| STATE-SE | 0.693 | 0.498 | 0.514 | 1.000 | 0.885 | 0.001 | 0.304 | 0.477 | 0.442 | 0.422 | 0.676 | 0.574 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.716 | 0.617 | 0.591 | 1.000 | 0.656 | 0.111 | 0.189 | 0.734 | 0.000 | 0.338 | 0.731 | 0.574 |
| scVI | 0.793 | 0.716 | 0.572 | 1.000 | 0.709 | 0.122 | 0.188 | 0.826 | 0.000 | 0.369 | 0.770 | 0.610 |
| scGPT | 0.742 | 0.622 | 0.592 | 1.000 | 0.730 | 0.136 | 0.150 | 0.788 | 0.000 | 0.361 | 0.739 | 0.588 |
| Geneformer | 0.704 | 0.551 | 0.531 | 1.000 | 0.777 | 0.155 | 0.154 | 0.728 | 0.000 | 0.363 | 0.697 | 0.563 |
| STATE-SE | 0.727 | 0.604 | 0.531 | 1.000 | 0.898 | 0.048 | 0.175 | 0.514 | 0.439 | 0.415 | 0.716 | 0.595 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.879 | 0.878 | 0.608 | 1.000 | 0.610 | 0.006 | 0.521 | 0.850 | 0.000 | 0.397 | 0.841 | 0.664 |
| scVI | 0.856 | 0.791 | 0.586 | 1.000 | 0.646 | 0.019 | 0.499 | 0.896 | 0.277 | 0.467 | 0.808 | 0.672 |
| scGPT | 0.847 | 0.800 | 0.592 | 1.000 | 0.628 | 0.007 | 0.486 | 0.841 | 0.189 | 0.430 | 0.810 | 0.658 |
| Geneformer | 0.846 | 0.792 | 0.549 | 1.000 | 0.756 | 0.006 | 0.512 | 0.797 | 0.314 | 0.477 | 0.797 | 0.669 |
| STATE-SE | 0.852 | 0.816 | 0.532 | 1.000 | 0.896 | 0.000 | 0.432 | 0.538 | 0.441 | 0.461 | 0.800 | 0.665 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.673 | 0.404 | 0.529 | 0.995 | 0.544 | 0.011 | 0.262 | 0.800 | 0.000 | 0.324 | 0.650 | 0.520 |
| scVI | 0.722 | 0.459 | 0.533 | 0.997 | 0.621 | 0.035 | 0.310 | 0.810 | 0.000 | 0.355 | 0.678 | 0.549 |
| scGPT | 0.697 | 0.438 | 0.540 | 0.996 | 0.658 | 0.029 | 0.278 | 0.828 | 0.000 | 0.359 | 0.668 | 0.544 |
| Geneformer | 0.690 | 0.436 | 0.517 | 0.996 | 0.731 | 0.022 | 0.280 | 0.774 | 0.000 | 0.361 | 0.660 | 0.540 |
| STATE-SE | 0.730 | 0.496 | 0.518 | 0.998 | 0.864 | 0.005 | 0.257 | 0.492 | 0.147 | 0.353 | 0.686 | 0.553 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.592 | 0.318 | 0.576 | 1.000 | 0.543 | 0.013 | 0.428 | 0.789 | 0.000 | 0.355 | 0.621 | 0.515 |
| scVI | 0.562 | 0.204 | 0.550 | 1.000 | 0.568 | 0.034 | 0.362 | 0.851 | 0.073 | 0.378 | 0.579 | 0.498 |
| scGPT | 0.635 | 0.352 | 0.533 | 1.000 | 0.582 | 0.015 | 0.361 | 0.807 | 0.000 | 0.353 | 0.630 | 0.519 |
| Geneformer | 0.532 | 0.168 | 0.523 | 0.999 | 0.684 | 0.021 | 0.386 | 0.793 | 0.000 | 0.377 | 0.556 | 0.484 |
| STATE-SE | 0.548 | 0.199 | 0.534 | 1.000 | 0.849 | 0.002 | 0.333 | 0.516 | 0.312 | 0.402 | 0.570 | 0.503 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.788 | 0.653 | 0.597 | 1.000 | 0.618 | 0.002 | 0.444 | 0.780 | 0.000 | 0.369 | 0.759 | 0.603 |
| scVI | 0.813 | 0.665 | 0.597 | 1.000 | 0.629 | 0.002 | 0.479 | 0.836 | 0.103 | 0.410 | 0.769 | 0.625 |
| scGPT | 0.796 | 0.652 | 0.587 | 1.000 | 0.678 | 0.002 | 0.414 | 0.834 | 0.109 | 0.407 | 0.759 | 0.618 |
| Geneformer | 0.777 | 0.625 | 0.531 | 1.000 | 0.769 | 0.001 | 0.446 | 0.771 | 0.096 | 0.417 | 0.733 | 0.607 |
| STATE-SE | 0.830 | 0.763 | 0.531 | 1.000 | 0.876 | 0.000 | 0.361 | 0.571 | 0.346 | 0.431 | 0.781 | 0.641 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.772 | 0.646 | 0.500 | 1.000 | 0.665 | 0.008 | 0.329 | 0.780 | 0.000 | 0.356 | 0.729 | 0.580 |
| scVI | 0.742 | 0.531 | 0.500 | 1.000 | 0.694 | 0.006 | 0.276 | 0.760 | 0.000 | 0.347 | 0.693 | 0.555 |
| scGPT | 0.756 | 0.621 | 0.510 | 1.000 | 0.693 | 0.010 | 0.304 | 0.730 | 0.000 | 0.347 | 0.722 | 0.572 |
| Geneformer | 0.754 | 0.583 | 0.490 | 1.000 | 0.774 | 0.055 | 0.320 | 0.700 | 0.129 | 0.396 | 0.707 | 0.582 |
| STATE-SE | 0.732 | 0.533 | 0.506 | 1.000 | 0.918 | 0.004 | 0.219 | 0.558 | 0.263 | 0.392 | 0.693 | 0.573 |
| Biological conservation | Batch correction | Total score | ||||||||||
| Models | NMI | ARI | ASW | cLISI | BRAS | iLISI | kBET | Conn | PCR | Batch | Bio | Total |
| PC-HVG | 0.749 | 0.688 | 0.585 | 1.000 | 0.602 | 0.075 | 0.387 | 0.810 | 0.000 | 0.375 | 0.755 | 0.603 |
| scVI | 0.783 | 0.722 | 0.551 | 1.000 | 0.655 | 0.129 | 0.385 | 0.855 | 0.319 | 0.469 | 0.764 | 0.646 |
| scGPT | 0.731 | 0.649 | 0.561 | 1.000 | 0.650 | 0.072 | 0.371 | 0.801 | 0.242 | 0.427 | 0.735 | 0.612 |
| Geneformer | 0.684 | 0.503 | 0.517 | 1.000 | 0.721 | 0.060 | 0.379 | 0.728 | 0.240 | 0.426 | 0.676 | 0.576 |
| STATE-SE | 0.791 | 0.738 | 0.524 | 1.000 | 0.881 | 0.007 | 0.299 | 0.436 | 0.458 | 0.416 | 0.763 | 0.624 |
| Method | Batch | Bio | Total |
| Label-free representation extraction and context retrieval | |||
| scGPT | 0.413 | 0.720 | 0.598 |
| Geneformer | 0.438 | 0.728 | 0.612 |
| Stack | 0.451 | 0.699 | 0.600 |
| CellMSA | 0.509 | 0.807 | 0.688 |
| Label-informed context retrieval | |||
| Head | Pearson | Distance | Mean absolute difference | RMSE difference |
| 0 | 0.964 | 0.036 | 0.603 | 1.045 |
| 1 | 0.916 | 0.084 | 1.037 | 2.073 |
| 2 | 0.966 | 0.034 | 0.661 | 1.224 |
| 3 | 0.974 | 0.026 | 0.552 | 0.989 |
| 4 | 0.828 | 0.172 | 1.588 | 3.170 |
| 5 | 0.827 | 0.173 | 1.140 | 2.403 |
| Query gene | Top-ranked partners | STRING-supported partners | Supported fraction |
| KDR | 50 | 26 | 52% |
| Proportion of nonzero genes removed | 10% | 30% | 50% |
| Mean Pearson correlation | 0.996 | 0.988 | 0.972 |
| Median Pearson correlation | 0.998 | 0.993 | 0.984 |
| Query cell type | Cluster | # related | Top related cell types (cosine similarity) |
| CD4-positive, alpha-beta T cell | 2 | 50 | regulatory T cell (0.988); CD4-positive helper T cell (0.986); effector memory CD4-positive, alpha-beta T cell (0.986); CD8-positive, alpha-beta T cell (0.985) |
| B cell | 2 | 50 | naive B cell (0.987); memory B cell (0.984); class switched memory B cell (0.982); mature B cell (0.978) |
| fibroblast | 10 | 50 | thymic fibroblast type 2 (0.973); fibroblast of breast (0.972); stromal cell (0.972); mesenchymal stem cell (0.966) |
| macrophage | 3 | 50 | monocyte (0.974); Kupffer cell (0.969); alternatively activated macrophage (0.969); lung macrophage (0.968) |
| endothelial cell | 9 | 34 | endothelial cell of vascular tree (0.970); retinal blood vessel endothelial cell (0.951); endothelial cell of periportal hepatic sinusoid (0.938); capillary endothelial cell (0.934) |
| Hyperparameter | Value | |
| Input and context | Gene vocab size Max sequence length Number of neighbors Expression bins | 61,982 2,048 40 11 |
| Backbone | Parameters Hidden size Pair embedding size Cell embedding size | 47.13M 512 8 512 |
| CellMSA-module | Number of layers MSA hidden size Outer product hidden size Attention heads Attention head dim Row dropout | 4 128 8 8 32 0.15 |
| GenePairformer | Number of layers Pair-biased attention heads Attention head dim Row dropout | 6 8 32 0.25 |
| Pretraining objectives | Masked gene modeling probability Mask replace probability Random replace probability Reconstruction probability Reconstruction weight CCE weight CCE temperature CCE interval | 0.15 0.8 0.1 0.1 0.01 10.0 0.05 1 |
| Pretraining | Optimizer Scheduler Max learning rate Weight decay Warmup steps Batch size per GPU Number of GPUs Gradient accumulation Effective batch size Mixed precision | AdamW Linear warmup then constant 1e-5 0.05 1,000 4 4 2 32 Enabled |