LLM-R2: A Large Language Model Enhanced Rule-based Rewrite System for Boosting Query Efficiency

Boosting(机器学习) 计算机科学 查询优化 人工智能 程序设计语言 数据挖掘
作者
Zhaodonghui Li,Haitao Yuan,Hui‐Ming Wang,Cong Gao,Lidong Bing
出处
期刊:Cornell University - arXiv 被引量:3
标识
DOI:10.48550/arxiv.2404.12872
摘要

Query rewrite, which aims to generate more efficient queries by altering a SQL query's structure without changing the query result, has been an important research problem. In order to maintain equivalence between the rewritten query and the original one during rewriting, traditional query rewrite methods always rewrite the queries following certain rewrite rules. However, some problems still remain. Firstly, existing methods of finding the optimal choice or sequence of rewrite rules are still limited and the process always costs a lot of resources. Methods involving discovering new rewrite rules typically require complicated proofs of structural logic or extensive user interactions. Secondly, current query rewrite methods usually rely highly on DBMS cost estimators which are often not accurate. In this paper, we address these problems by proposing a novel method of query rewrite named LLM-R2, adopting a large language model (LLM) to propose possible rewrite rules for a database rewrite system. To further improve the inference ability of LLM in recommending rewrite rules, we train a contrastive model by curriculum to learn query representations and select effective query demonstrations for the LLM. Experimental results have shown that our method can significantly improve the query execution efficiency and outperform the baseline methods. In addition, our method enjoys high robustness across different datasets.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
kuailexianchi完成签到,获得积分10
刚刚
打打应助tetrodotoxin采纳,获得10
刚刚
lhhhh发布了新的文献求助10
1秒前
jiayaa完成签到,获得积分10
2秒前
2秒前
Linda发布了新的文献求助10
2秒前
3秒前
4秒前
白衣卿相发布了新的文献求助10
4秒前
含糊的代丝完成签到 ,获得积分10
5秒前
5秒前
5秒前
腼腆的草莓完成签到,获得积分10
6秒前
6秒前
7秒前
FashionBoy应助乐观的一一采纳,获得10
7秒前
颖颖发布了新的文献求助10
7秒前
AbleTF发布了新的文献求助10
7秒前
silencio发布了新的文献求助10
8秒前
8秒前
BeLoved发布了新的文献求助10
9秒前
从容完成签到 ,获得积分10
10秒前
HUYAOWEI发布了新的文献求助10
10秒前
粥粥发布了新的文献求助10
10秒前
10秒前
团团发布了新的文献求助10
11秒前
alazka发布了新的文献求助10
11秒前
11秒前
wyy发布了新的文献求助10
11秒前
ysb1111完成签到,获得积分10
12秒前
苏苏苏发布了新的文献求助10
13秒前
白衣卿相完成签到,获得积分10
13秒前
Twonej举报寡王一路硕博求助涉嫌违规
14秒前
14秒前
15秒前
脑洞疼应助王小花采纳,获得10
15秒前
15秒前
Owen应助老10采纳,获得10
16秒前
薯条一克完成签到 ,获得积分10
17秒前
某某完成签到 ,获得积分10
17秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Burger's Medicinal Chemistry, Drug Discovery and Development, Volumes 1 - 8, 8 Volume Set, 8th Edition 1800
Cronologia da história de Macau 1600
Contemporary Debates in Epistemology (3rd Edition) 1000
International Arbitration Law and Practice 1000
文献PREDICTION EQUATIONS FOR SHIPS' TURNING CIRCLES或期刊Transactions of the North East Coast Institution of Engineers and Shipbuilders第95卷 1000
BRITTLE FRACTURE IN WELDED SHIPS 1000
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 纳米技术 计算机科学 化学工程 生物化学 物理 复合材料 内科学 催化作用 物理化学 光电子学 细胞生物学 基因 电极 遗传学
热门帖子
关注 科研通微信公众号,转发送积分 6156258
求助须知:如何正确求助?哪些是违规求助? 7984771
关于积分的说明 16593133
捐赠科研通 5266286
什么是DOI,文献DOI怎么找? 2810027
邀请新用户注册赠送积分活动 1790261
关于科研通互助平台的介绍 1657564