[論文レビュー] G-Retriever: Retrieval-Augmented Generation for Textual Graph Understanding and Question Answering
G-Retriever は GNNs、LLMs、および retrieval-augmented generation を組み合わせて、テキストグラフ上のチャット風QAを可能にし、幻覚を軽減し、PCSTベースのサブグラフ取得とグラフ prompting によって大規模グラフへスケールする。
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}}
研究の動機と目的
- GraphQA を導入する、一般常識推論、場面理解、知識グラフ推論を含む多様な実世界グラフQAベンチマーク。
- G-Retriever を提案する。 GNNs、LLMs、RAG を統合したグラフQAの取得強化生成フレームワーク。
- Prize-Collecting Steiner Tree 形式でグラフ上の RAG を実行することにより、幻覚を軽減しスケーラビリティに対処。
- G-Retriever が複数ドメインでベースラインを上回り、より大規模なグラフへスケールすることを示す。
- グラフエンコーディング、テキスト化グラフ、取得戦略などの構成要素への洞察とアブレーションを提供。
提案手法
- 事前学習済みLMを用いてノード/エッジ埋め込みをインデックス化し、最近傍構造に格納。
- コサイン類似度を用いたクエリ-およびグラフ認識の取得で、トップk の関連ノード/エッジを選択。
- 関連性から導出されたノード/エッジの賞を用いた Prize-Collecting Steiner Tree 最適化により、連結サブグラフを構築。
- retrieved subgraph をGATベースのグラフエンコーダーでエンコードし、LLM空間に射影し、サブグラフを prompting のためにテキスト化。
- グラフトークンとテキスト化グラフプロンプトに基づく凍結LLMで回答を生成し、グラフエンコーダと射影層(ソフト prompting)に勾配更新を許容。
- 推論のみ、プロンプトチューニング、および LoRA 微調整の各 regime で評価し、性能向上と幻覚低減を検証。
実験結果
リサーチクエスチョン
- RQ1テキストグラフ上の取得強化フレームワークは、LLM のみのベースラインと比べて複雑なQAを改善し、幻覚を減少させられるか。
- RQ2PCST ベースのサブグラフ取得は、関連性とグラフサイズのバランスを取り、スケーラブルな GraphQA に効果的か。
- RQ3異なる prompting / 微調整戦略は、テキストグラフのグラフベース取得とどのように相互作用するか。
- RQ4グラフのテキスト化とグラフエンコーダが最終的なQA 精度に与える影響はどの程度か。
主な発見
- G-Retriever は ExplaGraphs、SceneGraphs、WebQSP の推論のみベースラインを上回る。
- 凍結されたLLMとプロンプト調整を用いた取得可能な構成が、テキストのみプロンプトを上回る。
- G-Retriever と LoRA の組み合わせが SceneGraphs および WebQSP で最も良い性能を示す。
- グラフベースの取得はトークンとノードを大幅に削減し、効率を向上(例: SceneGraphs 83% のトークン削減;WebQSP 99% の削減)。
- G-Retriever は幻覚を大幅に緩和し、ベースラインと比較して有効なノード/エッジおよび完全に有効なグラフの顕著な改善を示す。
- アブレーションは、グラフエンコーダとテキスト化グラフからの重要な寄与を示す。ノード/エッジ取得を削除すると、特にエッジ取得で性能が劣化する。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。