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

多轮Text-to-SQL的解耦对话建模与语义解析

Decoupled Dialogue Modeling and Semantic Parsing for Multi-Turn Text-to-SQL

Shanghai Jiao Tong University(上海交通大学);State Key Lab of Media Convergence Production Technology and Systems(媒体融合生产技术与系统国家重点实验室)

Zhi Chen, Lu Chen, Hanqi Li, Ruisheng Cao, Da Ma, Mengyue Wu, Kai Yu

摘要:

最近,Text-to-SQL的多轮对话引起了极大的兴趣。在这里,给定所有先前的对话历史,当前回合的用户输入被解析为适当数据库的相应SQL查询。目前的方法大多采用端到端模型,因此面临两个挑战。首先,对话历史建模和Text-to-SQL解析是隐式结合的,因此很难进行可解释性分析和有针对性的改进。第二,多轮对话的SQL注释非常昂贵,导致训练数据稀疏。在本文中,我们提出了一种新的解耦的多轮文本到SQL框架,其中的话语重写模型首先明确地解决了对话上下文的完成,然后是一个单轮文本到SQL解析器。本文还提出了一种双重学习方法来解决数据稀疏性问题。与端到端的方法相比,所提出的解耦方法可以在不需要任何带注释的域内数据的情况下获得优异的性能。在只有几个带注释的重写案例的情况下,解耦方法在SParC和CoSQL数据集上的性能优于已发布的最先进的端到端模型。

英文摘要:

Recently, Text-to-SQL for multi-turn dialogue has attracted great interest. Here, the user input of the current turn is parsed into the corresponding SQL query of the appropriate database, given all previous dialogue history. Current approaches mostly employ end-to-end models and consequently face two challenges. First, dialogue history modeling and Text-to-SQL parsing are implicitly combined, hence it is hard to carry out interpretable analysis and obtain targeted improvement. Second, SQL annotation of multi-turn dialogue is very expensive, leading to training data sparsity. In this paper, we propose a novel decoupled multi-turn Text-to-SQL framework, where an utterance rewrite model first explicitly solves completion of dialogue context, and then a single-turn Text-to-SQL parser follows. A dual learning approach is also proposed for the utterance rewrite model to address the data sparsity problem. Compared with end-to-end approaches, the proposed decoupled method can achieve excellent performance without any annotated in-domain data. With just a few annotated rewrite cases, the decoupled method outperforms the released state-of-the-art end-to-end models on both SParC and CoSQL datasets.

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

↑