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

通过三元组顺序敏感预训练增强SPARQL生成

Enhancing SPARQL Generation by Triplet-order-sensitive Pre-training

Chang Su, Jiexing Qi, He Yan, Kai Zou, Zhouhan Lin

AI总结:

针对预训练语言模型在文本转SPARQL任务中存在三元组翻转等语法错误的问题,提出结合三元组顺序校正目标与掩码语言建模的额外预训练阶段,提升模型对三元组顺序和SPARQL语法的敏感度,在三个基准上取得最优性能。

摘要:

将自然语言查询转换为SPARQL的语义解析对知识图谱问答(KGQA)系统至关重要。尽管T5等预训练语言模型已在文本转SPARQL任务中取得显著成功,但其生成的输出仍存在SPARQL语言特有的明显错误,例如三元组翻转。为应对这一挑战并进一步提升性能,我们提出了一个额外的预训练阶段,采用新的目标函数三元组顺序校正(TOC),结合常用的掩码语言建模(MLM),共同增强模型对三元组顺序和SPARQL语法的敏感度。我们的方法在三个广泛使用的基准上取得了最优性能。

英文摘要:

Semantic parsing that translates natural language queries to SPARQL is of great importance for Knowledge Graph Question Answering (KGQA) systems. Although pre-trained language models like T5 have achieved significant success in the Text-to-SPARQL task, their generated outputs still exhibit notable errors specific to the SPARQL language, such as triplet flips. To address this challenge and further improve the performance, we propose an additional pre-training stage with a new objective, Triplet Order Correction (TOC), along with the commonly used Masked Language Modeling (MLM), to collectively enhance the model's sensitivity to triplet order and SPARQL syntax. Our method achieves state-of-the-art performances on three widely-used benchmarks.

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

↑