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

Text-to-SQL系统的N-最佳假设重排序

N-Best Hypotheses Reranking for Text-To-SQL Systems

Amazon(亚马逊)

Lu Zeng, Sree Hari Krishnan Parthasarathi, Dilek Hakkani-Tur

摘要:

Text-to-SQL任务将自然语言语句映射到可以向数据库发出的结构化查询。最先进的(SOTA)系统依赖于结合应用SQL解析器的约束解码来微调大型的、预训练的语言模型。在完善的Spider数据集上,我们从Oracle研究开始:具体地说,从SOTA模型的10个最佳列表中选择一个Oracle假设,在精确匹配(EM)和执行(EX)准确性方面都产生了$7.7\%$的绝对改进,显示出重新排序的显着潜在改进。识别一致性和正确性的重新排序方法,我们设计了一个模型生成的查询计划,并提出了一个启发式的模式链接算法。结合这两种方法,与T5-大,我们得到了一致的$1\% $改善EM的准确性,和$~2.5\%$改善EX,建立一个新的SOTA这项任务。我们对DEV数据的全面错误研究显示了在这项任务上取得进展的潜在困难。

英文摘要:

Text-to-SQL task maps natural language utterances to structured queries that can be issued to a database. State-of-the-art (SOTA) systems rely on finetuning large, pre-trained language models in conjunction with constrained decoding applying a SQL parser. On the well established Spider dataset, we begin with Oracle studies: specifically, choosing an Oracle hypothesis from a SOTA model's 10-best list, yields a $7.7\%$ absolute improvement in both exact match (EM) and execution (EX) accuracy, showing significant potential improvements with reranking. Identifying coherence and correctness as reranking approaches, we design a model generating a query plan and propose a heuristic schema linking algorithm. Combining both approaches, with T5-Large, we obtain a consistent $1\% $ improvement in EM accuracy, and a $~2.5\%$ improvement in EX, establishing a new SOTA for this task. Our comprehensive error studies on DEV data show the underlying difficulty in making progress on this task.

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

↑