mlsanityData to 14 Oct 2026

SQLong: Enhanced NL2SQL for Longer Contexts with LLMs

arXiv 2502.16747 ↗First posted 23 Feb 2025cs.CL cs.AI cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Open-weight large language models (LLMs) have significantly advanced performance in the Natural Language to SQL (NL2SQL) task. However, their effectiveness diminishes when dealing with large database schemas, as the context length increases. To address this limitation, we present SQLong, a novel and efficient data augmentation framework designed to enhance LLM performance in long-context scenarios for the NL2SQL task. SQLong generates augmented datasets by extending existing database schemas with additional synthetic CREATE TABLE commands and corresponding data rows, sampled from diverse schemas in the training data. This approach effectively simulates long-context scenarios during finetuning and evaluation. Through experiments on the Spider and BIRD datasets, we demonstrate that LLMs finetuned with SQLong-augmented data significantly outperform those trained on standard datasets. These imply SQLong's practical implementation and its impact on improving NL2SQL capabilities in real-world settings with complex database schemas.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 14 of its 16 references that are in the map. First posted on arXiv 23 Feb 2025.

Builds on

14 of 16 references.

References · 14

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  3. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  4. 2023Qwen Technical Reportcited by 3,344
  5. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  6. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  7. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  8. 20218-bit Optimizers via Block-wise Quantizationcited by 403
  9. 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 341
  10. 2020Structure-Grounded Pretraining for Text-to-SQLcited by 126
  11. 2021Towards Robustness of Text-to-SQL Models against Synonym Substitutioncited by 110
  12. 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?cited by 56
2 more
  1. 2024Synthesizing Text-to-SQL Data from Weak and Strong LLMscited by 54
  2. 2022Recent Advances in Text-to-SQL: A Survey of What We Have and What We Expectcited by 47

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.