NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Align-GRAG: Reasoning-Guided Dual Alignment for Graph Retrieval-Augmented Generation

Derong Xu, Pengyue Jia, Xiaopeng Li, Yingyi Zhang, Maolin Wang, Qidong Liu, Xiangyu Zhao, Yichao Wang, Huifeng Guo, Ruiming Tang, Enhong Chen, Tong Xu · DOI

TL;DR

This paper introduces Align-GRAG, a novel framework that enhances Large Language Models (LLMs) for knowledge-intensive tasks by improving how they retrieve and utilize information from knowledge graphs. By aligning graph representations with LLM semantics and intelligently pruning irrelevant information, Align-GRAG significantly boosts accuracy and efficiency in graph-grounded generation.

What Problem Does This Paper Address?

Large Language Models (LLMs) are powerful, but they often "hallucinate" or rely on outdated information, making them unreliable for critical applications. Retrieval-Augmented Generation (RAG) helps by grounding LLM outputs in external knowledge. Graph-based RAG (GRAG) takes this further by retrieving entire subgraphs, preserving relationships between entities. However, GRAG faces two main hurdles:

  1. Structure-Coupled Irrelevant Knowledge: When retrieving subgraphs, especially from dense knowledge graphs, the process can pull in many "neighboring" nodes that are structurally close but semantically irrelevant to the specific reasoning task. This "noise" can bloat the input and hinder the LLM's performance.
  2. Structure-Reasoning Discrepancy: There's a fundamental mismatch between how graph encoders represent information (structural signals) and how LLMs process it (sequential semantics). This gap makes it difficult for LLMs to effectively leverage the rich structural information within graphs.

Methods

Align-GRAG tackles these challenges with a two-pronged approach:

  1. Anchor and Rationale Extraction: The authors leverage a powerful LLM (Llama-3.1-70B-Instruct) to extract two key pieces of information from a given question-answer pair and an initial subgraph:
  2. Rationale Chain: A step-by-step reasoning path that connects the question to the answer, highlighting intermediate concepts.
  3. Anchors: Key entities or relations that are crucial for the reasoning and can be directly mapped to graph nodes or edges.
  4. Guided Dual Alignment: These extracted anchors and rationales then supervise a novel "Aligner" module. This module performs two crucial alignment tasks:
  5. Node-Level Alignment: Uses anchors to identify and prioritize critical nodes and edges, effectively pruning irrelevant information. This is achieved by minimizing the KL divergence between predicted node importance scores and anchor-based scores.
  6. Graph-Level Alignment: Bridges the gap between graph and language representations. It uses contrastive learning to align graph embeddings with text embeddings derived from the rationale chains, creating a unified semantic space. This helps the LLM better understand and utilize the graph's structure.

The output of the Aligner is a compact, structure-preserving subgraph that is then fed to the LLM for generation.

Datasets

The experiments were conducted on the GraphQA benchmark, which comprises three datasets:

  • ExplaGraphs: For commonsense reasoning, focusing on generating explanation graphs to predict stances in debates.
  • SceneGraphs: For visual scene understanding, providing detailed descriptions of objects, attributes, and relationships within an image.
  • WebQSP: A large-scale, multi-hop knowledge graph question-answering dataset built on Freebase.

Key Insights and Ideas

  • LLMs as Reasoning Guides: The paper ingeniously uses LLMs not just for generation but also to guide the retrieval and alignment process by extracting crucial reasoning signals (anchors and rationales). This is a powerful demonstration of LLMs' meta-reasoning capabilities.
  • Dual Alignment is Key: The success of Align-GRAG hinges on the synergistic effect of both node-level pruning and graph-level semantic alignment. Neither component alone is sufficient; they work together to create a more focused and semantically coherent input for the LLM.
  • Pruning is a Trade-off: The study highlights that while pruning irrelevant nodes is crucial for efficiency and accuracy, there's a delicate balance. Too little pruning leaves noise, while too much can remove essential information, leading to performance degradation. The optimal number of seed nodes for pruning was found to be around 25.
  • Alignment Degree Matters: The effectiveness of the alignment process is sensitive to the training duration. An optimal "Align Degree" (training steps) exists, beyond which overfitting can occur and negatively impact performance.

Key Results

Align-GRAG consistently outperformed 18 strong baselines across all three datasets in the GraphQA benchmark, demonstrating significant gains in accuracy.

  • Overall Performance: The paper reports state-of-the-art performance, with notable improvements on WebQSP.
  • Efficiency: The structure-aware pruning mechanism significantly reduces the number of tokens processed, leading to faster inference times. For example, with a moderate number of seed nodes, Align-GRAG used only 27.11% of the tokens compared to G-Retriever, while maintaining comparable or better performance.
  • Generalization: Align-GRAG showed robust generalization across different GNN architectures (GraphTransformer, GAT, GCN) and LLM backbones (Llama-2, Llama-3, Qwen), indicating its broad applicability.

Limitations and Future Work

  • Scalability to Larger LLMs: Due to resource constraints, experiments were not conducted on larger LLMs, leaving their effectiveness on more powerful models uncertain.
  • Closed-Source Models: The method's reliance on internal graph embeddings means it cannot be directly applied to closed-source LLMs without access to their internal representations.
  • Ethical Considerations: While Align-GRAG reduces hallucination, it can still produce misleading answers if the retrieved subgraphs are incomplete or noisy, or if the LLM's extracted anchors/rationales are weakly grounded. The pipeline's reliance on LLMs for extraction means biases and errors can propagate.

Future work could explore the scalability of Align-GRAG with larger LLMs and develop techniques for adapting it to closed-source environments.

Summary updated

BibTeX
@misc{xu2025align,
  author = {Derong Xu and Pengyue Jia and Xiaopeng Li and Yingyi Zhang and Maolin Wang and Qidong Liu and Xiangyu Zhao and Yichao Wang and Huifeng Guo and Ruiming Tang and Enhong Chen and Tong Xu},
  title = {{Align-GRAG: Reasoning-Guided Dual Alignment for Graph Retrieval-Augmented Generation}},
  year = {2025},
  eprint = {2505.16237},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.16237},
}
Figure