实用的基于MCTS的查询优化:可重复性研究及新的MCTS算法用于复杂查询
Practical MCTS-based Query Optimization: A Reproducibility Study and new MCTS algorithm for complex queries
AI总结:
本文研究了基于MCTS的查询优化方法的可重复性,发现其在多样工作负载下表现不稳定,提出新的MCTS框架结合标准成本模型和改进的UCT策略,在复杂连接场景中优于现有方法。
摘要:
蒙特卡洛树搜索(MCTS)已被提出作为数据库查询处理中连接顺序优化的变革性方法,近期框架如AlphaJoin和HyperQO声称优于传统方法。然而,这些框架依赖于学习的成本模型引发了关于通用性和部署准备性的担忧。本文展示了这些方法的全面可重复性研究,发现它们在面对多样化工作负载时往往无法支持所声称的性能提升。通过消融研究,我们诊断出不稳定的根本原因:尽管MCTS搜索策略有效,但伴随的learned成本模型却遭受严重的分布外泛化错误。为解决此问题,我们提出了一种新的MCTS框架。不同于先前方法依赖于不稳定的learned组件,我们的方法利用数据库标准内部成本模型,并辅以新的极端UCT(Upper Confidence Bound applied to Trees)选择策略以更稳健地导航搜索空间。我们通过Join Order Benchmark(JOB)和新的JOB-Complex基准,将方法与原始AlphaJoin和HyperQO以及行业标准基线包括动态规划(DP)和遗传查询优化(GEQO)进行基准测试。结果表明,我们的方法优于learned MCTS方法,并在现实数据的复杂连接场景中优于最先进的查询优化器。我们发布完整的实现和实验 artifacts 以支持进一步研究。
英文摘要:
Monte Carlo Tree Search (MCTS) has been proposed as a transformative approach to join-order optimization in database query processing, with recent frameworks such as AlphaJoin and HyperQO claiming to outperform traditional methods. However, the fact that these frameworks rely on learned cost models raises concerns related to generalizability and deployment readiness. This paper presents a comprehensive reproducibility study of these methods, revealing that they often fail to support the claimed performance gains when subjected to diverse workloads. Through an ablation study, we diagnose the root cause of this instability: while the MCTS search strategy is effective, the accompanying learned cost models suffer from severe out-of-distribution generalization errors. Addressing this, we propose a novel MCTS framework. Unlike prior methods that rely on unstable learned components, our approach utilizes the database standard internal cost model, augmented by a new Extreme UCT (Upper Confidence Bound applied to Trees) selection policy to navigate the search space more robustly. We benchmark our method against the original AlphaJoin and HyperQO, as well as industry-standard baselines including Dynamic Programming (DP) and Genetic Query Optimization (GEQO), using the well-known Join Order Benchmark (JOB) and the new JOB-Complex benchmark. The results demonstrate that our approach outperforms learned MCTS methods and achieves superiority over a SOTA query optimizer in complex join scenarios on real-world data. We release the full implementation and experimental artifacts to support further research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。