跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 数据库

arXiv:2404.12872 (cs)
[提交于 2024年4月19日]

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

作者:Zhaodonghui Li, Haitao Yuan, Huiming Wang, Gao Cong, Lidong Bing
查看论文《LLM-R2: A Large Language Model Enhanced Rule-based Rewrite System for Boosting Query Efficiency》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要: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.
评论: 12 pages
主题: 数据库 (cs.DB); 计算与语言 (cs.CL)
引用方式: arXiv:2404.12872 [cs.DB]
  (或者 arXiv:2404.12872v1 [cs.DB] 对于此版本)
  https://doi.org/10.48550/arXiv.2404.12872

提交历史

来自:Zhaodonghui Li
[v1] 2024年4月19日 星期五 13:17:07 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.DB
< 上一篇   |   下一篇 >
最新 | 近期 | 2024-04
切换浏览方式为:
cs
cs.CL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站