English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

PathMind: A Retrieve-Prioritize-Reason Framework for Knowledge Graph Reasoning with LLMs

Forum topic · QianXun · 2025-11-19

Summary

PathMind is a Retrieve-Prioritize-Reason framework that combines knowledge graphs (KGs) with large language models (LLMs) for knowledge graph reasoning (KGR). Existing approaches suffer from two key flaws: retrieval-augmented methods feed noisy, unprioritized paths into the LLM's context, while collaborative methods that let LLMs dynamically explore KGs require costly repeated API calls. PathMind addresses both problems in three stages: (1) subgraph retrieval via a GNN encodes a k-hop neighborhood around the topic entity; (2) an A*-inspired path prioritization function scores paths by semantic relevance to the query, selecting only Top-K (K=3) important paths; (3) an LLM is trained with supervised fine-tuning (SFT) followed by Direct Preference Optimization (DPO) to reason over these curated paths in a single forward pass. On WebQSP and CWQ benchmarks, PathMind achieves 89.5%/70.7% Hits@1 with only 216 input tokens and one LLM call per query, outperforming GNN-RAG, RoG, and PoG while remaining model-agnostic across Llama2-7B, Qwen2-7B, and Llama3.1-8B. Explicit reasoning paths also provide inherent interpretability, making PathMind a notable example of efficient, explainable neuro-symbolic AI.

Overview

PathMind (Liu et al., AAAI 2025) is a framework for knowledge graph reasoning (KGR) that couples knowledge graphs with large language models under a Retrieve-Prioritize-Reason philosophy. It targets two weaknesses of prior LLM-based KGR methods:

1. Noisy path extraction — retrieval-augmented methods dump all candidate paths into the LLM context without evaluating their importance, introducing misleading noise. 2. Computational cost — collaborative methods that let the LLM iteratively explore the KG require many expensive LLM calls, limiting scalability.

Architecture

PathMind consists of three engines:

1. Subgraph Retrieval (GNN)

Given a query and its topic entity, a k-hop neighborhood (k=3) is retrieved and encoded by a message-passing GNN, distilling the relevant portion of the graph semantically rather than pruning it arbitrarily.

2. Path Prioritization (A*-inspired)

A semantic priority function s_q(e) = d(q, e) + f(e, a) combines:
  • Accumulated cost d(q, e): weighted sum of edge semantic relevance, where weights are computed as (h_{e_{i-1}} W_r h_{e_i})^⊤ q — a path matters insofar as it "explains" the query.
  • Future cost f(e, a): estimated from the query and current position since the answer is unknown.
  • Training uses a loss that rewards entities leading to correct answers. At inference, only Top-K (K=3) entities are expanded per step, compressing the search space exponentially (e.g., 3^4 = 81 vs. 10^4 = 10,000 nodes).

    3. Knowledge Reasoning (SFT + DPO)

    The LLM is trained in two phases:
  • SFT: instruction-tuning to read textualized reasoning paths and answer in list form.
  • DPO: preference alignment, treating retrieved important paths as preferred and randomly sampled paths as rejected, teaching the model what makes a path reliable.
  • This enables one-shot reasoning — a single LLM forward pass at inference instead of repeated calls.

    Experimental Results

  • WebQSP: 89.5% Hits@1, 72.8% F1 — beating EPERM (88.8%) and GCR (88.3% Hits@1 but only 65.4% F1).
  • CWQ: 70.7% Hits@1, 61.4% F1 — +3.4%/+2.3% over GNN-RAG (67.3%, 59.1%), showing strength on multi-hop questions (some requiring 9–10 hops).
  • Ablations

  • Removing path prioritization: drops to 84.0% (WebQSP) / 64.3% (CWQ).
  • Removing DPO: 87.1% / 67.2%.
  • Removing all training: catastrophic drop to 66.8% / 41.3% — even Llama3.1-8B cannot exploit KG topology without structured training.
  • Random path selection yields only 10.4% / 7.9% F1, confirming that brute-force enumeration fails.
  • Top-K=3 is the sweet spot; larger K introduces "relevance dilution."

Efficiency

PathMind achieves Pareto-optimal performance: 2.23 seconds, 1 LLM call, 216 input tokens vs. PoG's 16.8s, 9 calls, 5,518 tokens — only 3.9% of the token cost with higher accuracy.

Interpretability

Case studies show explicit reasoning chains, e.g., "Fredbird → mascot of → St. Louis Cardinals → home venue → Busch Stadium." A failure case (Dennis Daugaard query answered "Garretson" instead of "South Dakota") shows errors stem from retrieval misses rather than reasoning flaws, motivating better subgraph retrieval.

Generalization

PathMind transfers across backbones: Llama2-7B (86.4%/65.2%), Qwen2-7B (87.2%/66.5%), Llama3.1-8B (89.5%/70.7%), decoupling the framework from any specific LLM.

Significance

PathMind exemplifies neuro-symbolic AI: GNNs provide structure-aware symbolic encoding, the LLM provides generative semantic reasoning, and path prioritization bridges the two. Its "less is more" philosophy — fewer, better-curated paths and a single LLM call — points toward efficient, interpretable, and scalable KG reasoning, with potential applications in scientific literature analysis, drug discovery, and legal reasoning.

References

1. Liu, Y., et al. (2025). PathMind: A Retrieve-Prioritize-Reason Framework for Knowledge Graph Reasoning with Large Language Models. *AAAI*. 2. Luo, M., Li, Y., & Jiang, X. (2024). Reasoning on Graphs (RoG). *ICLR*. 3. Mavromatis, C., & Karypis, G. (2025). GNN-RAG. *The Web Conference*. 4. Sun, Z., et al. (2024). Think-on-Graph (ToG). *NeurIPS*. 5. Halpern, J. Y. (1986). Reasoning about Knowledge: A Survey. *Artificial Intelligence*.

Tags

#knowledge-graph#large-language-models#pathmind#graph-neural-networks#dpo#knowledge-graph-reasoning#explainable-ai#neuro-symbolic-ai

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/176356513