Skip to content

The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Models

Aug 2024 · arXiv.org · Vol abs/2408.07702 · 109 citations · ⚡ 19 influential · 38 references
Computer Science

TL;DR

This work revisits schema linking when using the latest generation of large language models (LLMs) and finds empirically that newer models are adept at utilizing relevant schema elements during generation even in the presence of large numbers of irrelevant ones.

Abstract

Schema linking is a crucial step in Text-to-SQL pipelines. Its goal is to retrieve the relevant tables and columns of a target database for a user's query while disregarding irrelevant ones. However, imperfect schema linking can often exclude required columns needed for accurate query generation. In this work, we revisit schema linking when using the latest generation of large language models (LLMs). We find empirically that newer models are adept at utilizing relevant schema elements during generation even in the presence of large numbers of irrelevant ones. As such, our Text-to-SQL pipeline entirely forgoes schema linking in cases where the schema fits within the model's context window in order to minimize issues due to filtering required schema elements. Furthermore, instead of filtering contextual information, we highlight techniques such as augmentation, selection, and correction, and adopt them to improve the accuracy of our Text-to-SQL pipeline. Our approach ranks first on the BIRD benchmark achieving an accuracy of 71.83%.

View source

Similar papers

#natural language process... Preprint Oct 2026

AptMQL-Bench: From Text-to-SQL to Text-to-MQL via Access-Pattern Schema Design and Data-Preserving Migration

A conversion pipeline is proposed, driven by coding agents with human-in-the-loop verification, that designs each document schema from expected access patterns and rewrites queries to be MongoDB-native, and builds an access-pattern-based text-to-MQL benchmark (AptMQL-Bench).

Hy Nguyen, Nabi Rezvani, Robin Vujanic · 0 citations
Review Open access Oct 2026

Text-to-SQL in the Era of Large Language Models: A Survey of Reasoning-Centric and Efficiency-Centric Approaches

Text-to-SQL translates natural-language questions into executable SQL, enabling non-expert access to relational databases. Despite advances in large language models (LLMs), reliable systems must ground questions in schemas and values, handle large schemas, and preserve semantic correctness. This survey reviews the evol...

Gunhee Choi, Dayeon Wee, Jongmoo Choi · 0 citations
#natural language process... Preprint Oct 2026

Schema-Free Text-to-SQL: Learning Enterprise Database Structure from Query Logs

Text-to-SQL systems achieve remarkable accuracy on academic benchmarks, yet performance drops dramatically in enterprise deployments. This gap stems from a fundamental assumption: existing approaches require complete schema documentation, but enterprise databases typically lack comprehensive documentation, featuring cr...

Ömer Faruk Akgül, Nikhil Kapahi, Prajit Muppidi · 0 citations
#artificial intelligence Conference Open access Oct 2026

From Benchmarks to Production: A Text-to-SQL System for Complex Financial Data

General-purpose Text-to-SQL systems achieve strong performance on academic benchmarks like Spider and BIRD, where schemas are relatively shallow and column values are often human readable. In production financial databases, where concepts are stored as opaque integer keys rather than human-readable strings, these metho...

Arijit Sehanobish, Bruno Gomes Coelho, Guillaume Michel et al. · 0 citations
Open access Sep 2026

Two-Layer RAG for Value Grounding and Schema Linking in LLM-Based Text-to-SQL Systems

Large Language Models translate natural language into SQL. In environments with dynamic schemas, models hallucinate column names and filter values absent from the target database. We present a two-layer Retrieval-Augmented Generation architecture that addresses schema linking and value grounding within an orchestration...

João Victor Monteiro Macedo, R. Miyaji, Renato Moulin et al. · 0 citations

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.