Lune

SIGMOD2023Top-tier venue

JoinSketch: A Sketch Algorithm for Accurate and Unbiased Inner-Product Estimation

Feiyu Wang, Qizhi Chen, Yuanpeng Li, Tong Yang, Yaofeng Tu, Lian Yu, Bin Cui

Abstract

The inner-product estimation is the base of many important tasks in various big data scenarios, including measuring the similarity of streams in data stream processing, estimating join size in the database, and analyzing cosine similarity in various applications. Sketch, as a class of probabilistic algorithms, is promising in inner-product estimation. However, existing sketch solutions suffer from low accuracy due to neglecting the high skewness of real data. In this paper, we design a new sketch algorithm for accurate and unbiased inner-product estimation, namely JoinSketch. To improve accuracy, JoinSketch consists of multiple components and records items with different frequencies in different components. We theoretically prove that JoinSketch is unbiased and has lower variance than the well-known AGMS and Fast-AGMS sketch. The experimental results show that JoinSketch improves the accuracy of inner-product by 10 times on average while maintaining a comparable throughput.

All code is open-sourced at Github [1].

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • HeavyLocker: Lock Heavy Hitters in Distributed Data Streams cites SALSA: Self-Adjusting Lean Streaming Analytics
  • HeavyLocker: Lock Heavy Hitters in Distributed Data Streams cites BurstSketch: Finding Bursts in Data Streams
  • HeavyLocker: Lock Heavy Hitters in Distributed Data Streams cites DHS: Adaptive Memory Layout Organization of Sketch Slots for Fast and Accurate Data Stream Processing
  • Stingy Sketch: A Sketch Framework for Accurate and Fast Frequency Estimation cites SALSA: Self-Adjusting Lean Streaming Analytics
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Convolution and Cross-Correlation of Count Sketches Enables Fast Cardinality Estimation of Multi-Join QueriesMike Heddes, Igor Nunes, Tony Givargis, Alex NicolauSIGMOD 2024 · 5 citations
  2. Sketches-Based Join Size Estimation Under Local Differential PrivacyMeifan Zhang, Xin Liu, Lihua YinICDE 2024 · 4 citations
  3. HeavyLocker: Lock Heavy Hitters in Distributed Data StreamsQilong Shi, Xirui Li, Hanyue Zheng, Tong Yang et al.KDD 2025 · 2 citations
  4. DaVinci Sketch: A Versatile Sketch for Efficient and Comprehensive Set MeasurementsYanshu Wang, Jianan Ji, Chao-Hsuan Liu, Hengyang Zhou et al.ICDE 2025 · 2 citations
  5. Enabling Adaptive Sampling for Intra-Window Join: Simultaneously Optimizing Quantity and QualityXilin Tang, Feng Zhang, Shuhao Zhang, Yani Liu et al.SIGMOD 2025 · 1 citation

Builds on8

  1. On-Off Sketch: A Fast and Accurate Sketch on PersistenceYinda Zhang, Jinyang Li, Yutian Lei, Tong Yang et al.VLDB 2021 · 63 citations
  2. BurstSketch: Finding Bursts in Data StreamsZheng Zhong, Shen Yan, Zikun Li, Decheng Tan et al.SIGMOD 2021 · 58 citations
  3. Stingy Sketch: A Sketch Framework for Accurate and Fast Frequency EstimationHaoyu Li, Qizhi Chen, Yixin Zhang, Tong Yang et al.VLDB 2022 · 54 citations
  4. DHS: Adaptive Memory Layout Organization of Sketch Slots for Fast and Accurate Data Stream ProcessingBohan Zhao, Xiang Li, Boyu Tian, Zhiyu Mei et al.KDD 2021 · 47 citations
  5. SALSA: Self-Adjusting Lean Streaming AnalyticsRan Ben Basat, Gil Einziger, Michael Mitzenmacher, Shay VargaftikICDE 2021 · 45 citations

Related papers

  1. CodingSketch: A Hierarchical Sketch with Efficient Encoding and Recursive DecodingQizhi Chen, Yisen Hong, Yuhan Wu, Tong Yang et al.ICDE 2024 · 5 citations
  2. Hyper-USS: Answering Subset Query Over Multi-Attribute Data StreamRuijie Miao, Yiyao Zhang, Guanyu Qu, Kaicheng Yang et al.KDD 2023 · 6 citations
  3. Sampling Methods for Inner Product SketchingMajid Daliri, Juliana Freire, Christopher Musco, Aécio S. R. Santos et al.VLDB 2024 · 8 citations
  4. XY-Sketch: on Sketching Data Streams at Web ScaleYongqiang Liu, Xike XieWWW 2021 · 12 citations
  5. Bayesian Sketches for Volume Estimation in Data StreamsFrancesco Da Dalt, Simon Scherrer, Adrian PerrigVLDB 2023 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines