Cell-Graph Compass: Modeling Single Cells with Graph Structure Foundation Model

Chen Fang, Zhilong Hu, Shaole Chang, Qingqing Long, Wentao Cui, Wenhao Liu, Cong Li, Yana Liu, Pengfei Wang, Zhen Meng, Jia Pan, Yuanchun Zhou, Guihai Feng, Linghui Chen, Xin LibioRxiv 2024

Abstract

Inspired by the advancements in pre-trained Large Language Models, there has been a surge of studies in the Life Sciences focusing on constructing foundation models with large scale single-cell RNA-seq data. These studies typically involve pre-training a transformer model on large-scale single-cell sequencing data, followed by fine-tuning for a variety of downstream tasks, achieving notable performance. However, these models all share a common short-coming: to utilize the transformer architecture, originally designed for textual data, they artificially impose a sequential structure on genes within cells, simplifying the complex interactions between genes. Furthermore, they focus solely on transcriptomic data, neglecting other relevant biological information. To address these issues, here we introduce Cell-Graph Compass (CGC), the first foundational model that leverages graph structures to model single cells and describes cells from multiple perspectives, including transcriptional profiles, gene text summaries, transcription factor regulatory networks, gene co-expression patterns, and gene positional relationships. By incorporating self-attention mechanisms, we pretrained the model on 50 million human single-cell sequencing data, resulting in a robust digital representation of cells. Extensive downstream experiments demonstrate that our approach can capture meaningful biological knowledge and achieve superior results in various problem scenarios, achieving the state-of-the-art (SOTA).

Introduction

Foundation models have revolutionized single-cell transcriptomics by enabling large-scale pre-training on millions of cells. However, existing models like scGPT and Geneformer typically treat cells as sequences of genes, an analogy borrowed from natural language processing. This "genes as words" approach oversimplifies biological reality, as genes function within complex, multi-dimensional networks defined by regulatory wiring, co-expression, and physical proximity on chromosomes. Cell-Graph Compass (CGC) addresses these limitations by representing cells as graphs, integrating biological prior knowledge to model the actual structure of gene interactions.

Methods

CGC utilizes a hybrid architecture combining Graph Neural Networks (GNNs) and Transformers to capture both local and global gene relationships.

Graph Construction and Features

For each cell, CGC constructs a graph where nodes represent genes. Edges are established based on three biological priors:

  1. Transcription Factor (TF) Interactions: Known regulatory relationships from curated databases.
  2. Co-expression: Statistical correlations in gene activity.
  3. Chromosomal Position: Physical proximity on the DNA strand.

Nodes are characterized by multi-modal features, including gene tokens, expression values, and textual summaries of gene functions digitized via BioBERT from NCBI descriptions.

Overview of the CGC framework: (a) Model architecture, (b) Graph construction from biological priors, (c) Pre-training stage, and (d) Fine-tuning for downstream tasks.

Model Architecture and Pre-training

The model employs a "Local-Global" engine. A GNN module performs message passing to capture local interactions between connected genes, while a Transformer module applies self-attention to capture global interactions across the entire cell. CGC was pre-trained on ScCompass-h50M, a dataset of 50 million human single-cell transcriptomes, using a masked-prediction strategy where the model predicts hidden gene expression values.

Results

CGC achieves state-of-the-art (SOTA) performance across a wide range of biological tasks, demonstrating the power of incorporating structural priors.

Gene Classification and Regulatory Inference

CGC consistently outperformed baselines such as gene2vec and BioBERT in gene classification tasks, including dosage sensitivity and network centrality. Furthermore, the model showed superior performance in Gene Regulatory Network (GRN) inference, as measured by Enrichment Precision Ratio (EPR) and Area Under the Precision-Recall curve (AUPR) across multiple datasets including STRING and ChIP-seq.

CGC performance metrics: (a) AUC for gene classification, (b-c) EPR and AUPR for GRN inference, and (d) Gene program identification via heatmap.

Downstream Applications

  • Batch Correction and Annotation: CGC achieved superior scores in NMI, ARI, and ASW for batch correction and maintained over 90% accuracy in cell type annotation for Multiple Sclerosis datasets.
  • Perturbation Prediction: In predicting post-perturbation gene expression, CGC significantly improved Pearson correlation compared to previous leaders like GEARS.
  • Bulk-Level Knockout Prediction: The model successfully transferred single-cell knowledge to predict bulk sequencing outcomes, achieving over 90% accuracy in predicting the direction of gene expression changes after knockouts.

Discussion

By moving beyond linear sequence modeling, Cell-Graph Compass demonstrates that biological priors act as effective regularizers, leading to more robust cell representations. The integration of textual knowledge further enhances the model's semantic understanding of gene functions. Future work will focus on multi-omics integration and incorporating 3D spatial transcriptomics to further refine the structural modeling of single cells.

Summary updated

BibTeX
@misc{fang2024cell,
  author = {Chen Fang and Zhilong Hu and Shaole Chang and Qingqing Long and Wentao Cui and Wenhao Liu and Cong Li and Yana Liu and Pengfei Wang and Zhen Meng and Jia Pan and Yuanchun Zhou and Guihai Feng and Linghui Chen and Xin Li},
  title = {{Cell-Graph Compass: Modeling Single Cells with Graph Structure Foundation Model}},
  year = {2024},
  doi = {10.1101/2024.06.04.597354},
  howpublished = {bioRxiv},
}
Figure