FESIA: A Fast and SIMD-Efficient Set Intersection Approach on Modern CPUs
Jiyuan Zhang, Yi Lu, Daniele G. Spampinato, Franz Franchetti
Abstract
Set intersection is an important operation and widely used in both database and graph analytics applications. However, existing state-of-the-art set intersection methods only consider the size of input sets and fail to optimize for the case in which the intersection size is small. In real-world scenarios, the size of most intersections is usually orders of magnitude smaller than the size of the input sets, e.g., keyword search in databases and common neighbor search in graph analytics. In this paper, we present FESIA, a new set intersection approach on modern CPUs. The time complexity of our approach is O(n/ √ w + r), in which w is the SIMD width, and n and r are the size of input sets and intersection size, respectively. The key idea behind FESIA is that it first uses bitmaps to filter out unmatched elements from the input sets, and then selects suitable specialized kernels (i.e., small function blocks) at runtime to compute the final intersection on each pair of bitmap segments. In addition, all data structures in FESIA are designed to take advantage of SIMD instructions provided by vector ISAs with various SIMD widths, including SSE, AVX, and the latest AVX512. Our experiments on both realworld and synthetic datasets show that our intersection method achieves more than an order of magnitude better performance than conventional scalar implementations, and up to 4x better performance than state-of-the-art SIMD implementations.
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 itRelated papers
- HERO: A Hierarchical Set Partitioning and Join Framework for Speeding up the Set Intersection Over GraphsBoyu Yang, Weiguo Zheng, Xiang Lian, Yuzheng Cai et al.SIGMOD 2024 · 5 citations
- Many-Core Clique Enumeration with Fast Set IntersectionsJovan Blanusa, Radu Stoica, Paolo Ienne, Kubilay AtasuVLDB 2020
- SISA: Set-Centric Instruction Set Architecture for Graph Mining on Processing-in-Memory SystemsMaciej Besta, Raghavendra Kanakagiri, Grzegorz Kwasniewski, Rachata Ausavarungnirun et al.MICRO 2021 · 78 citations
- X-SET: An Efficient Graph Pattern Matching Accelerator With Order-Aware Parallel Intersection UnitsChenxi Xu, Tianhui Shi, Shixuan Sun, Jidong Zhai et al.MICRO 2025 · 1 citation
- Database Processing-in-Memory: An Experimental StudyTiago Rodrigo Kepe, Eduardo C. de Almeida, Marco A. Z. AlvesVLDB 2020 · 22 citations
