arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2210.12096cs.CL
收藏

使用Self-Play增强多轮文本到SQL数据集

Augmenting Multi-Turn Text-to-SQL Datasets with Self-Play

The University of Hong Kong(香港大学);University of Oxford(牛津大学);Tencent AI Lab(腾讯人工智能实验室)

Qi Liu, Zihuiwen Ye, Tao Yu, Phil Blunsom, Linfeng Song

摘要:

上下文相关文本到SQL的任务旨在将多轮用户话语转换为正式的SQL查询。这是一项具有挑战性的任务,因为缺乏训练数据来学习复杂的上下文依赖关系并推广到看不见的数据库。在本文中,我们探索使用self-play来增强训练数据集,它利用上下文信息来合成新的交互,以使模型适应新的数据库。我们首先设计了一个SQL到文本模型的条件下采样的目标查询,它代表了用户的意图,然后与文本到SQL语义解析器进行对话,以生成新的交互。然后,我们过滤合成的交互,并使用增强的数据重新训练模型。我们发现,自我发挥提高了SParC和CoSQL,两个广泛使用的跨域文本到SQL数据集的强基线的准确性。我们的分析表明,自我发挥模拟各种会话的主题关系,增强跨领域泛化和改善波束搜索。

英文摘要:

The task of context-dependent text-to-SQL aims to convert multi-turn user utterances to formal SQL queries. This is a challenging task due to both the scarcity of training data from which to learn complex contextual dependencies and to generalize to unseen databases. In this paper we explore augmenting the training datasets using self-play, which leverages contextual information to synthesize new interactions to adapt the model to new databases. We first design a SQL-to-text model conditioned on a sampled goal query, which represents a user's intent, that then converses with a text-to-SQL semantic parser to generate new interactions. We then filter the synthesized interactions and retrain the models with the augmented data. We find that self-play improves the accuracy of a strong baseline on SParC and CoSQL, two widely used cross-domain text-to-SQL datasets. Our analysis shows that self-play simulates various conversational thematic relations, enhances cross-domain generalization and improves beam-search.

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

↑