arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.13494cs.DBcs.AIcs.LG
收藏

Duet:高效且可扩展的混合神经关系基数理解

Duet: efficient and scalable hybriD neUral rElation undersTanding

Harbin Institute of Technology(哈尔滨工业大学)

Kaixin Zhang, Hongzhi Wang, Yabin Lu, Ziqi Li, Chang Shu, Yu Yan, Donghua Yang

AI总结:

本文提出混合神经基数估计方法 Duet,通过将谓词信息引入自回归模型,消除渐进采样带来的训练成本高、不稳定和长尾分布等问题,实现无采样的直接基数估计,将推理复杂度从 O(n) 降至 O(1),并在高基数高维表上取得更高精度和更低推理成本。

摘要:

学习型基数估计方法相比传统方法已取得较高精度。在学习型方法中,查询驱动方法长期面临工作负载漂移问题。尽管数据驱动和混合方法被提出以避免该问题,但其中大多数在高维表上存在训练和估计成本高、可扩展性有限、不稳定以及长尾分布问题,严重影响了学习型基数估计器的实际应用。本文证明这些问题大多是由广泛使用的渐进采样直接导致的。我们通过将谓词信息引入自回归模型来解决该问题,并提出 Duet,一种稳定、高效且可扩展的混合方法,可直接估计基数而无需采样或任何不可微过程。与 Naru 和 UAE 相比,Duet 不仅将推理复杂度从 $O(n)$ 降低到 $O(1)$,而且在高基数和高维表上实现了更高的精度。实验结果表明,Duet 能够实现上述所有设计目标,并且更具实用性。此外,Duet 在 CPU 上的推理成本甚至低于大多数学习型方法在 GPU 上的推理成本。

英文摘要:

Learned cardinality estimation methods have achieved high precision compared to traditional methods. Among learned methods, query-driven approaches have faced the workload drift problem for a long time. Although both data-driven and hybrid methods are proposed to avoid this problem, most of them suffer from high training and estimation costs, limited scalability, instability, and long-tail distribution problems on high-dimensional tables, which seriously affects the practical application of learned cardinality estimators. In this paper, we prove that most of these problems are directly caused by the widely used progressive sampling. We solve this problem by introducing predicate information into the autoregressive model and propose Duet, a stable, efficient, and scalable hybrid method to estimate cardinality directly without sampling or any non-differentiable process, which can not only reduce the inference complexity from $O(n)$ to $O(1)$ compared to Naru and UAE but also achieve higher accuracy on high cardinality and high-dimensional tables. Experimental results show that Duet can achieve all the design goals above and be much more practical. Besides, Duet even has a lower inference cost on CPU than that of most learned methods on GPU.

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

↑