Learning to Synthesize Data for Semantic Parsing

Bailin Wang, Wenpeng Yin, Xi Victoria Lin, Caiming Xiong
4/12/2021
cs.CL

Official code: berlino/tensor2struct-public (92 stars, Python, MIT, last commit 2023-03-08).

Abstract

Synthesizing data for semantic parsing has gained increasing attention recently. However, most methods require handcrafted (high-precision) rules in their generative process, hindering the exploration of diverse unseen data.

Show full abstract

In this work, we propose a generative model which features a (non-neural) PCFG that models the composition of programs (e.g., SQL), and a BART-based translation model that maps a program to an utterance. Due to the simplicity of PCFG and pre-trained BART, our generative model can be efficiently learned from existing data at hand. Moreover, explicitly modeling compositions using PCFG leads to a better exploration of unseen programs, thus generate more diverse data. We evaluate our method in both in-domain and out-of-domain settings of text-to-SQL parsing on the standard benchmarks of GeoQuery and Spider, respectively. Our empirical results show that the synthesized data generated from our model can substantially help a semantic parser achieve better compositional and domain generalization.

View on arXivView PDF

Code Implementations(1)

MIT

Semantic parsers based on encoder-decoder framework

9222Python, JsonnetMar 18, 20213 years agoMIT

Similar Papers

Cite this paper

@article{wang2021learning,
  title  = {Learning to Synthesize Data for Semantic Parsing},
  author = {Bailin Wang and Wenpeng Yin and Xi Victoria Lin and Caiming Xiong},
  year   = {2021},
  eprint = {2104.05827},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.05827}
}

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/2104.05827.svg)](https://codeofpaper.com/paper/2104.05827)

Discussion