arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.26645cs.CL
收藏

有界路径上下文:基于LLM的知识图谱问答中可见路径历史的受控研究

Bounded Path Context: A Controlled Study of Visible Path History in LLM-Based Knowledge Graph Question Answering

School of Mathematical Sciences(数学科学学院);Xiamen University(厦门大学);School of Informatics(信息学院)

Xihang Shan, Ye Luo

AI总结:

本文提出有界路径上下文(BPC)方法,通过将完整路径存储在符号记忆中,仅暴露最近K跳路径给关系选择提示,在WebQSP和CWQ数据集上使用Qwen3.5-9B-AWQ模型达到或超过全历史提示的性能,同时减少输入token。

摘要:

基于LLM的知识图谱问答(KGQA)将图遍历委托给语言模型,将每个问题转化为一系列局部关系选择决策,这些决策在多个波束和跳数上重复。一个常见但未经测试的默认做法是将完整的部分路径序列化到每个路由提示中,尽管控制器已经以精确符号状态维护了该路径。有界路径上下文(BPC)解耦了这两个角色:控制器在符号记忆中保留完整路径用于答案提取和审计,而关系选择提示仅暴露问题、当前实体、候选关系以及最多最后K跳。对K进行受控扫描——固定图邻域、波束预算、深度、解码和答案提取格式——表明,在完整的WebQSP和CWQ测试集上,使用Qwen3.5-9B-AWQ模型,有界历史匹配或超过全历史提示:K=1在WebQSP上达到0.487的答案集F1,而全历史为0.472;K=0在CWQ上达到0.287,而全历史为0.274,同时输入token分别减少9.7%和12.1%。在4B规模下,K=1在两个基准上仍然是最强设置。逐示例分析显示,71-84%的示例不受历史长度影响,而受影响的案例揭示了先前跳数何时起到消歧作用或分散注意力。这些结果表明,路径序列化长度更适合作为可调接口变量,而不是基于LLM的图控制器中的默认假设。

英文摘要:

LLM-based knowledge-graph question answering (KGQA) delegates graph traversal to language models, turning each question into a sequence of local relation-selection decisions repeated across beams and hops. A common but untested default is to serialize the complete partial path into every routing prompt, even though the controller already maintains this path as exact symbolic state. Bounded Path Context (BPC) decouples these two roles: the controller retains full paths in symbolic memory for answer extraction and audit, while the relation-selection prompt exposes only the question, the current entity, outgoing relation candidates, and at most the last K hops. A controlled sweep over K -- fixing graph neighborhoods, beam budget, depth, decoding, and answer-extraction format -- shows that bounded histories match or exceed full-history prompting on complete WebQSP and CWQ test sets with Qwen3.5-9B-AWQ: K=1 achieves 0.487 answer-set F1 on WebQSP versus 0.472 for full history, and K=0 reaches 0.287 on CWQ versus 0.274, with 9.7% and 12.1% fewer input tokens respectively. At the 4B scale, K=1 remains the strongest setting on both benchmarks. Per-example analysis reveals that 71-84% of examples are unaffected by history length, while the affected cases expose when prior hops disambiguate versus distract. These results suggest that path serialization length is better treated as a tunable interface variable than as a default assumption in LLM-based graph controllers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑