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

SLFNet:利用语义概率图从自然语言生成语义逻辑形式

SLFNet: Generating Semantic Logic Forms from Natural Language Using Semantic Probability Graphs

School of Computer Science and Technology, University of Science and Technology of China(中国科学技术大学计算机科学与技术学院)

Hao Wu, Fan Xu

AI总结:

SLFNet通过引入依存句法先验、语义概率图和多头SLF注意力机制,解决序列到序列语义解析中的“顺序问题”,在多个数据集上取得领先性能。

摘要:

构建自然语言接口通常使用语义解析器解析用户的自然语言,并将其转换为结构化的语义逻辑形式(SLFs)。主流方法是采用序列到序列框架,该框架要求自然语言命令和SLFs必须以串行方式表示。由于单个自然语言可能对应多个SLFs,或者多个自然语言命令可能对应同一个SLF,训练序列到序列模型对它们之间的选择较为敏感,这一现象被记录为“顺序问题”。为了解决这个问题,我们提出了一种新颖的神经网络SLFNet,它首先引入依存句法信息作为先验知识,并能够捕获上下文信息与词语之间的长距离交互。其次构建语义概率图以获得预测变量之间的局部依赖关系。最后我们提出了多头SLF注意力机制,基于序列到槽位的方法从自然语言命令合成SLFs。实验表明,SLFNet在ChineseQCI-TS和Okapi数据集上取得了最先进的性能,并在ATIS数据集上取得了具有竞争力的性能。

英文摘要:

Building natural language interfaces typically uses a semantic parser to parse the user's natural language and convert it into structured \textbf{S}emantic \textbf{L}ogic \textbf{F}orms (SLFs). The mainstream approach is to adopt a sequence-to-sequence framework, which requires that natural language commands and SLFs must be represented serially. Since a single natural language may have multiple SLFs or multiple natural language commands may have the same SLF, training a sequence-to-sequence model is sensitive to the choice among them, a phenomenon recorded as "order matters". To solve this problem, we propose a novel neural network, SLFNet, which firstly incorporates dependent syntactic information as prior knowledge and can capture the long-range interactions between contextual information and words. Secondly construct semantic probability graphs to obtain local dependencies between predictor variables. Finally we propose the Multi-Head SLF Attention mechanism to synthesize SLFs from natural language commands based on Sequence-to-Slots. Experiments show that SLFNet achieves state-of-the-art performance on the ChineseQCI-TS and Okapi datasets, and competitive performance on the ATIS dataset.

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

↑