让大模型像探险一样在图上推理,边找路径边生成答案。
Reasoning by Exploration: A Unified Approach to Retrieval and Generation over Graphs
- 将图推理视为探索过程,动态选择节点和边构建路径
- 在基准数据集上显著优于基线模型,且对未见图泛化能力强
- 分两阶段训练:先监督微调,再强化学习提升探索效率
大型语言模型在结构化图上的推理仍是核心挑战,尤其在大规模图上。现有方法多采用检索增强生成(RAG)范式:先检索与查询相关的子图,再基于检索结果生成答案。但这类两阶段流程难以忠实利用图结构,因生成受限于检索子图的质量与完整性。尽管近期提出多种先进检索器,但通常仅针对训练图设计,对未见图泛化能力差,实用性受限。本文提出推理探索(RoE),将图上推理统一为图探索过程:每一步由大模型选择待探索的节点和边,逐步构建推理路径并同步生成答案。为实现高效探索,RoE采用两阶段训练:先在真实推理路径上进行监督微调(SFT),再通过强化学习(RL)提升探索效果与泛化能力。在基准数据集上的实验表明,RoE在整体性能上显著超越基线,同时能有效泛化至未见图。
原文摘要 · Abstract (English)
Reasoning over structured graphs remains a fundamental challenge for Large Language Models (LLMs), particularly when scaling to large graphs. Existing approaches typically follow the retrieval-augmented generation (RAG) paradigm: first retrieving subgraphs relevant to the query and then generating answers conditioned on the retrieved subgraphs. However, such two-phase pipelines often struggle to faithfully incorporate graph structure, since the generation process is ultimately constrained by the quality and completeness of the retrieved subgraph. Although many advanced retrievers have been proposed recently to mitigate this issue, they are usually tailored to the training graphs and generalize poorly to unseen graphs, which limits their practical applicability. In this work, we propose Reasoning by Exploration (RoE), a novel approach that unifies retrieval and generation by framing reasoning over graphs as a process of graph exploration. At each step, the LLM selects candidate nodes and edges to explore, gradually constructing reasoning paths and generating answers along the way. To enable effective exploration, RoE is trained in two stages: supervised fine-tuning (SFT) on gold reasoning paths, followed by reinforcement learning (RL) to enhance exploration effectiveness and generalization. Experiments on benchmark datasets demonstrate that RoE achieves substantial overall improvements over baselines, while also generalizing effectively to unseen graphs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。