Knowledge Graph Modulated Deep Learning for Limited-Sample Clinical Data Analysis

Yuwei Xue, Sakib Mostafa, James Zou, Joseph Liao, Maximilian Diehn, Ash A. Alizadeh, Lei Xing, Md. Tauhidul IslamarXiv 2026

TL;DR

The Graph-in-Graph (GiG) framework revolutionizes clinical machine learning by representing individual patients as standalone molecular graphs that integrate patient-specific transcriptomic data with curated biological pathways. By preserving complex gene-gene interactions and network topology, GiG drastically improves sample efficiency and prediction accuracy, outperforming state-of-the-art methods by up to 49 percentage points in data-scarce and noisy clinical environments.

What Problem Does This Paper Address?

Most modern genomic machine learning pipelines treat gene expression data as a flat table of numbers. This framing ignores two fundamental properties of biology: genes do not operate in isolation—they function within intricate, validated molecular pathways—and pathway activity varies significantly from patient to patient.

While Graph Neural Networks (GNNs) have been introduced to biomedical AI, existing methods typically rely on a single global network shared across all samples or reduce patients to simple similarity vectors. This prevents patient-specific expression data and biological network topology from dynamically interacting during model message-passing. Consequently, standard deep learning models struggle to extract meaningful signals in limited-sample clinical studies or highly diluted, noisy datasets like liquid biopsies.

Methods

The authors introduce Graph-in-Graph (GiG), a backbone-agnostic framework that builds individualized molecular interaction graphs for every patient.

The pipeline consists of four main stages:

  1. Dysregulation Selection: For each patient sample, genes are standardized and ranked by their absolute z-score. The top 80th percentile of dysregulated genes are selected.
  2. Pathway Mapping: These patient-specific dysregulated genes are mapped to curated biological pathways using the WikiPathways database.
  3. Graph Assembly: Individual pathway graphs are merged into a single, unified molecular interaction graph for that patient. Shared genes act as natural bridges between different pathway modules.
  4. Feature & Identity Encoding: Nodes (genes) are assigned two scalar features: patient-specific normalized expression and cohort-level co-expression context. Crucially, GiG introduces a learnable gene identity embedding that allows the model to preserve the specific molecular role of a gene across structurally diverse patient graphs.

Because GiG is backbone-agnostic, these patient-level graphs can be processed using any standard GNN architecture (e.g., GCN, GraphSAGE, GIN, GAT) followed by global mean pooling and a classification/regression head.

Figure 1. Workflow of the proposed GiG framework. GiG constructs patient-specific molecular interaction graphs by integrating transcriptomic profiles with curated biological pathway knowledge. Starting from sequencing-derived gene expression data, pathways relevant to each patient are selected based on the sample-specific gene expression profile. Curated pathway interactions are then merged to generate a molecular interaction graph in which nodes represent genes and edges encode known biological relationships. These patient-specific graphs are subsequently used as inputs to a graph neural network (GNN) classifier, enabling graph-level learning across a cohort of samples. The learned graph representations can then be applied to downstream predictive tasks such as disease classification and regression.

Datasets

The framework was rigorously evaluated across nearly 9,700 patients spanning three distinct transcriptomic cohorts and five clinical tasks:

  • RARE-Seq cfRNA Dataset: A highly challenging liquid biopsy dataset from Stanford Hospital characterized by low signal-to-noise ratios and extreme class imbalance. Tasks included binary cancer detection, stage classification, and subtype classification.
  • Prostate Cancer Dataset: A tissue-based transcriptomic dataset used for binary prediction of localized versus metastatic prostate cancer.
  • TCGA Pan-Cancer Dataset: A large-scale multi-omic benchmark used for a highly complex 32-class cancer type classification task.

Key Insights and Ideas

  • Topology as a Powerful Inductive Bias: Incorporating real biological structure acts as a regularizer that prevents overfitting. In low-signal environments (like cfRNA), pathway topology organizes weak, distributed molecular signals into functional neighborhoods where coordinated dysregulation can be effectively aggregated.
  • Context-Dependent Value of Structure: The benefit of graph modeling is inversely proportional to the strength of the raw data signal. In tissue samples where molecular signatures are already highly distinct (e.g., prostate cancer), node features dominate. In noisy or high-complexity settings (e.g., liquid biopsy and pan-cancer), the biological graph structure provides massive performance leaps.
  • Biological Grounding vs. Arbitrary Complexity: Through control experiments, the authors proved that the performance gains are driven by biologically real pathway structures. Replacing WikiPathways edges with random graph controls (Erdos–Rényi or degree-preserving rewiring) caused severe performance collapses.

Key Results

  • Pan-Cancer Breakthrough: On the 32-class TCGA classification task, GiG achieved 92.4% accuracy and 88.9% macro-F1. In comparison, the strongest conventional GNN baseline reached only 63% accuracy and 39% F1—representing a massive 49 percentage point improvement in macro-F1.
  • Liquid Biopsy Performance: On the noisy RARE-Seq dataset, GiG achieved an accuracy of 89% and a macro-F1 of 88% for binary cancer detection, outperforming the strongest baseline by over 15% in accuracy.
  • Prostate Cancer Near-Perfection: GiG achieved near-ceiling performance on tissue-based prostate cancer diagnosis, approaching 98% across accuracy, macro-F1, and sensitivity.
  • Ablation Drops: Disrupting the pathway topology via random rewiring on the RareSeq dataset cost the model up to 21.6% in accuracy and 31.7% in macro-F1, demonstrating that edge count and degree sequence alone cannot replicate biological signal.

Limitations and Future Work

  • Signal Dependency: The authors acknowledge that GiG's performance gains are context-dependent. When transcriptomic features are already highly separable on their own (as seen in the tissue-based prostate cancer dataset), the exact arrangement of pathway edges provides only modest improvements.
  • Database Reliance: The framework is inherently bound to the completeness and accuracy of curated databases like WikiPathways. Missing, biased, or incorrect annotations in the underlying knowledge graphs could limit the model's fidelity.
  • Future Directions: The authors suggest extending the GiG framework to integrate larger, more diverse multi-omics datasets (such as proteomics and metabolomics) as they become increasingly available in precision medicine.

Summary updated

BibTeX
@misc{xue2026knowledge,
  author = {Yuwei Xue and Sakib Mostafa and James Zou and Joseph Liao and Maximilian Diehn and Ash A. Alizadeh and Lei Xing and Md. Tauhidul Islam},
  title = {{Knowledge Graph Modulated Deep Learning for Limited-Sample Clinical Data Analysis}},
  year = {2026},
  eprint = {2605.24162},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.24162},
}
Figure