Skip to main content
CenXiv.org
This website is in trial operation, support us!
We gratefully acknowledge support from all contributors.
Contribute
Donate
cenxiv logo > cs > arXiv:2506.05853

Help | Advanced Search

Computer Science > Databases

arXiv:2506.05853 (cs)
[Submitted on 6 Jun 2025 (v1) , last revised 7 Jul 2025 (this version, v2)]

Title: Training-Free Query Optimization via LLM-Based Plan Similarity

Title: 无需训练的查询优化通过基于大语言模型的计划相似性

Authors:Nikita Vasilenko, Alexander Demin, Vladimir Boorlakov
Abstract: Large language model (LLM) embeddings offer a promising new avenue for database query optimization. In this paper, we explore how pre-trained execution plan embeddings can guide SQL query execution without the need for additional model training. We introduce LLM-PM (LLM-based Plan Mapping), a framework that embeds the default execution plan of a query, finds its k nearest neighbors among previously executed plans, and recommends database hintsets based on neighborhood voting. A lightweight consistency check validates the selected hint, while a fallback mechanism searches the full hint space when needed. Evaluated on the JOB-CEB benchmark using OpenGauss, LLM-PM achieves an average speed-up of 21% query latency reduction. This work highlights the potential of LLM-powered embeddings to deliver practical improvements in query performance and opens new directions for training-free, embedding-based optimizer guidance systems.
Abstract: 大型语言模型(LLM)嵌入为数据库查询优化提供了有前景的新途径。 在本文中,我们探讨了预训练执行计划嵌入如何在不需要额外模型训练的情况下指导SQL查询执行。 我们引入了LLM-PM(基于LLM的计划映射),这是一个框架,它嵌入查询的默认执行计划,在之前执行的计划中找到其k个最近邻,并根据邻域投票推荐数据库提示集。 一种轻量级的一致性检查验证所选提示,而在需要时,回退机制会搜索完整的提示空间。 在使用OpenGauss的JOB-CEB基准上进行评估,LLM-PM实现了平均21%的查询延迟减少。 这项工作突显了基于LLM的嵌入在提升查询性能方面的实际改进潜力,并为无需训练的、基于嵌入的优化器指导系统开辟了新的方向。
Comments: 18 pages, 5 figures
Subjects: Databases (cs.DB) ; Machine Learning (cs.LG)
Cite as: arXiv:2506.05853 [cs.DB]
  (or arXiv:2506.05853v2 [cs.DB] for this version)
  https://doi.org/10.48550/arXiv.2506.05853
arXiv-issued DOI via DataCite

Submission history

From: Nikita Vasilenko [view email]
[v1] Fri, 6 Jun 2025 08:16:07 UTC (213 KB)
[v2] Mon, 7 Jul 2025 09:14:21 UTC (216 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled
  • View Chinese PDF
  • View PDF
  • HTML (experimental)
  • TeX Source
  • Other Formats
license icon view license
Current browse context:
cs.DB
< prev   |   next >
new | recent | 2025-06
Change to browse by:
cs
cs.LG

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender (What is IArxiv?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack

京ICP备2025123034号