scBiGNN: Bilevel Graph Representation Learning for Cell Type Classification from Single-cell RNA Sequencing Data

Rui Yang, Wenrui Dai, Chenglin Li, Junni Zou, Dapeng Wu, Hongkai Xiong

TL;DR

scBiGNN is a novel bilevel graph representation learning framework that simultaneously captures gene-gene and cell-cell relationships to classify cell types in single-cell RNA sequencing (scRNA-seq) data. By alternating between these two biological scales via an Expectation-Maximization (EM) algorithm, the model achieves state-of-the-art accuracy while remaining scalable to large datasets.

What Problem Does This Paper Address?

Identifying cell types from scRNA-seq data is a cornerstone of modern transcriptomics, essential for understanding everything from cancer progression to drug responses. While Graph Neural Networks (GNNs) have shown promise in this area, existing models typically suffer from two main drawbacks:

  1. Scale Mismatch: Most methods focus either on gene-gene interactions (local biological context within a cell) or cell-cell relationships (global connectivity across the dataset). Rarely do they integrate both effectively.
  2. Static Graphs: Many GNNs rely on pre-defined, task-irrelevant biological networks (like the STRING database) or simple $k$-nearest neighbor graphs built on raw, noisy data. These fixed structures may not be optimal for the specific classification task at hand.

The authors propose scBiGNN to bridge these gaps, creating a system where gene-level and cell-level information mutually reinforce each other.

Methods

The core of scBiGNN is its bilevel architecture, managed by an Expectation-Maximization (EM) framework.

  • Gene-level GNN ($q_\phi$): This module treats genes as nodes. It uses a self-attention mechanism (similar to Transformers) to adaptively learn which gene-gene interactions are most relevant for a specific cell. It then "reads out" these interactions to create a high-quality vector representation for the entire cell.
  • Cell-level GNN ($p_\theta$): This module treats cells as nodes. It constructs a cell-cell graph by linking cells with similar representations (generated by the gene-level GNN). It then aggregates information from a cell's neighbors to refine its classification.
  • EM Framework: Training these two massive graphs end-to-end is computationally prohibitive. Instead, scBiGNN alternates:
  • E-step: The cell-level GNN is fixed and provides "pseudo-labels" to help train the gene-level GNN.
  • M-step: The gene-level GNN is fixed, providing the refined cell representations used to rebuild the cell-cell graph and train the cell-level GNN.

This iterative process allows the model to scale to large datasets while gradually improving the quality of both the learned gene interactions and the cell-cell graph.

Datasets

The model was evaluated on five widely used benchmark scRNA-seq datasets, covering different species and protocols:

  • Zheng68K: The largest dataset (~66,000 cells from human blood).
  • Zhengsorted: FACS-sorted human blood cells (~20,000 cells).
  • BaronHuman & BaronMouse: Pancreas cells from humans and mice.
  • AMB: Mouse visual cortex cells.

Key Insights and Ideas

  • Mutual Reinforcement: The EM framework isn't just a trick for scalability; it allows the two modules to "teach" each other. The gene-level GNN provides better features for graph construction, while the cell-level GNN provides global context that guides the gene-level attention.
  • Adaptive Learning over Fixed Databases: By learning gene interactions via self-attention rather than relying on static databases, the model identifies genes that are truly discriminative for the specific cell types in the dataset.
  • Superior Homophily: The cell-cell graphs constructed by scBiGNN show significantly higher homophily—meaning cells of the same type are much more likely to be connected—compared to graphs built on raw data. This makes the final classification task much easier for the GNN.
Figure 2: Network analysis showing (A) consistent important genes across folds, (B) robustness to the number of neighbors $k$, and (C) improved homophily compared to raw data.

Key Results

scBiGNN was compared against 12 baseline methods, including traditional machine learning (SVM, Random Forest) and other deep learning/GNN approaches (ACTINN, sigGCN).

  • State-of-the-Art Accuracy: scBiGNN achieved the highest accuracy across all five datasets.
  • Large-Scale Performance: On the largest dataset (Zheng68K), it outperformed the best baseline by over 2.5%, a significant margin in this field.
  • Fast Convergence: As shown in Figure 1, the model typically converges in just 3 EM iterations, making it efficient for practical use.
Figure 1: The convergence curves of qϕ and pθ on the Zhengsorted dataset.

Limitations and Future Work

  • Computational Bottleneck: While the EM framework aids scalability, the $k$-NN graph construction still requires calculating similarities between all cell pairs (or using approximate methods), which could become a bottleneck for datasets with millions of cells.
  • Future Directions: The authors suggest that this bilevel approach could be extended to multi-omics data, integrating not just RNA sequencing but also chromatin accessibility (ATAC-seq) or protein levels to provide an even more holistic view of cellular identity.

Summary updated

Abstract

Single-cell RNA sequencing (scRNA-seq) technology provides high-throughput gene expression data to study the cellular heterogeneity and dynamics of complex organisms. Graph neural networks (GNNs) have been widely used for automatic cell type classification, which is a fundamental problem to solve in scRNA-seq analysis. However, existing methods do not sufficiently exploit both gene-gene and cell-cell relationships, and thus the true potential of GNNs is not realized. In this work, we propose a bilevel graph representation learning method, named scBiGNN, to simultaneously mine the relationships at both gene and cell levels for more accurate single-cell classification. Specifically, scBiGNN comprises two GNN modules to identify cell types. A gene-level GNN is established to adaptively learn gene-gene interactions and cell representations via the self-attention mechanism, and a cell-level GNN builds on the cell-cell graph that is constructed from the cell representations generated by the gene-level GNN. To tackle the scalability issue for processing a large number of cells, scBiGNN adopts an Expectation Maximization (EM) framework in which the two modules are alternately trained via the E-step and M-step to learn from each other. Through this interaction, the gene- and cell-level structural information is integrated to gradually enhance the classification performance of both GNN modules. Experiments on benchmark datasets demonstrate that our scBiGNN outperforms a variety of existing methods for cell type classification from scRNA-seq data.
BibTeX
@misc{yang2023scbignn,
  author = {Rui Yang and Wenrui Dai and Chenglin Li and Junni Zou and Dapeng Wu and Hongkai Xiong},
  title = {{scBiGNN: Bilevel Graph Representation Learning for Cell Type Classification from Single-cell RNA Sequencing Data}},
  year = {2023},
  eprint = {2312.10310},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.10310},
}
Figure