Knowledge Graphs and Reasoning LLMs for Finding Simple Yet Effective Transcriptomic Perturbation Predictors

Jake Fawkes, Liam Hodgson, Jason HartfordarXiv 2026

TL;DR

A simple K-nearest neighbor baseline leveraging biological knowledge graphs surprisingly outperforms complex deep learning models at predicting how gene knockouts affect cellular gene expression. By training a reasoning LLM via reinforcement learning to dynamically edit and refine these graph neighborhoods, the authors match state-of-the-art performance while simultaneously boosting the LLM's general biological reasoning capabilities.

What Problem Does This Paper Address?

Predicting how a cell's transcriptome (its complete set of RNA transcripts) will respond to an unseen genetic perturbation, like a gene knockout, is a holy grail for computational biology and virtual cell modeling. However, making out-of-distribution (OOD) predictions for entirely new genetic interventions is incredibly difficult.

Until recently, advanced machine learning models frequently underperformed dead-simple baselines, such as simply predicting the average expression profile of all training samples. While incorporating biological knowledge graphs (KGs) as an inductive bias has recently pushed performance forward, it has remained unclear exactly why these graph-based models generalize well, and how we can fix the inherent incompleteness and noise present in biological databases.

Methods

The authors tackle this problem with a two-pronged approach:

  1. The Graph Neighbor Predictor: Grounded in the assumption that cellular responses follow a sparse, hierarchical causal structure, they introduce a remarkably simple baseline. To predict the effect of knocking out gene $p$, they locate its immediate 1-hop neighbors in a biological knowledge graph and compute the average of their known perturbation effects.
  2. LLM Neighborhood Editing via RL: Recognizing that knowledge graphs are incomplete and noisy, they use a large language model (Qwen3-4B-Instruct) to refine the graph neighborhoods. Given a target gene and its initial graph neighbors, the LLM is prompted to propose additions or removals of genes based on its internal biological priors.

To optimize this process, the LLM is trained using Group Relative Policy Optimization (GRPO), a reinforcement learning algorithm. The reward function balances three components: formatting correctness, validity (ensuring proposed genes actually exist in the training data), and a Pearson Delta Reward that directly incentivizes changes improving the final transcriptomic prediction accuracy.

Figure 1: Method Visualization We provide LLMs with access to biological knowledge graphs and prompt them to choose genes for perturbation performance. We then optimize them via reinforcement learning using predictive performance as a reward. This finds a simple predictive model which performs at the level of state of the art models.

Datasets

The models were evaluated using single-cell perturbation data from Replogle et al. (2022) across four distinct human cell lines:

  • K562 (Chronic myeloid leukemia)
  • RPE1 (Retinal pigment epithelial cells)
  • HEPG2 (Hepatocellular carcinoma)
  • Jurkat (T lymphocyte acute leukemia)

For downstream evaluation of the LLM's generalized biological reasoning, the authors used PerturbQA, a benchmark dataset designed to test models on tasks like differential expression prediction and direction-of-change estimation.

Key Insights and Ideas

  • The Power of Simple Priors: The success of the neighborhood-averaging approach suggests that cellular biology behaves like a sparse hierarchical causal graph. If two distinct gene perturbations disrupt the same low-level protein complex, their downstream transcriptomic impacts will be highly similar.
  • KGs are Strong but Suboptimal: While knowledge graphs successfully capture highly correlated genes, their immediate neighborhoods often omit critical predictive genes or include low-power distractors.
  • LLMs as Flexible Posteriors: Instead of executing an intractable combinatorial search over all $O(2^{(\# \text{ genes})^2})$ possible graph structures, an LLM can act as a highly effective prior, narrowing the search space exclusively to biologically plausible gene interactions.
  • Task Alignment Transfers to Reasoning: Training an LLM via RL on a specific quantitative prediction task (improving Pearson correlation) inherently improves its performance on qualitative downstream biological QA tasks, even without direct training on those QA datasets.
Figure 2: Hierarchical model of cell responses. Our model abstracts the relationship between observed correlations (left) and underlying protein complexes (center) (Replogle et al., 2022). Genes in the same complex correlate highly; submodules are reflected in correlation blocks. This is represented as a causal DAG (right).

Key Results

  • KNN Beats Deep Learning: The basic Graph Neighbor predictor consistently outperformed highly complex, specialized deep learning models like GEARS and scLAMBDA across out-of-distribution cell lines.
  • Matching State-of-the-Art: When the reasoning LLM was optimized via RL to edit the neighborhoods, it achieved performance equivalent to TxPert, the current state-of-the-art graph neural network approach. For instance, on the K562 cell line, the RL-tuned LLM achieved a Pearson Delta ($\Delta$) of 0.625, matching TxPert's 0.626 and outperforming the raw knowledge graph baseline (0.597).
Figure 3: Surprising Effectiveness of Related Genes This figure compares the knowledge graph neighbour predictor on the cell lines from Replogle et al. (2022) against more complex perturbation prediction models in GEARS (Roohani et al., 2024b), scLAMBDA (Wang et al., 2024), TxPert (Wenkel et al., 2025) and an LLM based approach in Langpert (M¨artens et al.) using Claude Sonnet. We can see that the graph neighbour outperforms all but TxPert, a current state of the art model.

Limitations and Future Work

While this work serves as an exciting proof-of-concept for using RL to refine LLMs for scientific discovery, it has notable limitations:

  • Computational Cost: Training LLMs via reinforcement learning is significantly more computationally expensive than training standard graph neural networks or linear baselines.
  • Cell Line Dependency: The method still requires an existing training set for the specific cell line being targeted, meaning it cannot yet perform true "zero-shot" transcriptomic predictions on completely uncharacterized cell types.

Future work will likely focus on scaling this approach to combinatorial (multi-gene) perturbations and exploring more computationally efficient alignment strategies.

Summary updated

BibTeX
@misc{fawkes2026knowledge,
  author = {Jake Fawkes and Liam Hodgson and Jason Hartford},
  title = {{Knowledge Graphs and Reasoning LLMs for Finding Simple Yet Effective Transcriptomic Perturbation Predictors}},
  year = {2026},
  eprint = {2606.08816},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.08816},
}
Figure