mlsanityData to 14 Oct 2026

KeyInst: Keyword Instruction for Improving SQL Formulation in Text-to-SQL

arXiv 2411.00788 ↗First posted 18 Oct 2024cs.DB cs.AI cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Text-to-SQL parsing involves the translation of natural language queries (NLQs) into their corresponding SQL commands. A principal challenge within this domain is the formulation of SQL queries that are not only syntactically correct but also semantically aligned with the natural language input. However, the intrinsic disparity between the NLQ and the SQL poses a significant challenge. In this research, we introduce Keyword Instruction (KeyInst), a novel method designed to enhance SQL formulation by Large Language Models (LLMs). KeyInst essentially provides guidance on pivotal SQL keywords likely to be part of the final query, thus facilitates a smoother SQL query formulation process. We explore two strategies for integrating KeyInst into Text-to-SQL parsing: a pipeline strategy and a single-pass strategy. The former first generates KeyInst for question, which are then used to prompt LLMs. The latter employs a fine-tuned model to concurrently generate KeyInst and SQL in one step. We developed StrucQL, a benchmark specifically designed for the evaluation of SQL formulation. Extensive experiments on StrucQL and other benchmarks demonstrate that KeyInst significantly improves upon the existing Text-to-SQL prompting techniques.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 22 of its 25 references that are in the map. First posted on arXiv 18 Oct 2024.

Builds on

22 of 25 references.

References · 22

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  3. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  4. 2023Teaching Large Language Models to Self-Debugcited by 988
  5. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  6. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
  7. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
  8. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
  9. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 239
  10. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 195
  11. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
  12. 2020GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsingcited by 171
10 more
  1. 2020Structure-Grounded Pretraining for Text-to-SQLcited by 126
  2. 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilitycited by 119
  3. 2021Towards Robustness of Text-to-SQL Models against Synonym Substitutioncited by 110
  4. 2021Exploring Underexplored Limitations of Cross-Domain Text-to-SQL Generalizationcited by 92
  5. 2022RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQLcited by 85
  6. 2023Exploring Chain-of-Thought Style Prompting for Text-to-SQLcited by 69
  7. 2021SADGA: Structure-Aware Dual Graph Aggregation Network for Text-to-SQLcited by 43
  8. 2023Benchmarking and Improving Text-to-SQL Generation under Ambiguitycited by 34
  9. 2023Prompting GPT-3.5 for Text-to-SQL with De-semanticization and Skeleton Retrievalcited by 16
  10. 2024Insights into Natural Language Database Query Errors: From Attention Misalignment to User Handling Strategiescited by 12

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.