通过约束语言模型和视觉编辑进行自然语言图形查询
Graph Queries from Natural Language using Constrained Language Models and Visual Editing
AI总结:
本文提出了一种通过自然语言和视觉编辑生成知识图谱查询的方法,利用约束语言模型生成原型图,并在本体约束下生成有效SPARQL查询。
摘要:
使用本体进行知识库查询通常是通过专用查询语言、问答系统或知识图谱的视觉查询编辑器完成的。我们提出了一种新的方法,使用户可以通过自然语言指定原型图并对其进行视觉编辑来查询知识图谱。这种方法使非专业人士能够在不了解本体和特定查询语言的情况下制定查询。我们的方法通过利用基于本体内语义相似特征的两步约束语言模型生成,将自然语言转换为这些原型图。所生成的原型图成为进一步在专用视觉查询构建器中进行用户细化的基础。我们的方法在本体约束下始终能够生成有效的SPARQL查询,而无需对语法或类和链接进行任何额外的修正。与相关语言模型方法不同,后者往往需要多次迭代来修复无效语法、不存在的类和链接,我们的方法能够实现一致的结果。我们通过图检索在合成查询上评估了系统性能,比较了多种指标、模型和本体。我们进一步通过初步用户研究验证了系统。通过利用我们的约束流程,我们表明系统能够比其他方法更高效地使用更高效的模型进行高效和准确的检索。
英文摘要:
Querying knowledge bases using ontologies is usually performed using dedicated query languages, question-answering systems, or visual query editors for Knowledge Graphs. We propose a novel approach that enables users to query the knowledge graph by specifying prototype graphs in natural language and visually editing them. This approach enables non-experts to formulate queries without prior knowledge of the ontology and specific query languages. Our approach converts natural language to these prototype graphs by utilizing a two-step constrained language model generation based on semantically similar features within an ontology. The resulting prototype graph serves as the building block for further user refinements within a dedicated visual query builder. Our approach consistently generates a valid SPARQL query within the constraints imposed by the ontology, without requiring any additional corrections to the syntax or classes and links used. Unlike related language models approaches, which often require multiple iterations to fix invalid syntax, non-existent classes, and non-existent links, our approach achieves this consistently. We evaluate the performance of our system using graph retrieval on synthetic queries, comparing multiple metrics, models, and ontologies. We further validate our system through a preliminary user study. By utilizing our constrained pipeline, we show that the system can perform efficient and accurate retrieval using more efficient models compared to other approaches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。