mlsanityData to 7 Oct 2026

Database Context Compression for Text-to-SQL on Real-World Large Databases

arXiv 2606.28601 ↗First posted 26 Jun 2026cs.DB cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Recent progress in Text-to-SQL has been driven by stronger language models and prompting strategies, yet performance on real enterprise benchmarks such as Spider 2.0 and BIRD remains far below that on classical academic datasets. We argue that the main bottleneck is no longer reasoning, but database representation. Real databases contain repeated audit columns, large groups of similar tables, opaque identifiers whose meanings are stored only in documentation, and extensive data dictionaries with little query-relevant information. Existing query-aware methods, including schema linking and retrieval-based schema selection, filter this raw context but still operate on redundant and verbose representations. We reformulate the problem as database context compression, a query-agnostic transformation that rewrites schemas, semantic descriptions, and external documentation into a compact representation. We formalize this transformation with the SGCF (Support-Gain Component Factorization) principle, which unifies repeated column extraction, isomorphic table templating, semantic componentization, and evidence purification under a single coverage objective. Based on SGCF, we propose DBCC, a database-side middleware that performs offline structural and semantic compression together with lightweight online evidence purification. DBCC is model-agnostic and can be integrated into existing Text-to-SQL pipelines. On Spider 2.0-Snow and BIRD, DBCC reduces input context by up to two orders of magnitude (from 2.6M to 34.7K tokens on the largest Spider 2.0-Snow subset), improves schema-linking strict recall from 0% to 56.5% under DeepSeek-V3.2 (63.1% under Claude Opus 4.7), and consistently increases end-to-end execution accuracy by 1.8-1.9% over three recent Text-to-SQL systems. Our code is open-sourced at https://github.com/MrBlankness/SchemaCompression.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 36 of its 50 references that are in the map. First posted on arXiv 26 Jun 2026.

Builds on

36 of 50 references.

References · 36

  1. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  2. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  3. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  4. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  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. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
  8. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
  9. 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 223
  10. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
  11. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 191
  12. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 183
24 more
  1. 2020GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsingcited by 171
  2. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
  3. 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 159
  4. 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 158
  5. 2020Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsingcited by 133
  6. 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 132
  7. 2020Structure-Grounded Pretraining for Text-to-SQLcited by 126
  8. 2021LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relationscited by 119
  9. 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
  10. 2023ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thoughtcited by 65
  11. 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?cited by 54
  12. 2024RSL-SQL: Robust Schema Linking in Text-to-SQL Generationcited by 51
  13. 2024FinSQL: Model-Agnostic LLMs-based Text-to-SQL Framework for Financial Analysiscited by 35
  14. 2024PURPLE: Making a Large Language Model a Better SQL Writercited by 34
  15. 2025Is Long Context All You Need? Leveraging LLM's Extended Context for NL2SQLcited by 30
  16. 2025LinkAlign: Scalable Schema Linking for Real-World Large-Scale Multi-Database Text-to-SQLcited by 26
  17. 2023CRUSH4SQL: Collective Retrieval Using Schema Hallucination For Text2SQLcited by 23
  18. 2022Semantic Enhanced Text-to-SQL Parsing via Iteratively Learning Schema Linking Graphcited by 22
  19. 2024Metasql: A Generate-then-Rank Framework for Natural Language to SQL Translationcited by 17
  20. 2019Bridging the Semantic Gap with SQL Query Logs in Natural Language Interfaces to Databasescited by 15
  21. 2025AutoLink: Autonomous Schema Exploration and Expansion for Scalable Schema Linking in Text-to-SQL at Scalecited by 15
  22. 2020Duoquest: A Dual-Specification System for Expressive SQL Queriescited by 7
  23. 2026APEX-SQL: Talking to the data via Agentic Exploration for Text-to-SQLcited by 7
  24. 2025DB-Explore: Automated Database Exploration and Instruction Synthesis for Text-to-SQLcited by 5

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025RASL: Retrieval Augmented Schema Linking for Massive Database Text-to-SQL
  2. 2026Beyond the Harness: End-to-End Optimization of Context Artifacts for Enterprise Text-to-SQL
  3. 2024Improving Retrieval-augmented Text-to-SQL with AST-based Ranking and Schema Pruning
  4. 2024The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Models
  5. 2024DFIN-SQL: Integrating Focused Schema with DIN-SQL for Superior Accuracy in Large-Scale Databases
  6. 2025CRED-SQL: Enhancing Real-world Large Scale Database Text-to-SQL Parsing through Cluster Retrieval and Execution Description
  7. 2024From Natural Language to SQL: Review of LLM-based Text-to-SQL Systems
  8. 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQL