arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1602.08845cs.DB
收藏

点积连接:一种用于大模型分析的数组关系连接算子

Dot-Product Join: An Array-Relation Join Operator for Big Model Analytics

Chengjie Qin, Florin Rusu

摘要:

大模型分析处理超出单个计算设备的可用内存的大规模模型的训练,例如,CPU或GPU。它概括了大数据分析,其目标是如何在内存不足的训练数据上训练内存驻留模型。在本文中,我们提出了一种用于大模型分析的数据库内解决方案。我们确定点积作为训练广义线性模型的主要操作,并介绍了第一个数组关系点积连接数据库操作之间的一组稀疏数组和密集关系。这是广泛研究的稀疏矩阵向量乘法(SpMV)内核的约束配方。设计点积连接运算符的最大挑战是如何根据稀疏数组中的非连续条目优化调度对密集关系的访问。我们证明了这个问题是NP难的,并提出了一个实用的解决方案,其特点是两个技术贡献-动态批处理和数组重排。我们设计了三种算法- LSH,基数,和K-中心-阵列重新排序,并进行了深入的分析。我们执行广泛的实验,合成和真实的数据,确认最小的开销时,有足够的内存和优雅的退化,它遭受内存变得稀缺的运营商。此外,点积连接实现了一个数量级的减少执行时间比其他数据库内的解决方案。

英文摘要:

Big Model analytics tackles the training of massive models that go beyond the available memory of a single computing device, e.g., CPU or GPU. It generalizes Big Data analytics which is targeted at how to train memory-resident models over out-of-memory training data. In this paper, we propose an in-database solution for Big Model analytics. We identify dot-product as the primary operation for training generalized linear models and introduce the first array-relation dot-product join database operator between a set of sparse arrays and a dense relation. This is a constrained formulation of the extensively studied sparse matrix vector multiplication (SpMV) kernel. The paramount challenge in designing the dot-product join operator is how to optimally schedule access to the dense relation based on the non-contiguous entries in the sparse arrays. We prove that this problem is NP-hard and propose a practical solution characterized by two technical contributions---dynamic batch processing and array reordering. We devise three heuristics -- LSH, Radix, and K-center -- for array reordering and analyze them thoroughly. We execute extensive experiments over synthetic and real data that confirm the minimal overhead the operator incurs when sufficient memory is available and the graceful degradation it suffers as memory becomes scarce. Moreover, dot-product join achieves an order of magnitude reduction in execution time over alternative in-database solutions.

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

↑