scLong: A Billion-Parameter Foundation Model for Capturing Long-Range Gene Context in Single-Cell Transcriptomics

Pengtao Xie, Ding Bai, Shentong Mo, Ruiyi Zhang, Yingtao Luo, Jiahao Gao, Jeremy J. Yang, Qiuyang Wu, Digvijay Singh, Hamidreza Rahmani, Tiffany Amariuta, Danielle A. Grotjahn, Sheng Zhong, Nathan E. Lewis, Wei Wang, Trey Ideker, Eric P. XingResearch Square 2024

Abstract

Single-cell RNA sequencing (scRNA-seq) has revolutionized the study of cellular heterogeneity by providing gene expression data at single-cell resolution, uncovering insights into rare cell populations, cell-cell interactions, and gene regulation. Foundation models pretrained on large-scale scRNA-seq datasets have shown great promise in analyzing such data, but existing approaches are often limited to modeling a small subset of highly expressed genes and lack the integration of external gene-specific knowledge. To address these limitations, we present scLong, a billion-parameter foundation model pretrained on 48 million cells. scLong performs self-attention across the entire set of 28,000 genes in the human genome. This enables the model to capture long-range dependencies between all genes, including lowly expressed ones, which often play critical roles in cellular processes but are typically excluded by existing foundation models. Additionally, scLong integrates gene knowledge from the Gene Ontology using a graph convolutional network, enriching its contextual understanding of gene functions and relationships. In extensive evaluations, scLong surpasses both state-of-the-art scRNA-seq foundation models and task-specific models across diverse tasks, including predicting transcriptional responses to genetic and chemical perturbations, forecasting cancer drug responses, and inferring gene regulatory networks.

Introduction

Single-cell RNA sequencing (scRNA-seq) allows researchers to observe cellular behavior by measuring gene expression levels. However, current AI foundation models like scGPT or Geneformer face a significant bottleneck: computational constraints typically limit them to analyzing only the top ~2,000 most highly expressed genes. This exclusion is problematic because lowly expressed genes often act as essential regulatory "switches." Ignoring them limits our understanding of complex biological systems. Furthermore, most models rely solely on raw data, neglecting the vast repository of existing biological knowledge regarding gene functions.

The scLong Architecture

To overcome these challenges, we developed scLong, a billion-parameter model designed to process the entire human genome (~28,000 genes) simultaneously. Its architecture incorporates two primary innovations:

  1. Knowledge-Enriched Gene Encoding: Instead of relying only on expression values, scLong utilizes a gene encoder that processes a "gene graph" derived from the Gene Ontology (GO). A Graph Convolutional Network (GCN) learns gene representations based on known biological functions and cellular localizations, providing the model with an inherent biological "common sense."
  2. Hierarchical Performer Encoders: Standard Transformers cannot handle sequences of 28,000 elements due to quadratic complexity. scLong employs "Performers"—Transformers with linear complexity—in a hierarchical structure. A "Large Performer" handles high-expression genes, while a "Mini Performer" processes low-expression ones. Their outputs are merged through a "Full-length Performer" to capture global, long-range dependencies.
The scLong model architecture integrates raw expression data with Gene Ontology knowledge through a dual-encoder and hierarchical Performer system.

Pretraining and Datasets

scLong was pretrained using a masked value reconstruction task on a massive dataset of 48 million human cells. This corpus spans 1,618 datasets across more than 50 tissues, sourced from major repositories like the Human Cell Atlas and CELLxGENE.

The pretraining data for scLong encompasses 48 million cells and nearly 28,000 genes across diverse human tissues and gene types.

Downstream evaluation covered several critical biological tasks:

  • Genetic Perturbations: Predicting cellular responses to gene knockouts (Norman dataset).
  • Chemical Perturbations: Forecasting responses to drug compounds (L1000 dataset).
  • Cancer Drug Response: Predicting drug efficacy and synergistic combinations (DeepCDR and AstraZeneca datasets).
  • Gene Regulatory Networks (GRNs): Reconstructing regulatory interactions in embryonic stem cells.

Key Results and Insights

scLong consistently outperformed both general foundation models and specialized task-specific models across diverse evaluations:

  • Superior Generalization: In "out-of-domain" genetic perturbation tasks, scLong achieved a Pearson correlation of 0.63, outperforming competitors (0.56–0.58).
  • Enhanced Drug Response Prediction: For single-drug cancer responses, it reached a correlation of 0.873, surpassing the specialized DeepCDR model (0.837).
  • The Value of Low-Expression Genes: The results confirm that including lowly expressed genes is vital for capturing the subtle regulatory signals that drive complex cellular transitions.
  • Inductive Bias through Knowledge: Integrating Gene Ontology allows the model to maintain accuracy even when raw expression data is sparse or noisy.

Discussion and Limitations

While scLong represents a significant leap forward, it requires substantial computational resources, utilizing 12 machines with 8 A100 GPUs each for training. Additionally, the model's reliance on the Gene Ontology means it is bound by the current state of documented biological knowledge, which may not capture all condition-specific interactions. Future developments will focus on integrating multi-omic data, such as protein-protein interaction networks and epigenetic information, to further refine the model's contextual understanding.

Summary updated

BibTeX
@inproceedings{xie2024sclong,
  author = {Pengtao Xie and Ding Bai and Shentong Mo and Ruiyi Zhang and Yingtao Luo and Jiahao Gao and Jeremy J. Yang and Qiuyang Wu and Digvijay Singh and Hamidreza Rahmani and Tiffany Amariuta and Danielle A. Grotjahn and Sheng Zhong and Nathan E. Lewis and Wei Wang and Trey Ideker and Eric P. Xing},
  title = {{scLong: A Billion-Parameter Foundation Model for Capturing Long-Range Gene Context in Single-Cell Transcriptomics}},
  booktitle = {Research Square},
  year = {2024},
  doi = {10.21203/rs.3.rs-5420259/v1},
}
Figure