G-Retriever: Retrieval-Augmented Generation for Textual Graph Understanding and Question Answering

Xiaoxin He, Yijun Tian, Yifei Sun, N. Chawla, T. Laurent, Yann LeCun, Xavier Bresson, Bryan Hooi

arXiv:2402.07630 · 2026-07-27 공개 · arXiv · PDF

llm retrieval-augmented knowledge-graph context-window scene-graph graph-ner graph-qa textual-graphs

Abstract

Given a graph with textual attributes, we enable users to `chat with their graph': that is, to ask questions about the graph using a conversational interface. In response to a user's questions, our method provides textual replies and highlights the relevant parts of the graph. While existing works integrate large language models (LLMs) and graph neural networks (GNNs) in various ways, they mostly focus on either conventional graph tasks (such as node, edge, and graph classification), or on answering simple graph queries on small or synthetic graphs. In contrast, we develop a flexible question-answering framework targeting real-world textual graphs, applicable to multiple applications including scene graph understanding, common sense reasoning, and knowledge graph reasoning. Toward this goal, we first develop a Graph Question Answering (GraphQA) benchmark with data collected from different tasks. Then, we propose our G-Retriever method, introducing the first retrieval-augmented generation (RAG) approach for general textual graphs, which can be fine-tuned to enhance graph understanding via soft prompting. To resist hallucination and to allow for textual graphs that greatly exceed the LLM's context window size, G-Retriever performs RAG over a graph by formulating this task as a Prize-Collecting Steiner Tree optimization problem. Empirical evaluations show that our method outperforms baselines on textual graph tasks from multiple domains, scales well with larger graph sizes, and mitigates hallucination.~\footnote{Our codes and datasets are available at: \url{https://github.com/XiaoxinHe/G-Retriever}}

한국어 요약

한 줄 요약

G-Retriever는 텍스트 속성 그래프에서 질의 응답을 위한 RAG 기반 프레임워크로, hallucination 저감과 확장성을 실현한다.

핵심 기여도

핵심 아이디어

기존 연구는 그래프 분류나 소규모 그래프에 집중했으나, G-Retriever는 대규모 텍스트 그래프에서 질의 응답을 가능하게 한다. 핵심 아이디어는 **LLM의 hallucination 문제를 해결하기 위해 RAG를 도입**하고, **Prize-Collecting Steiner Tree (PCST)** 최적화를 통해 그래프 내 관련 정보만 선택적으로 검색하는 것이다. 이는 기존 RAG가 단순 텍스트나 지식 그래프에만 적용된 것과 달리, **일반 텍스트 그래프 구조에 맞춘 새로운 접근법**이다. 또한, **Graph Transformer**와 **SentenceBert**를 결합하여 텍스트와 임베딩 형태로 그래프를 표현함으로써, 질의에 대한 이해도를 높인다.

기술적 접근법

주요 결과

의의 및 한계

G-Retriever는 텍스트 속성 그래프에서 질의 응답을 가능하게 하며, **LLM의 hallucination 문제를 완화**하고 **대규모 그래프 처리를 가능하게** 한다는 점에서 학술적·실용적 가치가 있다. 특히, **PCST 기반의 RAG**는 기존 방법과 차별화된 접근법으로, 그래프 구조를 고려한 정보 검색을 가능하게 한다. 그러나 현재 **정적 retrieval 구성요소**를 사용하고 있어, **동적 학습 가능한 RAG 구조**로의 확장이 필요하다는 한계가 있다.

실용적 활용

G-Retriever는 **지식 그래프 추론**, **실내 장면 이해**, **추천 시스템**, **전자상거래 네트워크 분석** 등 다양한 산업 분야에서 활용 가능하다. 특히, **대규모 텍스트 그래프를 처리해야 하는 상황**에서 유용하며, **사용자가 그래프와 대화형으로 상호작용**할 수 있도록 지원한다.