arXiv AI By Parker Glenn, Alfy Samuel

Large Databases Need Small, Open-Weight Language Models

Read the original on arXiv AI →

arXiv:2606. 31808v1 Announce Type: new Abstract: Language model systems built around proprietary APIs often operate on a token-based cost model.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv AI.

arXiv AI
Nov 16

LuthorSQL: A One-Pass Text-to-SQL Model as System 1 for a Slower LLM Agent

LuthorSQL is a 7B non‑autoregressive text‑to‑SQL model that performs a single forward pass to predict slot scores over a bounded grammar, compiles up to 32 candidate plans, and selects an answer with a trained validator. It achieves 68.03 % execution accuracy on BIRD’s hidden test set in 0.84 s per question on a single GPU, retains accuracy with 9 GB 8‑bit quantized weights, and zero‑shot transfers to multiple database engines within 3.1 points of native SQLite performance. When paired with Claude Opus 5.5 in a confidence cascade, LuthorSQL answers nearly half of queries locally, reducing API cost by 33.3 % while maintaining the same overall accuracy.

By Ibrahim Memon, Armin Karamzade, M. Hanif Jhaveri, Roy Fox
arXiv AI
Sep 15

Beyond Quacking: Deep Integration of Language Models and RAG into DuckDB

The paper introduces FlockMTL, an extension for database management systems that deeply integrates large language models and retrieval‑augmented generation into DuckDB. It provides model‑driven scalar and aggregate functions, cost‑based optimizations like batching and caching, and new SQL DDL abstractions (PROMPT and MODEL) to treat LLMs as first‑class schema objects. These features aim to simplify the development of knowledge‑intensive analytical applications by reducing the effort required to orchestrate heterogeneous data systems and manage LLM context.

By Anas Dorbani, Sunny Yasser, Jimmy Lin, Amine Mhedhbi
Hugging Face Trending Papers
Sep 2

text2ql: Multi-Target Natural Language Querying via a Language-Agnostic Intermediate Representation

text2ql is an open‑source Python framework that enables natural language querying of databases without being limited to SQL, without requiring large language model inference at query time, and with a runtime confidence score for each generated query. It uses a language‑agnostic Intermediate Representation (QueryIR) and a pluggable renderer that supports both SQL and GraphQL through a single seven‑stage detection pipeline. In deterministic mode, it achieves 100% execution accuracy with a median latency of 3.2 ms, while the LLM‑backed mode reaches 62‑70% exact match and 84‑91% execution accuracy on benchmark samples.