Exposing the Molecular Reaction Blind Spots of LLMs with PathwayQA

Gowri Nayar, Kristy A. Carpenter, Delaney A. Smith, Betty Xiong, Russ B. AltmanbioRxiv 2025

TL;DR

Large language models (LLMs) are increasingly capable, but their ability to understand complex biological processes like protein pathways is still limited. This paper introduces PathwayQA, a new dataset for evaluating LLMs on predicting reaction products and disease associations, revealing that even top models struggle with these tasks, often performing worse than a simple baseline.

What Problem Does This Paper Address?

Proteins are fundamental to cellular function, and understanding their interactions in pathways is crucial for biological discovery and disease research. While LLMs have shown promise in various scientific domains, their performance in inferring protein-mediated biochemical reactions and their link to diseases remains largely unexplored. Existing databases like Reactome are rich sources of this information, but accessing and querying them effectively requires specialized knowledge. This paper aims to bridge this gap by evaluating LLMs' capabilities in this area and providing a benchmark for future development.

Methods

The researchers developed a novel question-answering (QA) dataset called PathwayQA, derived from the Reactome database. This dataset has two main components: one for predicting reaction products given reactants and enzymes, and another for inferring disease associations with protein pathways. They then evaluated nine different LLMs, including both general-purpose and biologically-tuned models, using this dataset. To assess the LLMs' outputs, they employed a two-pronged approach: using a powerful LLM (GPT-4.1) as a judge and conducting manual annotations by human experts. They also analyzed factors like protein promiscuity (how often a protein participates in different reactions) to understand their impact on model performance.

Datasets

  • Reactome: The primary source for curating pathways, reactions, and disease associations.
  • PathwayQA: A newly created benchmark dataset consisting of two subtasks:
  • Reaction Output Prediction: Given reactants and enzymes, predict the products.
  • Pathway-Disease Association: Given a pathway, infer if it's associated with a disease and identify the disease.

Key Insights and Ideas

  • LLMs struggle with biochemical inference: Even the most advanced LLMs have significant blind spots when it comes to predicting the products of biochemical reactions.
  • Parroting is surprisingly effective: A simple baseline strategy of just repeating the reactants as predicted products often performed as well as, or even better than, the LLMs. This suggests LLMs aren't truly reasoning about the chemical transformations.
  • Disease association is also challenging: While some models performed better at linking pathways to diseases, overall accuracy was moderate, highlighting another area for improvement.
  • Protein promiscuity matters: Reactions involving "promiscuous" proteins (those involved in many different reactions) were harder for LLMs to predict correctly, likely due to increased ambiguity.
  • General-purpose models often outperform specialized ones: Larger, general-purpose LLMs like GPT-4o mini and Claude generally showed better performance than smaller, fine-tuned biomedical models.

Key Results

  • Reaction Product Prediction: GPT-4o mini achieved the highest median recovery score of 0.6667, but no model surpassed the baseline of parroting reactants.
  • Disease Association: DeepSeek 7B Chat performed best with an accuracy of 0.9100 for inferring disease associations.
  • Disease Name Generation: Mistral achieved the highest accuracy for generating disease names.
  • Overall Performance: The study highlights that LLMs still have a long way to go in accurately reasoning about complex biological systems.

Limitations and Future Work

The authors acknowledge several limitations:

  • Prompt Engineering: While they used prompt engineering, they suggest that further refinement and potentially different prompts for different models could yield better results.
  • LLM-as-a-Judge: Using an LLM for evaluation introduces some uncertainty, as it might miss errors a human expert would catch.
  • Dataset Bias: The study relies solely on Reactome, which, while well-curated, is biased towards well-studied pathways and diseases.
  • Extraneous Text: Some models generated extraneous reactions or text, which complicated evaluation.

Future work could involve:

  • Further Tuning LLMs: Using the PathwayQA dataset to fine-tune LLMs specifically for biological reasoning tasks.
  • Agentic LLMs: Exploring agentic LLMs that can interact with external tools (like APIs) to access and process biological data more effectively.
  • Broader Benchmarking: Expanding the evaluation to include more diverse biological databases and tasks.
  • Improved Prompting Strategies: Developing more sophisticated prompting techniques to elicit better reasoning from LLMs.

Summary updated

Abstract

Proteins mediate a large portion of cellular activity, and understanding protein pathways can yield novel biological insights. Large language models (LLMs) have become increasingly adept at performing inference tasks across different fields of science and engineering. These models could facilitate the analysis of protein networks and help generate hypotheses about protein interactions in a scalable and accessible manner. However, the performance of LLMs in inferring protein-mediated biochemical reactions remains understudied. Here, we evaluate nine LLMs in reasoning over protein pathways included in the curated Reactome database. We find that all nine models struggle to infer products of a reaction when given reactants and enzymes. GPT-4o mini performed the best with a median recovery score of 0.6667, but no model surpassed the baseline strategy of parroting reactants back as predicted products. Most LLMs also performed poorly when inferring whether a protein pathway is associated with a human disease, with an average accuracy of 0.5980. DeepSeek 7B Chat performed the best with an accuracy of 0.9100. This study highlights an area where LLMs still struggle to make correct inferences and provides an opportunity for further work in developing biological LLMs. We also provide a novel question-answer dataset, PathwayQA, which is based on the Reactome database. PathwayQA can be used to benchmark and improve model performance on reasoning over protein-interaction networks. PathwayQA is available at https://github.com/Helix-Research-Lab/PathwayQA .
BibTeX
@misc{nayar2025exposing,
  author = {Gowri Nayar and Kristy A. Carpenter and Delaney A. Smith and Betty Xiong and Russ B. Altman},
  title = {{Exposing the Molecular Reaction Blind Spots of LLMs with PathwayQA}},
  year = {2025},
  doi = {10.1101/2025.08.12.669911},
  howpublished = {bioRxiv},
}
Figure