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

多轮自然语言到图查询语言翻译

Multi-turn Natural Language to Graph Query Language Translation

East China Normal University(东华师范大学);AISpeech;Zhejiang University(浙江大学)

Yuanyuan Liang, Lei Pan, Tingyu Xie, Yunshi Lan, Weining Qian

AI总结:

针对现有NL2GQL研究多限于单轮转换且缺乏多轮数据集的问题,提出基于大语言模型自动构建多轮NL2GQL数据集MTGQL,并设计三类基线方法评估效果,为多轮图查询翻译研究奠定基础。

摘要:

近年来,将自然语言转化为图查询语言(NL2GQL)的研究日益增多。现有大多数方法侧重于从自然语言到图查询语言的单轮转换。在实际应用中,用户与图数据库的交互通常是多轮、动态且依赖上下文的。虽然单轮方法能够处理简单直接的查询,但在更复杂的场景中,用户往往需要在多轮对话中迭代调整查询、探究实体间的联系或请求额外的细节。专注于单轮转换的研究无法有效应对多轮对话和复杂的上下文依赖。此外,高质量多轮NL2GQL数据集的稀缺进一步阻碍了该领域的发展。为应对这一挑战,我们提出了一种基于大语言模型(LLMs)的自动化构建多轮NL2GQL数据集的方法,并应用该方法开发了MTGQL数据集,该数据集基于金融市场图数据库构建,将公开发布以供未来研究使用。此外,我们提出了三类基线方法以评估多轮NL2GQL翻译的有效性,从而为未来研究奠定坚实基础。

英文摘要:

In recent years, research on transforming natural language into graph query language (NL2GQL) has been increasing. Most existing methods focus on single-turn transformation from NL to GQL. In practical applications, user interactions with graph databases are typically multi-turn, dynamic, and context-dependent. While single-turn methods can handle straightforward queries, more complex scenarios often require users to iteratively adjust their queries, investigate the connections between entities, or request additional details across multiple dialogue turns. Research focused on single-turn conversion fails to effectively address multi-turn dialogues and complex context dependencies. Additionally, the scarcity of high-quality multi-turn NL2GQL datasets further hinders the progress of this field. To address this challenge, we propose an automated method for constructing multi-turn NL2GQL datasets based on Large Language Models (LLMs) , and apply this method to develop the MTGQL dataset, which is constructed from a financial market graph database and will be publicly released for future research. Moreover, we propose three types of baseline methods to assess the effectiveness of multi-turn NL2GQL translation, thereby laying a solid foundation for future research.

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

↑