Publication:

One Hop Closer to Chemistry Superintelligence: Leveraging Knowledge Graphs in Reinforcement Learning Models

datacite.rightsrestricted
dc.contributor.advisorJha, Niraj Kumar
dc.contributor.authorBehl, Kargil
dc.date.accessioned2026-07-22T15:11:17Z
dc.date.available2026-07-22T15:11:17Z
dc.date.issued2026
dc.description.abstractLarge language models (LLMs) excel with single-hop fact queries but struggle with multi-hop reasoning tasks in specialized scientific domains such as chemistry. We thus investigate whether grounding a model in structured relational knowledge from the onset can improve how it learns to reason across multiple steps. To do this, we extend the bottom-up domain-specific framework of Dedhia et al. to the chemical domain. Using the Chemical Entities of Biological Interest (ChEBI) ontology, we construct a curated knowledge graph (KG) of 53,226 nodes and 90,470 edges. Then, we enumerate all k-hop paths of length 1–3 from the filtered KG, yielding 158,036 paths. These paths are converted into multiple-choice question-answer (QA) pairs with step-by-step reasoning traces via Gemini 2.5 Flash, before being cross-validated by DeepSeek-V3. The resulting 119,006 validated 1- and 2-hop QA pairs are used to fine-tune Qwen2.5-7B-Instruct and Qwen2.5-14B-Instruct under a progressive hop-splitting paradigm, where models are trained on QA pairs derived from 1- and 2-hop paths and evaluated on unseen 3-hop chains. Supervised fine-tuning (SFT) yields consistent improvements of ~13 percentage points over baseline for both model sizes (38.8% → 52.1% for 7B; 42.8% → 57.0% for 14B) on a held-out test set of 13,499 3-hop questions. The 7B SFT model is refined via Group Relative Policy Optimization (GRPO) with KG-derived rewards combining binary correctness and path alignment signals, yielding 70.4% accuracy. Our results demonstrate that bottom-up KG-grounded curriculum learning improves generalization to longer-hop compositional reasoning tasks.
dc.identifier.urihttps://theses-dissertations.princeton.edu/handle/88435/dsp017m01bq20w
dc.language.isoen_US
dc.titleOne Hop Closer to Chemistry Superintelligence: Leveraging Knowledge Graphs in Reinforcement Learning Models
dc.typePrinceton University Senior Theses
dspace.entity.typePublication
dspace.workflow.startDateTime2026-04-12T19:55:59.531Z
pu.contributor.authorid920317833
pu.date.classyear2026
pu.departmentElectrical and Computer Engineering

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Kargil_Behl__Senior_Thesis.pdf
Size:
1.26 MB
Format:
Adobe Portable Document Format
Download

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
100 B
Format:
Item-specific license agreed to upon submission
Description:
Download