用于联合项目操作的密度优化无交集映射和矩阵乘法(扩展版)
Density-optimized Intersection-free Mapping and Matrix Multiplication for Join-Project Operations (extended version)
摘要:
Join-Project操作是一个连接操作,后面是一个重复消除投影操作。它用于各种各样的应用程序,包括实体匹配,集合分析和图形分析。以前的工作提出了一种混合设计,利用经典的解决方案(即,join和deduplication)和MM(矩阵乘法)来分别处理输入数据的稀疏和密集部分。然而,我们在现有技术的解决方案中观察到三个问题:1)稀疏部分和密集部分的输出重叠,需要额外的重复数据删除步骤; 2)其表到矩阵的变换使得属性值的假设过于简化;以及3)在BLAS包中所采用的MM与Join-Project操作的特性之间存在不匹配。在本文中,我们提出了DIM 3,一个优化的算法的Join-Project操作。为了解决1),我们提出了一种无交叉分区方法,以完全删除最后的重复数据删除步骤。对于2),我们开发了一个优化设计,用于将属性值映射到自然数。对于3),我们提出了DenseEC和SparseBMM算法,以利用Join-Project的结构来提高效率。此外,我们扩展DIM 3考虑部分结果缓存和支持Join-op查询,包括Join-Aggregate和MJP(Multi-way Joins with Projection)。使用真实世界和合成数据集的实验结果表明,DIM 3优于以前的Join-Project解决方案的2.3倍-18倍。与RDBMS相比,DIM 3实现了数量级的加速。
英文摘要:
A Join-Project operation is a join operation followed by a duplicate eliminating projection operation. It is used in a large variety of applications, including entity matching, set analytics, and graph analytics. Previous work proposes a hybrid design that exploits the classical solution (i.e., join and deduplication), and MM (matrix multiplication) to process the sparse and the dense portions of the input data, respectively. However, we observe three problems in the state-of-the-art solution: 1) The outputs of the sparse and dense portions overlap, requiring an extra deduplication step; 2) Its table-to-matrix transformation makes an over-simplified assumption of the attribute values; and 3) There is a mismatch between the employed MM in BLAS packages and the characteristics of the Join-Project operation. In this paper, we propose DIM3, an optimized algorithm for the Join-Project operation. To address 1), we propose an intersection-free partition method to completely remove the final deduplication step. For 2), we develop an optimized design for mapping attribute values to natural numbers. For 3), we propose DenseEC and SparseBMM algorithms to exploit the structure of Join-Project for better efficiency. Moreover, we extend DIM3 to consider partial result caching and support Join-op queries, including Join-Aggregate and MJP (Multi-way Joins with Projection). Experimental results using both real-world and synthetic data sets show that DIM3 outperforms previous Join-Project solutions by a factor of 2.3x-18x. Compared to RDBMSs, DIM3 achieves orders of magnitude speedups.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。