Table of Contents
Fetching ...

CommonSense: Efficient Set Intersection (SetX) Protocol Based on Compressed Sensing

Jingfan Meng, Tianji Yang, Jun Xu

TL;DR

This work reframes set intersection (SetX) as fundamentally cheaper than set reconciliation (SetR) and introduces CommonSense, the first exact SetX protocol tailored to communication efficiency via compressed sensing with a binary sparse matrix satisfying RIP-1. The unidirectional protocol achieves one-round communication by encoding Alice's set into a CS sketch and decoding Bob's missing elements; the bidirectional extension uses ping-pong decoding with a set membership filter to prevent hallucinations, achieving substantial gains over IBLT and ECC-based SetR approaches in practice. The authors provide a principled information-theoretic lower bound for SetX, demonstrate a friendly and CS-theory-compliant matrix design, and validate performance on synthetic and Ethereum-scale data, showing up to an order-of-magnitude improvement in communication cost. The work also outlines concrete applications in blockchain propagation, network measurement, data streams, databases, and delta synchronization, highlighting the practical impact of reduced communication overhead in distributed systems.

Abstract

In the set reconciliation (\textsf{SetR}) problem, two parties Alice and Bob, holding sets $\mathsf{A}$ and $\mathsf{B}$, communicate to learn the symmetric difference $\mathsf{A} Δ\mathsf{B}$. In this work, we study a related but under-explored problem: set intersection (\textsf{SetX})~\cite{Ozisik2019}, where both parties learn $\mathsf{A} \cap \mathsf{B}$ instead. However, existing solutions typically reuse \textsf{SetR} protocols due to the absence of dedicated \textsf{SetX} protocols and the misconception that \textsf{SetR} and \textsf{SetX} have comparable costs. Observing that \textsf{SetX} is fundamentally cheaper than \textsf{SetR}, we developed a multi-round \textsf{SetX} protocol that outperforms the information-theoretic lower bound of \textsf{SetR} problem. In our \textsf{SetX} protocol, Alice sends Bob a compressed sensing (CS) sketch of $\mathsf{A}$ to help Bob identify his unique elements (those in $\mathsf{B \setminus A}$). This solves the \textsf{SetX} problem, if $\mathsf{A} \subseteq \mathsf{B}$. Otherwise, Bob sends a CS sketch of the residue (a set of elements he cannot decode) back to Alice for her to decode her unique elements (those in $\mathsf{A \setminus B}$). As such, Alice and Bob communicate back and forth %with a set membership filter (SMF) of estimated $\mathsf{B \setminus A}$. Alice updates $\mathsf{A}$ and communication repeats until both parties agrees on $\mathsf{A} \cap \mathsf{B}$. On real world datasets, experiments show that our $\mathsf{SetX}$ protocol reduces the communication cost by 8 to 10 times compared to the IBLT-based $\mathsf{SetR}$ protocol.

CommonSense: Efficient Set Intersection (SetX) Protocol Based on Compressed Sensing

TL;DR

This work reframes set intersection (SetX) as fundamentally cheaper than set reconciliation (SetR) and introduces CommonSense, the first exact SetX protocol tailored to communication efficiency via compressed sensing with a binary sparse matrix satisfying RIP-1. The unidirectional protocol achieves one-round communication by encoding Alice's set into a CS sketch and decoding Bob's missing elements; the bidirectional extension uses ping-pong decoding with a set membership filter to prevent hallucinations, achieving substantial gains over IBLT and ECC-based SetR approaches in practice. The authors provide a principled information-theoretic lower bound for SetX, demonstrate a friendly and CS-theory-compliant matrix design, and validate performance on synthetic and Ethereum-scale data, showing up to an order-of-magnitude improvement in communication cost. The work also outlines concrete applications in blockchain propagation, network measurement, data streams, databases, and delta synchronization, highlighting the practical impact of reduced communication overhead in distributed systems.

Abstract

In the set reconciliation (\textsf{SetR}) problem, two parties Alice and Bob, holding sets and , communicate to learn the symmetric difference . In this work, we study a related but under-explored problem: set intersection (\textsf{SetX})~\cite{Ozisik2019}, where both parties learn instead. However, existing solutions typically reuse \textsf{SetR} protocols due to the absence of dedicated \textsf{SetX} protocols and the misconception that \textsf{SetR} and \textsf{SetX} have comparable costs. Observing that \textsf{SetX} is fundamentally cheaper than \textsf{SetR}, we developed a multi-round \textsf{SetX} protocol that outperforms the information-theoretic lower bound of \textsf{SetR} problem. In our \textsf{SetX} protocol, Alice sends Bob a compressed sensing (CS) sketch of to help Bob identify his unique elements (those in ). This solves the \textsf{SetX} problem, if . Otherwise, Bob sends a CS sketch of the residue (a set of elements he cannot decode) back to Alice for her to decode her unique elements (those in ). As such, Alice and Bob communicate back and forth %with a set membership filter (SMF) of estimated . Alice updates and communication repeats until both parties agrees on . On real world datasets, experiments show that our protocol reduces the communication cost by 8 to 10 times compared to the IBLT-based protocol.
Paper Structure (37 sections, 4 theorems, 10 equations, 2 figures, 2 tables, 1 algorithm)

This paper contains 37 sections, 4 theorems, 10 equations, 2 figures, 2 tables, 1 algorithm.

Key Result

Theorem 2

CommonSense solves unidirectional SetX using one round and $O(d\log(|\mathsf{B}|/d))$ bits of communication (see the second remark in the last paragraph of ssec:hash-encoding), $O(|\mathsf{B}| \log(|\mathsf{B}|/d))$ encoding time complexity for Alice (see ssec:hash-encoding), and $O(|\mathsf{B}|(\lo

Figures (2)

  • Figure 1: Workflow of CommonSense. SMF refers to a set membership filter (see \ref{['ssec:membership']}), for example a Bloom filter.
  • Figure 2: Comparison of average communication costs among 10,000 randomly generated pairs of $\mathsf{A}$ and $\mathsf{B}$ in each group. We fix $|{\mathsf{A} \cap \mathsf{B}}|$ at 1,000,000 in all groups. The communication costs of error correction codes (ECC) are optimistically (to our disadvantage) estimated from the lower bounds in Minsky2003. 1MB is $10^6$ bytes.

Theorems & Definitions (12)

  • Definition 1
  • Theorem 2
  • Example 3
  • Definition 4
  • Definition 5
  • Definition 6
  • Theorem 7
  • Theorem 8: Theorem 16 in berinde-thesis
  • Example 11
  • Example 13
  • ...and 2 more