mlsanityData to 7 Oct 2026

Knapsack Optimization-based Schema Linking for LLM-based Text-to-SQL Generation

arXiv 2502.12911 ↗First posted 18 Feb 2025cs.CL cs.DBcited by 9

Not on the map. Why?

Abstract (arXiv)

Generating SQLs from user queries is a long-standing challenge, where the accuracy of initial schema linking significantly impacts subsequent SQL generation performance. However, current schema linking models still struggle with missing relevant schema elements or an excess of redundant ones. A crucial reason for this is that commonly used metrics, recall and precision, fail to capture relevant element missing and thus cannot reflect actual schema linking performance. Motivated by this, we propose enhanced schema linking metrics by introducing a restricted missing indicator. Accordingly, we introduce textbfunderlineKnunderlineapsack optimization-based underlineSchema underlineLinking underlineApproach (KaSLA), a plug-in schema linking method designed to prevent the missing of relevant schema elements while minimizing the inclusion of redundant ones. KaSLA employs a hierarchical linking strategy that first identifies the optimal table linking and subsequently links columns within the selected table to reduce linking candidate space. In each linking process, it utilizes a knapsack optimization approach to link potentially relevant elements while accounting for a limited tolerance of potentially redundant ones. With this optimization, KaSLA-1.6B achieves superior schema linking results compared to large-scale LLMs, including DeepSeek-V3 with the state-of-the-art (SOTA) schema linking method. Extensive experiments on Spider and BIRD benchmarks verify that KaSLA can significantly improve the SQL generation performance of SOTA Text2SQL models by substituting their schema linking processes. The code is available at https://github.com/DEEP-PolyU/KaSLA.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 51 of its 69 references that are in the map. First posted on arXiv 18 Feb 2025.

Builds on

51 of 69 references.

References · 51

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2024The Llama 3 Herd of Modelscited by 14,192
  4. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  6. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  7. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  8. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  9. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  10. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  11. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  12. 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 599
38 more
  1. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  2. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  3. 2020TaBERT: Pretraining for Joint Understanding of Textual and Tabular Datacited by 395
  4. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
  5. 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 223
  6. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 191
  7. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 183
  8. 2020GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsingcited by 171
  9. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
  10. 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 159
  11. 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 158
  12. 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 132
  13. 2020Structure-Grounded Pretraining for Text-to-SQLcited by 126
  14. 2023Where to Go Next for Recommender Systems? ID- vs. Modality-based Recommender Models Revisitedcited by 124
  15. 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilitycited by 118
  16. 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
  17. 2021Towards Robustness of Text-to-SQL Models against Synonym Substitutioncited by 110
  18. 2025A Survey of Graph Retrieval-Augmented Generation for Customized Large Language Modelscited by 85
  19. 2024The Dawn of Natural Language to SQL: Are We Fully Ready?cited by 78
  20. 2023Exploring Chain-of-Thought Style Prompting for Text-to-SQLcited by 69
  21. 2024The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Modelscited by 67
  22. 2023ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thoughtcited by 65
  23. 2020RYANSQL: Recursively Applying Sketch-based Slot Fillings for Complex Text-to-SQL in Cross-Domain Databasescited by 63
  24. 2022A Survey on Text-to-SQL Parsing: Concepts, Methods, and Future Directionscited by 51
  25. 2024RSL-SQL: Robust Schema Linking in Text-to-SQL Generationcited by 51
  26. 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generationcited by 49
  27. 2024A Preview of XiYan-SQL: A Multi-Generator Ensemble Framework for Text-to-SQLcited by 46
  28. 2024DTS-SQL: Decomposed Text-to-SQL with Small Large Language Modelscited by 45
  29. 2024Macro Graph Neural Networks for Online Billion-Scale Recommender Systemscited by 40
  30. 2024Knowledge-to-SQL: Enhancing SQL Generation with Data Expert LLMcited by 35
  31. 2024E-SQL: Direct Schema Linking via Question Enrichment in Text-to-SQLcited by 35
  32. 2024PURPLE: Making a Large Language Model a Better SQL Writercited by 34
  33. 2022Proton: Probing Schema Linking Information from Pre-trained Language Models for Text-to-SQL Parsingcited by 30
  34. 2023KnowGPT: Knowledge Graph based Prompting for Large Language Modelscited by 30
  35. 2024Entity Alignment with Noisy Annotations from Large Language Modelscited by 22
  36. 2024Dubo-SQL: Diverse Retrieval-Augmented Generation and Fine Tuning for Text-to-SQLcited by 12
  37. 2024Solid-SQL: Enhanced Schema-linking based In-context Learning for Robust Text-to-SQLcited by 11
  38. 2025Each Graph is a New Language: Graph Learning with LLMscited by 11

50 most cited of 51 All 51 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 7; 2026: 2.

9 papers.