mlsanityData to 7 Oct 2026

Metasql: A Generate-then-Rank Framework for Natural Language to SQL Translation

arXiv 2402.17144 ↗First posted 27 Feb 2024cs.DB cs.AIcited by 17

Not on the map. Why?

Abstract (arXiv)

The Natural Language Interface to Databases (NLIDB) empowers non-technical users with database access through intuitive natural language (NL) interactions. Advanced approaches, utilizing neural sequence-to-sequence models or large-scale language models, typically employ auto-regressive decoding to generate unique SQL queries sequentially. While these translation models have greatly improved the overall translation accuracy, surpassing 70% on NLIDB benchmarks, the use of auto-regressive decoding to generate single SQL queries may result in sub-optimal outputs, potentially leading to erroneous translations. In this paper, we propose Metasql, a unified generate-then-rank framework that can be flexibly incorporated with existing NLIDBs to consistently improve their translation accuracy. Metasql introduces query metadata to control the generation of better SQL query candidates and uses learning-to-rank algorithms to retrieve globally optimized queries. Specifically, Metasql first breaks down the meaning of the given NL query into a set of possible query metadata, representing the basic concepts of the semantics. These metadata are then used as language constraints to steer the underlying translation model toward generating a set of candidate SQL queries. Finally, Metasql ranks the candidates to identify the best matching one for the given NL query. Extensive experiments are performed to study Metasql on two public NLIDB benchmarks. The results show that the performance of the translation models can be effectively improved using Metasql.

Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 53 of its 74 references that are in the map. First posted on arXiv 27 Feb 2024.

Builds on

53 of 74 references.

References · 53

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  6. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  7. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  8. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  9. 2021Program Synthesis with Large Language Modelscited by 3,509
  10. 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
  11. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  12. 2018Hierarchical Neural Story Generationcited by 1,182
38 more
  1. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  2. 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,068
  3. 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
  4. 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 691
  5. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  6. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
  7. 2018The Web as a Knowledge-base for Answering Complex Questionscited by 409
  8. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
  9. 2019Multi-Stage Document Ranking with BERTcited by 200
  10. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 191
  11. 2020GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsingcited by 171
  12. 2017SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learningcited by 135
  13. 2020Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsingcited by 133
  14. 2020Break It Down: A Question Understanding Benchmarkcited by 131
  15. 2022A Survey of Controllable Text Generation using Transformer-based Pre-trained Language Modelscited by 128
  16. 2019Multi-hop Reading Comprehension through Question Decomposition and Rescoringcited by 119
  17. 2021LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relationscited by 119
  18. 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilitycited by 118
  19. 2022Evaluating the Text-to-SQL Capabilities of Large Language Modelscited by 101
  20. 2020SmBoP: Semi-autoregressive Bottom-up Semantic Parsingcited by 97
  21. 2020Graph Structured Network for Image-Text Matchingcited by 93
  22. 2019Editing-Based SQL Query Generation for Cross-Domain Context-Dependent Questionscited by 80
  23. 2019Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsingcited by 74
  24. 2021Natural SQL: Making SQL Easier to Infer from Natural Language Specificationscited by 66
  25. 2020Learning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-Trainingcited by 65
  26. 2021Rethink Training of BERT Rerankers in Multi-Stage Retrieval Pipelinecited by 65
  27. 2022SummaReranker: A Multi-Task Mixture-of-Experts Re-ranking Framework for Abstractive Summarizationcited by 61
  28. 2022Critic-Guided Decoding for Controlled Text Generationcited by 45
  29. 2019Global Reasoning over Database Structures for Text-to-SQL Parsingcited by 43
  30. 2023ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systemscited by 42
  31. 2021NeuralNDCG: Direct Optimisation of a Ranking Metric via Differentiable Relaxation of Sortingcited by 39
  32. 2016Mutual Information and Diverse Decoding Improve Neural Machine Translationcited by 35
  33. 2018SQL-to-Text Generation with Graph-to-Sequence Modelcited by 31
  34. 2023Interleaving Pre-Trained Language Models and Large Language Models for Zero-Shot NL2SQL Generationcited by 24
  35. 2019Bridging the Semantic Gap with SQL Query Logs in Natural Language Interfaces to Databasescited by 15
  36. 2018Neural Compositional Denotational Semantics for Question Answeringcited by 11
  37. 2023Toward Unified Controllable Text Generation via Regular Expression Instructioncited by 7
  38. 2022MIGA: A Unified Multi-task Generation Framework for Conversational Text-to-SQLcited by 5

50 most cited of 53 All 53 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 6; 2025: 7; 2026: 4.

17 papers.

Sort:

By area: