paper-with-me

홈 › Papers

Are LLMs Overkill for Databases?: A Study on the Finiteness of SQL

2026-03-26 · Yue Li, David Mimno, Unso Eun Seo Jo arxiv

Translating natural language to SQL for data retrieval has become more accessible thanks to code generation LLMs. But how hard is it to generate SQL code? While databases can become unbounded in complexity, the complexity of queries is bounded by real life utility and human needs. With a sample of 376 databases, we show that SQL queries, as translations of natural language questions are finite in practical complexity. There is no clear monotonic relationship between increases in database table count and increases in complexity of SQL queries. In their template forms, SQL queries follow a Power Law-like distribution of frequency where 70% of our tested queries can be covered with just 13% of all template types, indicating that the high majority of SQL queries are predictable. This suggests that while LLMs for code generation can be useful, in the domain of database access, they may be operating in a narrow, highly formulaic space where templates could be safer, cheaper, and auditable.

📄 PDF Abstract BibTeX arXiv:2603.25568

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Navigating the OverKill in Large Language Models

2024-01-31 · Chenyu Shi, Xiao Wang, Qiming Ge, Songyang Gao 외

Large language models are meticulously aligned to be both helpful and harmless. However, recent research points to a potential overkill which means models may refuse to answer benign queries. In this paper, we investigat…

Enriching Ontology-based Data Access with Provenance (Extended Version)

2019-06-01 · Diego Calvanese, Davide Lanti, Ana Ozaki, Rafael Penaloza 외

Ontology-based data access (OBDA) is a popular paradigm for querying heterogeneous data sources by connecting them through mappings to an ontology. In OBDA, it is often difficult to reconstruct why a tuple occurs in the …

Neural Networks for Local Search and Crossover in Vehicle Routing: A Possible Overkill?

2022-09-09 · Ítalo Santana, Andrea Lodi, Thibaut Vidal

Extensive research has been conducted, over recent years, on various ways of enhancing heuristic search for combinatorial optimization problems with machine learning algorithms. In this study, we investigate the use of p…

Combinatorial OptimizationHeuristic Search

A Unified Annotation Scheme for the Semantic/Pragmatic Components of Definiteness

2014-05-01 · LREC 2014 5 · Archna Bhatia, M Simons, y, Lori Levin 외

We present a definiteness annotation scheme that captures the semantic, pragmatic, and discourse information, which we call communicative functions, associated with linguistic descriptions such as {``}a story about my sp…

Machine TranslationSpecificity

Gaining Free or Low-Cost Transparency with Interpretable Partial Substitute

2018-02-12 · Tong Wang

This work addresses the situation where a black-box model with good predictive performance is chosen over its interpretable competitors, and we show interpretability is still achievable in this case. Our solution is to f…

Decision MakingInterpretable Machine Learning