Text-to-SQL learns database structure from query logs instead of schema docs
Source published ·Modelwire updated
Original coverage: arXiv cs.CL ↗·How Modelwire adds context
The development
A new text-to-SQL framework addresses a critical deployment gap: production databases rarely ship with complete schema documentation, causing LLM-based query systems to fail where academic benchmarks succeed. Rather than requiring manual schema curation, this approach learns database structure directly from historical query logs, extracting implicit relationships and business semantics. The technique constructs knowledge graphs from parsed queries and applies entity-driven retrieval to ground natural language questions in actual database topology. This shifts text-to-SQL from a documentation-dependent problem to a self-bootstrapping one, potentially unlocking enterprise adoption where schema gaps have been a hard blocker.
Modelwire’s AI-generated summary of coverage from arXiv cs.CL.
Modelwire analysis
ExplainerOur AI-generated reading of the wider context and the next developments to watch.
The key insight is that this approach inverts the dependency chain: instead of treating incomplete schema as a blocker that requires manual documentation work, it treats query logs as a proxy for actual database semantics. This means enterprises can deploy text-to-SQL systems without the upfront schema curation step that has historically made these projects expensive.
This connects directly to the structured-output reliability work from October 24th, which showed that LLM failures on constrained tasks often stem from schema violations and constraint breaches. That research identified the problem; this work sidesteps it by learning constraints from operational data rather than relying on hand-written specifications. It also echoes the document-ingestion failure mode from October 21st, where formatting and structure information gets discarded during ingestion. Here, the structure is preserved because it's extracted from actual usage patterns rather than documentation.
If this approach is tested against the same benchmark datasets used in academic text-to-SQL papers (Spider, BIRD) but with schema information artificially removed, and performance remains within 5-10 percentage points of the full-schema baseline, that would validate the core claim. If performance craters below 70 F1 on those benchmarks, the technique may only work on familiar query patterns and won't generalize to new database domains.
This interpretation is generated from the summary above and the archive coverage cited below. Our methodology · Report an error
Coverage behind this analysis
These archive entries ground the connection in our analysis. They are ordered by source publication date, with links to our coverage and the original sources.
·arXiv cs.CL
Researchers map failure modes in LLM structured output pipelines
Researchers developed a taxonomy and classifier to diagnose why language models fail to produce valid structured outputs, moving beyond simple pass/fail metrics. Testing across nine OpenAI and Anthropic configurations on 3,997 generation attempts revealed specific failure modes that distinguish between schema violations, constraint breaches, and retry-resistant errors. This work matters for production teams building LLM…
MentionsText-to-SQL · GraphRAG · Query logs
How this coverage is produced
Modelwire uses AI to generate summaries and context from source headlines, snippets, and selected archive coverage. Automated checks do not verify every claim, and items are not routinely reviewed by a person before publication. Zacaria Solis operates the site. Read the linked source for the full evidence and report errors through our corrections process.
Modelwire summarizes, we don’t republish. arXiv cs.CL originally reported this story as “Schema-Free Text-to-SQL: Learning Enterprise Database Structure from Query Logs”. The full content lives on arxiv.org. If you’re a publisher and want a different summarization policy for your work, see our takedown page.