Metraipolis › archive › dc_8dd9c50d883b

Towards Optimizing SQL Generation via LLM Routing — arXiv:2411.04319

Source
arXiv (en)
Original
https://arxiv.org/abs/2411.04319
License (as archived)
CC0-1.0
Archived
2026-10-15T22:48:11.239Z
SHA-256 of the archived text
86193eb9e844c8aca7e2a80c1932eedd482a711cfb507621e18194f661802337
Stable URL of this page
https://metraipolis.com/documento/dc_8dd9c50d883b

How to cite

Towards Optimizing SQL Generation via LLM Routing — arXiv:2411.04319 — arXiv (en), https://arxiv.org/abs/2411.04319 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_8dd9c50d883b (Metraipolis archive dc_8dd9c50d883b, sha256 86193eb9e844c8aca7e2a80c1932eedd482a711cfb507621e18194f661802337)
BibTeX
@misc{dc8dd9c50d883b,
  title = {Towards Optimizing SQL Generation via LLM Routing — arXiv:2411.04319},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2411.04319},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_8dd9c50d883b; sha256 86193eb9e844c8aca7e2a80c1932eedd482a711cfb507621e18194f661802337},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2411.04319. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Text-to-SQL enables users to interact with databases through natural language, simplifying access to structured data. Although highly capable large language models (LLMs) achieve strong accuracy for complex queries, they incur unnecessary latency and dollar cost for simpler ones. In this paper, we introduce the first LLM routing approach for Text-to-SQL, which dynamically selects the most cost-effective LLM capable of generating accurate SQL for each query. We present two routing strategies (score- and classification-based) that achieve accuracy comparable to the most capable LLM while reducing costs. We design the routers for ease of training and efficient inference. In our experiments, we highlight a practical and explainable accuracy-cost trade-off on the BIRD dataset.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-15 in cs.AI).
Categorie arXiv: Databases (cs.DB) ; Artificial Intelligence (cs.AI); Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2411.04319 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-15T22:29:03.385Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-15?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).