Weighted Diversified Sampling for Efficient Data-Driven Single-Cell Gene-Gene Interaction Discovery

Yifan Wu, Yuntao Yang, Zirui Liu, Zhao Li, Khushbu Pahwa, Rongbin Li, Wenjin Zheng, Xia Hu, Zhaozhuo Xu

TL;DR

This paper introduces a purely data-driven framework that uses a custom Transformer model (CelluFormer) to discover crucial gene-gene interactions from massive single-cell transcriptomic datasets. To overcome the massive computational and memory bottlenecks of running Transformers on millions of cells, the authors develop a novel Two-Pass Weighted Diversified Sampling (WDS) algorithm that selects a highly representative 1% subset of the data, achieving discovery performance comparable to using the entire dataset.

What Problem Does This Paper Address?

Understanding how genes interact with one another (Gene-Gene Interactions, or GGIs) is essential for uncovering the mechanisms behind complex human diseases like Alzheimer's and multiple sclerosis. Traditionally, researchers have relied on prior biological knowledge—such as existing interaction networks or transcription factors—to infer these relationships. However, these prior networks are often plagued by high false-positive rates and experimental biases.

While modern machine learning, particularly Transformer models, offers a powerful, purely data-driven alternative capable of capturing intricate gene dependencies via self-attention mechanisms, it hits a massive scalability wall. Single-cell transcriptomic datasets are enormous, and the number of genes expressed per cell varies wildly (sometimes exceeding 12,000, as shown in Figure 1).

Figure 1: Distribution of Sequence Lengths in L6_CT Cell Type Data.

Computing giant $m \times m$ attention maps across millions of cells quickly exhausts GPU memory (High Bandwidth Memory) and leads to prohibitive execution times, making full-dataset processing impractical for real-world deployment.

Methods

The authors tackle this challenge with a two-part framework:

  1. CelluFormer (The Model): A permutation-invariant Transformer architecture designed specifically for single-cell data. Because the biological order of genes in a data vector is arbitrary, CelluFormer enforces a permutation-invariant design. It extracts gene-gene interactions directly from its self-attention maps by scaling gene embeddings by their expression levels and averaging the attention maps across all layers and heads.
Figure 2: Gene-gene interaction modeling with attention maps.
  1. Two-Pass Weighted Diversified Sampling (WDS) (The Scalability Engine): Instead of uniform random sampling, which might miss rare but highly informative cell types, the authors propose a randomized algorithm based on Min-Max Similarity.
  2. The Core Idea: Cells with unique gene expression profiles are more informative ("diverse") than cells with common profiles.
  3. The Algorithm: To avoid an expensive $O(n^2)$ pairwise similarity calculation, the algorithm leverages 0-bit Consistent Weighted Sampling (CWS) hash functions. In just two linear scans (passes) of the dataset, it estimates the Min-Max kernel density for every cell.
  4. Sampling: It computes an Inverse Min-Max Density (IMD) score and uses it as a probability distribution to sample a small, highly diverse subset of cells for the Transformer to analyze.

Datasets

  • Training/Inference: The Seattle Alzheimer’s Disease Brain Cell Atlas (SEA-AD), which includes single-nucleus RNA sequencing data spanning 36,601 genes across 1,240,908 cells from 84 senior brain donors. The authors specifically filtered this down to 18 neuronal cell types most relevant to Alzheimer's progression.
  • Ground Truth Evaluation: Verified interactions were sourced from the BioGRID and DisGenet databases, filtered specifically for genes associated with Alzheimer's Disease.

Key Insights and Ideas

  • Data Diversity > Data Volume: The most striking insight is that you don't need a massive dataset to map global gene interactions if your subset is sufficiently diverse. By prioritizing unique cellular profiles, the WDS algorithm preserves the statistical evidence of rare interactions.
  • Transformers Prefer Massive Exposure Across Cell Types: The authors found a significant performance boost when training CelluFormer on all neuronal cell types simultaneously rather than training separate models on individual cell types. The model benefits from cross-cell-type feature sharing.
  • Attention Maps as Disease Indicators: If a Transformer is trained to accurately predict whether a cell is healthy or diseased (e.g., Alzheimer's-infected), its internal attention maps naturally highlight the disease-oriented gene-gene interactions driving that classification.

Key Results

Classification Performance

CelluFormer achieved an F1 Score and Accuracy of 98.12% when trained on all neuronal cell types to classify Alzheimer's disease states, outperforming standard Multilayer Perceptrons (MLPs) and even massive single-cell foundation models like scGPT (93.85%) and scFoundation (97.38%).

Table 1: Performance comparison of models on neuronal cell dataset.

Sampling Efficiency

When evaluating the sampling methods using the Normalized Enrichment Score (NES) against ground-truth biological databases:

  • The 1% Miracle: Sampling a mere 1% of the dataset using WDS yielded gene interaction discovery performance comparable to using 100% of the data.
  • WDS vs. Uniform: WDS consistently outperformed uniform random sampling across all tested sample sizes (1%, 2%, 5%, 10%). For instance, on the L6_CT cell type at a 1% sample size, WDS achieved an NES of 1.19 (with a Mean Squared Error of 0.0000 relative to the full dataset), while uniform sampling lagged at 0.85 (MSE of 0.0207).

Limitations and Future Work

  • Noise Sensitivity: Single-cell transcriptomic data is notoriously noisy. The authors note that smaller, cleaner samples sometimes out-performed larger samples, suggesting that data noise can distort attention maps.
  • Interpretability Limits: Not all complex, non-linear gene-gene interaction patterns can be interpreted directly through linear aggregations of attention maps.
  • Hyperparameter Sensitivity: The performance of the WDS algorithm is sensitive to the number of hash functions ($R$). Interestingly, increasing $R$ too much led to a decline in the discovery metric (NES), indicating a trade-off between theoretical density convergence and empirical subset utility that warrants future study.

Summary updated

BibTeX
@inproceedings{wu2024weighted,
  author = {Yifan Wu and Yuntao Yang and Zirui Liu and Zhao Li and Khushbu Pahwa and Rongbin Li and Wenjin Zheng and Xia Hu and Zhaozhuo Xu},
  title = {{Weighted Diversified Sampling for Efficient Data-Driven Single-Cell Gene-Gene Interaction Discovery}},
  booktitle = {AIDrugX @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=jBkFe5zfPa},
}
Figure