arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.07884cs.DBcs.AI
收藏

LLMIA: 一种通过大语言模型进行上下文学习的即开型索引顾问

LLMIA: An Out-of-the-Box Index Advisor via In-Context Learning with LLMs

School of Information, Renmin University of China, Beijing, China(中国人民大学信息学院,北京,中国);ByteDance Inc., China(字节跳动公司,中国)

Xinxin Zhao, Xinmei Huang, Haoyang Li, Jing Zhang, Shuai Wang, Tieying Zhang, Jianjun Chen, Rui Shi, Cuiping Li, Hong Chen

AI总结:

LLMIA利用大语言模型进行上下文学习,通过高质量演示池和全面的工作负载特征提取,高效推荐和优化索引,无需调优,在多个基准测试中表现优异。

摘要:

索引推荐对于优化数据库性能至关重要。然而,现有启发式和学习方法往往依赖于低效的穷举搜索和估计成本,导致效率低下(由于搜索空间庞大)和实际延迟不佳(由于估计不准确)。受经验数据库管理员的精修策略启发,LLMIA通过大语言模型进行上下文学习,提供一种无需调优的即开型索引顾问。LLMIA通过高质量演示池和全面的工作负载特征提取,将数据库专业知识注入LLM,并通过迭代数据库反馈引导索引优化。这种设计使LLMIA能够模拟专家数据库管理员的决策过程:在与数据库管理系统进行几次交互后,为各种工作负载高效推荐和优化索引。我们通过在五个标准OLAP基准(TPC-H不同规模、JOB、TPC-DS、SSB)上的广泛实验验证了LLMIA,其在多个基准测试中均优于或匹配12个基线方法,通过最小的数据库交互产生更优的索引推荐。此外,LLMIA在两个真实世界商业工作负载上展示了强大的泛化能力,无需额外适应或重新训练即可提供高质量的推荐,突显了其即开型能力。

英文摘要:

Index recommendation is crucial for optimizing database performance. However, existing heuristic- and learning-based methods often rely on inefficient exhaustive search and estimated costs, leading to low efficiency (due to the vast search space) and unsatisfactory actual latency (due to inaccurate estimations). Inspired by the refinement strategies of experienced DBAs-who efficiently identify and iteratively refine indexes with database feedback-we present LLMIA, an out-of-the-box, tuning-free index advisor leveraging large language models (LLMs) through in-context learning for index recommendation. LLMIA injects database expertise into the LLM using a high-quality demonstration pool and comprehensive workload feature extraction, while iteratively incorporating database feedback to guide the index refinement. This design enables LLMIA to emulate the decision-making process of expert DBAs: efficiently recommending and refining indexes for various workloads within just a few interactions with the DBMS. We validate LLMIA with extensive experiments on five standard OLAP benchmarks (TPC-H with different scales, JOB, TPC-DS, SSB), where it consistently outperforms or matches 12 baselines by producing superior index recommendations with minimal database interactions. Additionally, LLMIA demonstrates robust generalization on two real-world commercial workloads, delivering high-quality recommendations without the need for additional adaptation or retraining, highlighting its out-of-the-box capability.

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

↑