arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.00845cs.DBcs.AIcs.CL
收藏

带有约束引导的大语言代理的图查询生成

Graph Query Generation with Constraint-guided Large Language Agents

Case Western Reserve University(凯斯西储大学);Amazon(亚马逊);Meta

Mengying Wang, Nicolaas Jedema, Rahul Pandey, RaviKiran Krishnan, Jens Lehmann, Yinghui Wu

AI总结:

本文提出UniQGen框架,利用大语言模型动态提取和优化图查询子句,提升查询准确性和效率,在多个基准测试中表现优异,适用于企业级知识图谱问答。

摘要:

知识图谱问答(KGQA)通过结构化查询生成取得进展,但大多数研究集中在RDF/SPARQL上,而Cypher和属性图受到忽视。本文提出UniQGen,一种基于约束的框架,利用LLM代理动态提取和优化图查询子句,生成可执行的意图对齐图查询。方法基于Chase与Backchase算法的变种,扩展了查询约束的动态推理过程,与LLM交互以估计查询质量。在Amazon Neptune上部署支持Cypher的Freebase图,对GraphQ、GrailQA和WebQSP等基准进行评估,证明UniQGen在准确性和效率上优于现有方法,F1分数在GraphQ上提升31.6%,在GrailQA上提升4.9%。与传统方法不同,本框架无需针对模式匹配微调,更适用于无模式图和语义查询工作负载,更适合企业级KGQA。释放Cypher输出和Neptune准备的Freebase快照以支持可重复的跨语言KGQA研究。

英文摘要:

Knowledge Graph Question Answering (KGQA) has advanced through structured query generation, yet most efforts target RDF/SPARQL, leaving Cypher and property graphs underexplored, despite increasing demand for unified KGQA in industry settings. We propose UniQGen, a novel constraint-based framework that employs LLM agents to dynamically extract and refine representative graph query clauses into executable, intent-aligned graph queries across query languages. The foundation of our method is a variant of Chase & Backchase, a family of algorithms for query optimization and reformulation. We extend Chase & Backchase with a dynamic reasoning process over query constraints that also interact with LLMs for query quality estimation. With a Cypher-supported Freebase graph deployed on Amazon Neptune, we extensively evaluate our approach on popular KGQA benchmarks (GraphQ, GrailQA, and WebQSP). We demonstrate that UniQGen outperforms state-of-the-art graph query generation techniques in both accuracy and efficiency, with F1 gains of 31.6% on GraphQ and 4.9% on GrailQA. Unlike prior methods, our framework does not require fine-tuning for schema matching, making it more extensible to schema-less graphs and semantics in query workloads, and is more suitable for enterprise-grade KGQA. We release Cypher outputs and a Neptune-ready Freebase snapshot to support reproducible, cross-language KGQA research.

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

↑