GP: Context-free Grammar Pre-training for Text-to-SQL Parsers
- URL: http://arxiv.org/abs/2101.09901v2
- Date: Sun, 28 Feb 2021 15:35:56 GMT
- Title: GP: Context-free Grammar Pre-training for Text-to-SQL Parsers
- Authors: Liang Zhao, Hexin Cao, Yunsong Zhao
- Abstract summary: Grammar Pre-training (GP) is proposed to decode deep relations between question and database.
Experiments show that our method is easier to converge during training and has excellent robustness.
- Score: 7.652782364282768
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: A new method for Text-to-SQL parsing, Grammar Pre-training (GP), is proposed
to decode deep relations between question and database. Firstly, to better
utilize the information of databases, a random value is added behind a question
word which is recognized as a column, and the new sentence serves as the model
input. Secondly, initialization of vectors for decoder part is optimized, with
reference to the former encoding so that question information can be concerned.
Finally, a new approach called flooding level is adopted to get the non-zero
training loss which can generalize better results. By encoding the sentence
with GRAPPA and RAT-SQL model, we achieve better performance on spider, a
cross-DB Text-to-SQL dataset (72.8 dev, 69.8 test). Experiments show that our
method is easier to converge during training and has excellent robustness.
Related papers
- UNITE: A Unified Benchmark for Text-to-SQL Evaluation [72.72040379293718]
We introduce a UNIfied benchmark for Text-to-domain systems.
It is composed of publicly available text-to-domain datasets and 29K databases.
Compared to the widely used Spider benchmark, we introduce a threefold increase in SQL patterns.
arXiv Detail & Related papers (2023-05-25T17:19:52Z) - STAR: SQL Guided Pre-Training for Context-dependent Text-to-SQL Parsing [64.80483736666123]
We propose a novel pre-training framework STAR for context-dependent text-to- parsing.
In addition, we construct a large-scale context-dependent text-to-the-art conversation corpus to pre-train STAR.
Extensive experiments show that STAR achieves new state-of-the-art performance on two downstream benchmarks.
arXiv Detail & Related papers (2022-10-21T11:30:07Z) - A Survey on Text-to-SQL Parsing: Concepts, Methods, and Future
Directions [102.8606542189429]
The goal of text-to-corpora parsing is to convert a natural language (NL) question to its corresponding structured query language () based on the evidences provided by databases.
Deep neural networks have significantly advanced this task by neural generation models, which automatically learn a mapping function from an input NL question to an output query.
arXiv Detail & Related papers (2022-08-29T14:24:13Z) - S$^2$SQL: Injecting Syntax to Question-Schema Interaction Graph Encoder
for Text-to-SQL Parsers [66.78665327694625]
We propose S$2$, injecting Syntax to question- encoder graph for Text-to- relational parsing.
We also employ the decoupling constraint to induce diverse edge embedding, which further improves the network's performance.
Experiments on the Spider and robustness setting Spider-Syn demonstrate that the proposed approach outperforms all existing methods when pre-training models are used.
arXiv Detail & Related papers (2022-03-14T09:49:15Z) - Weakly Supervised Text-to-SQL Parsing through Question Decomposition [53.22128541030441]
We take advantage of the recently proposed question meaning representation called QDMR.
Given questions, their QDMR structures (annotated by non-experts or automatically predicted) and the answers, we are able to automatically synthesizesql queries.
Our results show that the weakly supervised models perform competitively with those trained on NL- benchmark data.
arXiv Detail & Related papers (2021-12-12T20:02:42Z) - Structure-Grounded Pretraining for Text-to-SQL [75.19554243393814]
We present a novel weakly supervised StructureStrued pretraining framework (G) for text-to-LARGE.
We identify a set of novel prediction tasks: column grounding, value grounding and column-value mapping, and leverage them to pretrain a text-table encoder.
arXiv Detail & Related papers (2020-10-24T04:35:35Z) - Hybrid Ranking Network for Text-to-SQL [9.731436359069493]
We propose a neat approach called Hybrid Ranking Network (HydraNet) which breaks down the problem into column-wise ranking and decoding.
Experiments on the dataset show that the proposed approach is very effective, achieving the top place on the leaderboard.
arXiv Detail & Related papers (2020-08-11T15:01:52Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.