L2T-Tune:基于 LHS 与 TD3 的 LLM 引导混合数据库调优
L2T-Tune:LLM-Guided Hybrid Database Tuning with LHS and TD3
AI总结:
本文提出 LLM 引导的混合数据库调优框架 L2T-Tune,通过热启动均匀采样、LLM 挖掘调优提示和 TD3 微调,在提升性能与加速收敛方面显著优于现有方法。
摘要:
配置调优对数据库性能至关重要。尽管近年来数据库调优在吞吐量和延迟改善方面取得了可观成果,但挑战依然存在。首先,庞大的旋钮空间使得直接优化不稳定且收敛缓慢。其次,强化学习流程往往缺乏有效的热启动引导,并需要长时间的离线训练。第三,可迁移性有限:当硬件或工作负载发生变化时,现有模型通常需要大量重新训练才能恢复性能。为解决这些局限,我们提出 L2T-Tune,一种新的 LLM 引导的混合数据库调优框架,其特点是三阶段流水线:第一阶段执行热启动,在旋钮空间中同时生成均匀样本并将其记录到共享池中;第二阶段利用大语言模型从手册和社区文档中挖掘并优先排序调优提示,以实现快速收敛;第三阶段使用热启动样本池降低旋钮和状态特征的维度,然后通过 Twin Delayed Deep Deterministic Policy Gradient 算法对配置进行微调。我们在 L2T-Tune 和最先进的模型上进行了实验。与表现最佳的替代方案相比,我们的方法在所有工作负载上平均将性能提升 37.1%,在 TPC-C 上最高提升 73%。与使用强化学习训练的模型相比,它在单台服务器上的离线调优阶段实现了快速收敛。此外,在在线调优阶段,它仅需 30 步即可达到最佳结果。
英文摘要:
Configuration tuning is critical for database performance. Although recent advancements in database tuning have shown promising results in throughput and latency improvement, challenges remain. First, the vast knob space makes direct optimization unstable and slow to converge. Second, reinforcement learning pipelines often lack effective warm-start guidance and require long offline training. Third, transferability is limited: when hardware or workloads change, existing models typically require substantial retraining to recover performance. To address these limitations, we propose L2T-Tune, a new LLM-guided hybrid database tuning framework that features a three-stage pipeline: Stage one performs a warm start that simultaneously generates uniform samples across the knob space and logs them into a shared pool; Stage two leverages a large language model to mine and prioritize tuning hints from manuals and community documents for rapid convergence. Stage three uses the warm-start sample pool to reduce the dimensionality of knobs and state features, then fine-tunes the configuration with the Twin Delayed Deep Deterministic Policy Gradient algorithm. We conduct experiments on L2T-Tune and the state-of-the-art models. Compared with the best-performing alternative, our approach improves performance by an average of 37.1% across all workloads, and by up to 73% on TPC-C. Compared with models trained with reinforcement learning, it achieves rapid convergence in the offline tuning stage on a single server. Moreover, during the online tuning stage, it only takes 30 steps to achieve best results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。