Density-optimized Intersection-free Mapping and Matrix Multiplication for Join-Project Operations
Zichun Huang, Shimin Chen
Abstract
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
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers1
Ask how each one uses itBuilds on2
Related papers
- DiskJoin: Large-scale Vector Similarity Join with SSDYanqi Chen, Xiao Yan, Alexandra Meliou, Eric LoSIGMOD 2026 · 2 citations
- In-Database Regression in Input Sparsity TimeRajesh Jayaram, Alireza Samadian, David P. Woodruff, Peng YeICML 2021 · 8 citations
- Advancing Fact Attribution for Query Answering: Aggregate Queries and Novel AlgorithmsOmer Abramovich, Daniel Deutch, Nave Frost, Ahmet Kara et al.VLDB 2025 · 4 citations
- Robust Join Processing with Diamond Hardened JoinsAltan Birler, Alfons Kemper, Thomas NeumannVLDB 2024 · 23 citations
- FUDJ: Flexible User-Defined Distributed JoinsAkil Sevim, Ahmed Eldawy, E. Preston Carman, Michael J. Carey et al.ICDE 2024 · 1 citation
