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

面向自然语言转SPARQL的反思性组合接地

Reflective Compositional Grounding for Natural-Language-to-SPARQL

Idiap Research Institute(伊迪亚普研究所);EPFL(洛桑联邦理工学院);Merck KGaA(默克KGaA)

Isabelle Mohr, John Dujany, Andre Freitas

AI总结:

针对自然语言转SPARQL的词汇问题,提出NL2SPARQL框架,通过概念编码器、语义排序与反思性细化提升性能,在五个基准上召回率@10达0.837,提示重写可提升答案F1。

摘要:

针对大型知识图谱的自然语言查询生成,体现了人机交互中经典的词汇问题:问题通过措辞和组合表达概念,与目标模式存在显著差异,而有限的模型上下文要求选择性访问模式信息。我们提出NL2SPARQL框架,将概念组合置于查询解释的核心,并将其与绑定和查询构建所需的关系组合关联。固定概念编码器联合表示复合表达式,通过语义相似度、类型兼容性和层次邻近度对模式候选进行排序。反思性细化关键考察接地含义如何通过参数绑定、连接和算子范围实现,诊断出的语义差异指导对负责阶段的修正。我们形式化了单调细化准则,该准则累积范围解释要求,并确立组合过程的变更保留先前验证解释的条件。在五个基准/知识图谱目标上,平均模式召回率@10从0.712提升至0.837;在检索固定的情况下,反思性提示重写使答案F1提升2.27-3.33个百分点。这些实验评估了接地和细化机制,而形式分析明确了跨查询保守适应的更强要求。

英文摘要:

Natural-language query generation over large knowledge graphs embodies the classical vocabulary problem in human-systems communication. Questions express concepts through wording and compositions that can differ substantially from the target schema, while limited model context requires selective access to schema information. We present an NL2SPARQL framework that places conceptual compositionality at the center of query interpretation and connects it to the relational composition required for binding and query construction. A fixed concept encoder represents compound expressions jointly, and schema candidates are ranked using semantic similarity, type compatibility, and hierarchy proximity. Reflective refinement critically examines how the grounded meanings are realized through argument bindings, joins, and operator scope. Diagnosed semantic discrepancies guide revisions to the responsible stage. We formalise a monotone refinement discipline that accumulates scoped interpretation requirements and establish conditions under which changes to the composed process preserve previously validated interpretations. Across five benchmark/knowledge-graph targets, mean schema recall@10 increases from 0.712 to 0.837. With retrieval held fixed, reflective prompt rewriting adds 2.27-3.33 answer-F1 points. These experiments evaluate the grounding and refinement mechanisms, while the formal analysis specifies the stronger requirements for conservative adaptation across queries.

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

↑