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

集成多头卷积编码器与交叉注意力以改进SPARQL查询翻译

Integrating Multi-Head Convolutional Encoders with Cross-Attention for Improved SPARQL Query Translation

Chang Gung University(长庚大学);National Chung Hsing University(国立中兴大学)

Yi-Hui Chen, Eric Jui-Lin Lu, Kwan-Ho Cheng

AI总结:

本文提出基于n-gram语言模型的多头卷积编码器(MHC编码器),结合卷积层与多头注意力改进SPARQL查询翻译,在QALD-9和LC-QuAD-1.0数据集上取得领先性能。

摘要:

KGQA系统(Knowledge Graph Question Answering,知识图谱问答)的主要任务是将用户输入的问题转换为查询语法(如SPARQL)。随着Transformer和ConvS2S等现代流行编码器和解码器的兴起,许多学者将SPARQL生成的研究方向转向了神经机器翻译(NMT)架构或Text-to-SPARQL的生成式AI领域。在基于NMT的问答系统中,系统将知识库查询语法视为一种语言,并使用基于NMT的翻译模型将自然语言问题翻译为查询语法。学者们使用配备交叉注意力的流行架构(如Transformer、ConvS2S和BiLSTM)来训练查询语法的翻译模型。为了获得更好的查询结果,本文改进了ConvS2S编码器并加入了来自Transformer的多头注意力,提出了一种基于n-gram语言模型的多头卷积编码器(Multi-Head Conv encoder,MHC编码器)。其原理是使用卷积层以不同的感受野捕获输入序列中的局部隐藏特征,并使用多头注意力计算它们之间的依赖关系。最终,我们发现基于多头卷积编码器的翻译模型取得了优于其他编码器的性能,在QALD-9和LC-QuAD-1.0数据集上分别获得了76.52%和83.37%的BLEU-1(BiLingual Evaluation Understudy,双语评估替补)分数。此外,在QALD-9和LC-QuAD-1.0数据集上的端到端系统实验中,我们取得了优于其他KGQA系统的领先结果,Macro F1-measure分别达到了52%和66%。此外,实验结果表明,在计算资源有限的情况下,如果拥有优秀的编码器-解码器架构和交叉注意力,专家和学者仅使用通用嵌入即可取得与大预训练模型相当的出色性能。

英文摘要:

The main task of the KGQA system (Knowledge Graph Question Answering) is to convert user input questions into query syntax (such as SPARQL). With the rise of modern popular encoders and decoders like Transformer and ConvS2S, many scholars have shifted the research direction of SPARQL generation to the Neural Machine Translation (NMT) architecture or the generative AI field of Text-to-SPARQL. In NMT-based QA systems, the system treats knowledge base query syntax as a language. It uses NMT-based translation models to translate natural language questions into query syntax. Scholars use popular architectures equipped with cross-attention, such as Transformer, ConvS2S, and BiLSTM, to train translation models for query syntax. To achieve better query results, this paper improved the ConvS2S encoder and added multi-head attention from the Transformer, proposing a Multi-Head Conv encoder (MHC encoder) based on the n-gram language model. The principle is to use convolutional layers to capture local hidden features in the input sequence with different receptive fields, using multi-head attention to calculate dependencies between them. Ultimately, we found that the translation model based on the Multi-Head Conv encoder achieved better performance than other encoders, obtaining 76.52\% and 83.37\% BLEU-1 (BiLingual Evaluation Understudy) on the QALD-9 and LC-QuAD-1.0 datasets, respectively. Additionally, in the end-to-end system experiments on the QALD-9 and LC-QuAD-1.0 datasets, we achieved leading results over other KGQA systems, with Macro F1-measures reaching 52\% and 66\%, respectively. Moreover, the experimental results show that with limited computational resources, if one possesses an excellent encoder-decoder architecture and cross-attention, experts and scholars can achieve outstanding performance equivalent to large pre-trained models using only general embeddings.

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

↑