GRIL: Knowledge Graph Retrieval-Integrated Learning with Large Language Models

Jialin Chen, Houyu Zhang, Seongjun Yun, Alejandro Mottini, Rex Ying, Xiang Song, Vassilis N. Ioannidis, Zheng Li, Qingjun Cui · DOI

Introduction: The Decoupling Problem in Graph RAG

Retrieval-Augmented Generation (RAG) has become a standard approach for reducing hallucinations in Large Language Models (LLMs). However, applying RAG to Knowledge Graphs (KGs) presents unique challenges. Most existing "Graph RAG" systems suffer from a "decoupling" problem: the retriever identifies facts based on simple semantic similarity without understanding the specific informational needs of the LLM for complex, multi-hop reasoning.

Furthermore, many current methods rely on "gold" entity annotations—knowing exactly which nodes in the graph lead to the answer—to train the retriever. In real-world, open-domain scenarios, these labels are often unavailable. Searching across massive KGs also introduces noise and scalability issues when exploring beyond a few hops from the starting point.

Methodology: The GRIL Framework

To address these issues, the authors introduce GRIL (Knowledge Graph Retrieval-Integrated Learning), which treats retrieval and reasoning as a single, differentiable pipeline.

The GRIL architecture: a differentiable pipeline for joint graph retrieval and LLM reasoning.

The architecture consists of three primary components:

  1. Attention-based Graph Retriever: Instead of a static search, this retriever iteratively "grows" a subgraph by exploring neighbors and "prunes" it by removing edges with low attention scores. This ensures the retrieved data remains succinct and relevant.
  2. The Bridge Module: To bridge the gap between graph structures and textual LLMs, GRIL uses a dual-encoding strategy. It generates soft graph tokens (using Self-Attention Graph pooling) to capture structural layout and verbalized triples (textual descriptions like “Entity A → relation → Entity B”) to capture semantic meaning.
  3. Joint Training with Implicit Feedback: The retriever is optimized using the LLM’s output logits as a supervision signal. If the LLM is confident in the correct answer, the retriever is rewarded for the subgraph it provided. This eliminates the need for predefined ground-truth entity labels.
  4. Complexity Assessment Module (CAM): A small MLP predicts how many "hops" a question requires, allowing the system to dynamically adjust its retrieval depth.

Experimental Setup and Datasets

GRIL was evaluated on three major benchmarks:

  • WebQuestionsSP (WebQSP): Standard KGQA requiring up to 2-hop reasoning.
  • Complex WebQuestions (CWQ): A more difficult set requiring up to 4-hop reasoning.
  • MedQA: A challenging open-domain medical exam dataset. For this, the authors curated a new KG from 18 medical textbooks, significantly improving answer coverage compared to older medical KGs.

Key Insights

  • LLM as the Teacher: By using LLM feedback to train the GNN retriever, the system learns to prioritize "usefulness for reasoning" over mere semantic similarity.
  • Efficiency through Structure: A small, BERT-level model equipped with GRIL can outperform a 7B parameter Llama model, suggesting that structured retrieval is a massive force multiplier for model efficiency.
  • The Power of Pruning: Ablation studies show that without the pruning mechanism, inference time spikes and accuracy drops. Knowing what to ignore is as important as knowing what to find.
  • Structural vs. Semantic: Performance is maximized when the LLM receives both the raw graph structure (via soft tokens) and the translated text (via verbalized triples).

Results

GRIL achieves state-of-the-art (SOTA) performance across multiple reasoning tasks.

Performance comparison of GRIL against GNN-only, LLM-only, and other RAG baselines on WebQSP and CWQ.

As shown in the table above, GRIL (8B) achieved 86.8% Hits@1 on WebQSP and 68.3% on CWQ, outperforming previous leaders like RoG and GNN-RAG. On the MedQA dataset, where most baseline models fail due to the lack of explicit entity labels, GRIL achieved 70.4% accuracy, beating specialized biomedical retrievers like BMRetriever.

Conclusion and Future Work

GRIL demonstrates that end-to-end integration of graph retrieval and LLM reasoning significantly improves performance and efficiency. Future work aims to create hybrid systems that dynamically decide when to use GNN-based retrieval for structured logic versus LLM-based retrieval for nuanced, unstructured text.

Summary updated

BibTeX
@misc{chen2025gril,
  author = {Jialin Chen and Houyu Zhang and Seongjun Yun and Alejandro Mottini and Rex Ying and Xiang Song and Vassilis N. Ioannidis and Zheng Li and Qingjun Cui},
  title = {{GRIL: Knowledge Graph Retrieval-Integrated Learning with Large Language Models}},
  year = {2025},
  eprint = {2509.16502},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.16502},
}
Figure