SeaD: End-to-end Text-to-SQL Generation with Schema-aware Denoising

Kuan Xu, Yongbo Wang, Yongliang Wang, Zujie Wen, Yang Dong
5/17/2021
cs.CLstat.ML

Official code: salesforce/WikiSQL (1,802 stars, HTML, BSD-3-Clause, last commit 2025-10-06).

Abstract

In text-to-SQL task, seq-to-seq models often lead to sub-optimal performance due to limitations in their architecture. In this paper, we present a simple yet effective approach that adapts transformer-based seq-to-seq model to robust text-to-SQL generation.

Show full abstract

Instead of inducing constraint to decoder or reformat the task as slot-filling, we propose to train seq-to-seq model with Schema aware Denoising (SeaD), which consists of two denoising objectives that train model to either recover input or predict output from two novel erosion and shuffle noises. These denoising objectives acts as the auxiliary tasks for better modeling the structural data in S2S generation. In addition, we improve and propose a clause-sensitive execution guided (EG) decoding strategy to overcome the limitation of EG decoding for generative model. The experiments show that the proposed method improves the performance of seq-to-seq model in both schema linking and grammar correctness and establishes new state-of-the-art on WikiSQL benchmark. The results indicate that the capacity of vanilla seq-to-seq architecture for text-to-SQL may have been under-estimated.

View on arXivView PDF

Code Implementations(1)

salesforce/WikiSQLOfficial100%
BSD-3-Clause

A large annotated semantic parsing corpus for developing natural language interfaces.

1,802331HTML, PythonAug 11, 20171 years agoBSD-3-Clause
databasedatasetmachine-learningnatural-languagenatural-language-interface+1 more

Similar Papers

Cite this paper

@article{xu2021sead,
  title  = {SeaD: End-to-end Text-to-SQL Generation with Schema-aware Denoising},
  author = {Kuan Xu and Yongbo Wang and Yongliang Wang and Zujie Wen and Yang Dong},
  year   = {2021},
  eprint = {2105.07911},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.07911}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.07911.svg)](https://codeofpaper.com/paper/2105.07911)

Discussion