Query-Aware Graph Neural Networks for Enhanced Retrieval-Augmented Generation

Vibhor Agrawal, Fay Wang, Rishi Puri
7/25/2025
cs.IRcs.AI

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

We present a novel graph neural network (GNN) architecture for retrieval-augmented generation (RAG) that leverages query-aware attention mechanisms and learned scoring heads to improve retrieval accuracy on complex, multi-hop questions. Unlike traditional dense retrieval methods that treat documents as independent entities, our approach constructs per-episode knowledge graphs that capture both sequential and semantic relationships between text chunks. We introduce an Enhanced Graph Attention Network with query-guided pooling that dynamically focuses on relevant parts of the graph based on user queries. Experimental results demonstrate that our approach significantly outperforms standard dense retrievers on complex question answering tasks, particularly for questions requiring multi-document reasoning. Our implementation leverages PyTorch Geometric for efficient processing of graph-structured data, enabling scalable deployment in production retrieval systems

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{agrawal2025queryaware,
  title  = {Query-Aware Graph Neural Networks for Enhanced Retrieval-Augmented Generation},
  author = {Vibhor Agrawal and Fay Wang and Rishi Puri},
  year   = {2025},
  eprint = {2508.05647},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.05647v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.05647.svg)](https://codeofpaper.com/paper/2508.05647)

Discussion