arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.02862cs.DBcs.LG
收藏

LLM在查询优化中的惊人有效性

The Unreasonable Effectiveness of LLMs for Query Optimization

University of Pennsylvania(宾夕法尼亚大学)

Peter Akioyamen, Zixuan Yi, Ryan Marcus

AI总结:

本文发现LLM嵌入查询文本蕴含语义信息,用少量标记数据训练简单二分类器选择查询计划,即可超越启发式系统,预示LLM查询优化器在性能与简洁性上潜力巨大。

摘要:

近期数据库查询优化领域的研究采用了复杂的机器学习策略,如定制化的强化学习方案。令人惊讶的是,我们发现查询文本的LLM嵌入包含了用于查询优化的有用语义信息。具体而言,我们展示了一个简单的二分类器,仅基于少量标记的嵌入查询向量进行训练,用于在备选查询计划之间做出决策,其性能即可超越现有的启发式系统。尽管我们仅呈现了一些初步结果,但基于LLM的查询优化器在性能和简洁性方面都能带来显著优势。

英文摘要:

Recent work in database query optimization has used complex machine learning strategies, such as customized reinforcement learning schemes. Surprisingly, we show that LLM embeddings of query text contain useful semantic information for query optimization. Specifically, we show that a simple binary classifier deciding between alternative query plans, trained only on a small number of labeled embedded query vectors, can outperform existing heuristic systems. Although we only present some preliminary results, an LLM-powered query optimizer could provide significant benefits, both in terms of performance and simplicity.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑