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

R^3-NL2GQL:一种面向自然语言到GQL转换的模型协同与知识图谱对齐方法

$R^3$-NL2GQL: A Model Coordination and Knowledge Graph Alignment Approach for NL2GQL

School of Computer Science, Fudan University(复旦大学计算机科学学院);Institute of Fintech, Fudan University(复旦大学金融科技研究院);School of Electronics and Information Engineering, Tongji University(同济大学电子与信息工程学院);Tandon School of Engineering, New York University(纽约大学坦登工程学院);DataGrand Inc.(数据堂公司)

Yuhang Zhou, Yu He, Siyu Tian, Yuchen Ni, Zhangyue Yin, Xiang Liu, Chuanjun Ji, Sen Liu, Xipeng Qiu, Guangnan Ye, Hongfeng Chai

AI总结:

本文提出R^3-NL2GQL方法,通过协同小型与大型基础模型完成排序、重写和精炼,并构建双语数据集以解决自然语言到GQL转换中数据稀缺及GQL多样性问题。

摘要:

尽管当前使用基础模型将自然语言转换为SQL(NL2SQL)的任务已取得显著成就,但将这些方法适配到将自然语言转换为图查询语言(NL2GQL)时仍面临障碍,原因在于GQL与SQL的本质差异以及GQL形式的多样性。我们摒弃传统的基于规则和槽位填充的方法,提出了一种新颖的方法R^3-NL2GQL,该方法整合了小型和大型基础模型,用于排序、重写和精炼任务。该方法利用较小模型在初始排序和重写阶段的可解释性优势,同时发挥较大模型在将自然语言查询最终转换为GQL格式方面更强的泛化能力和查询生成能力。针对这一新兴领域数据集稀缺的问题,我们构建了一个双语数据集,数据来源于图数据库手册和选定的开源知识图谱(KGs)。我们在该数据集上对该方法的评估结果表明其具有良好的有效性和鲁棒性。

英文摘要:

While current tasks of converting natural language to SQL (NL2SQL) using Foundation Models have shown impressive achievements, adapting these approaches for converting natural language to Graph Query Language (NL2GQL) encounters hurdles due to the distinct nature of GQL compared to SQL, alongside the diverse forms of GQL. Moving away from traditional rule-based and slot-filling methodologies, we introduce a novel approach, $R^3$-NL2GQL, integrating both small and large Foundation Models for ranking, rewriting, and refining tasks. This method leverages the interpretative strengths of smaller models for initial ranking and rewriting stages, while capitalizing on the superior generalization and query generation prowess of larger models for the final transformation of natural language queries into GQL formats. Addressing the scarcity of datasets in this emerging field, we have developed a bilingual dataset, sourced from graph database manuals and selected open-source Knowledge Graphs (KGs). Our evaluation of this methodology on this dataset demonstrates its promising efficacy and robustness.

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

↑