Density-optimized Intersection-free Mapping and Matrix Multiplication for Join-Project Operations
Zichun Huang, Shimin Chen
摘要
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 tableto-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 DIM 3 , 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 DIM 3 to consider partial result caching and support Join-𝑜𝑝 queries, including Join-Aggregate and MJP (Multi-way Joins with Projection). Experimental results using both real-world and synthetic data sets show that DIM 3 outperforms previous Join-Project solutions by a factor of 2.3×-18×. Compared to RDBMSs, DIM 3 achieves orders of magnitude speedups. * Shimin Chen is the corresponding author. Our codes are available at https://github.com/schencoding/JoinProject-DIM3 . and deduplicates using SELECT DISTINCT. The results can be stored by the application for quick user-specific recommendations. The Join-Project operation is used in a large variety of applications [10], including entity matching, set analytics, and graph analytics. The above is an example of entity matching. Similar examples include finding users who have seen the same movies in the MovieLens data set [15] , and discovering co-authors in the DBLP data set [43] . Moreover, if tuple (𝑥,𝑦) represents that set 𝑥 contains element 𝑦, then the Join-Project operation using 𝑦 as the join key obtains all the pairs of sets that intersect with each other. Furthermore, if we interpret tuple (𝑥,𝑦) as an edge between two vertices 𝑥 and 𝑦 in a graph, then the Join-Project operation can be used to compute all pairs of vertices that are indirectly connected. |𝑌 | 𝑘=1 R 𝑥 𝑖 ,𝑦 𝑘 S 𝑦 𝑘 ,𝑧 𝑗 . A non-zero element C 𝑥 𝑖 ,𝑧 𝑗 > 0 in the matrix corresponds to a tuple (𝑥 𝑖 ,𝑧 𝑗 ) in the final output of the Join-Project operation. Compared to the classical solution, MM performs the join and the deduplication together. There are efficient MM implementations in BLAS (Basic Linear Algebra Subprograms) packages with advanced techniques [9, 26, 37]. Moreover, there are sub-cubic MM algorithms in theory. The best known is the Coppersmith-Winograd algorithm with O (𝑛 2.373 ) complexity [12]. Hybrid Solution. Recent studies [1, 10] combine the classical solution and the MM solution based on the observation that the classical
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
引用它的顶会 Paper1
- Computing the Difference of Conjunctive Queries EfficientlyXiao Hu, Qichen WangSIGMOD 2023 · 被引用 9 次
它引用的顶会 Paper2
相关 Paper
- DiskJoin: Large-scale Vector Similarity Join with SSDYanqi Chen, Xiao Yan, Alexandra Meliou, Eric LoSIGMOD 2026 · 被引用 2 次
- In-Database Regression in Input Sparsity TimeRajesh Jayaram, Alireza Samadian, David P. Woodruff, Peng YeICML 2021 · 被引用 8 次
- Advancing Fact Attribution for Query Answering: Aggregate Queries and Novel AlgorithmsOmer Abramovich, Daniel Deutch, Nave Frost, Ahmet Kara 等VLDB 2025 · 被引用 4 次
- Robust Join Processing with Diamond Hardened JoinsAltan Birler, Alfons Kemper, Thomas NeumannVLDB 2024 · 被引用 23 次
- FUDJ: Flexible User-Defined Distributed JoinsAkil Sevim, Ahmed Eldawy, E. Preston Carman, Michael J. Carey 等ICDE 2024 · 被引用 1 次
