arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2112.13099cs.DBcs.LG
收藏

分析查询处理的数据结构微调

Fine-Tuning Data Structures for Analytical Query Processing

University of Edinburgh(爱丁堡大学);University of Oxford(牛津大学)

Amir Shaikhha, Marios Kelepeshis, Mahdi Ghorbani

摘要:

我们介绍了一个框架,自动选择数据结构,以支持分析工作负载的有效计算。我们的贡献是双重的。首先,我们介绍了一种新的低级中间语言,它可以表达各种查询处理范例(如经典连接,groupjoin和数据库内机器学习引擎)背后的算法。这种语言是围绕字典的概念设计的,并允许对其低级实现进行更细粒度的选择。第二,通过结合机器学习和程序推理,自动推断备选实现的成本模型。使用在给定硬件架构上的字典操作的剖析数据集上训练的回归模型来学习字典成本模型。使用静态程序分析推断程序成本模型。我们的实验结果表明,训练成本模型的有效性微基准。此外,我们表明,我们的框架生成的代码的性能优于或与最先进的分析查询引擎和最近的数据库中的机器学习框架。

英文摘要:

We introduce a framework for automatically choosing data structures to support efficient computation of analytical workloads. Our contributions are twofold. First, we introduce a novel low-level intermediate language that can express the algorithms behind various query processing paradigms such as classical joins, groupjoin, and in-database machine learning engines. This language is designed around the notion of dictionaries, and allows for a more fine-grained choice of its low-level implementation. Second, the cost model for alternative implementations is automatically inferred by combining machine learning and program reasoning. The dictionary cost model is learned using a regression model trained over the profiling dataset of dictionary operations on a given hardware architecture. The program cost model is inferred using static program analysis. Our experimental results show the effectiveness of the trained cost model on micro benchmarks. Furthermore, we show that the performance of the code generated by our framework either outperforms or is on par with the state-of-the-art analytical query engines and a recent in-database machine learning framework.

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

↑