An Effective and Differentially Private Protocol for Secure Distributed Cardinality Estimation

Pinghui Wang, Chengjin Yang, Dongdong Xie, Junzhou Zhao, Hui Li, Jing Tao, Xiaohong Guan

Abstract

Estimating the number of unique elements across distributed datasets—Distributed Cardinality Computing (DCC)—is a fundamental task in data analytics. However, existing methods often struggle to balance computational efficiency, estimation accuracy, and rigorous privacy guarantees. This paper introduces DP-DICE, a novel protocol that achieves high-performance distributed cardinality estimation with Differential Privacy (DP). By utilizing a new sketch design with minimal sensitivity and secure multi-party computation (MPC), DP-DICE provides orders-of-magnitude improvements in speed and accuracy over existing state-of-the-art private protocols.

1. Introduction

Distributed Cardinality Computing is essential for scenarios where multiple parties need to compute the union of their unique items without sharing raw data. For instance, health agencies may need to count unique patients across several hospitals to track disease prevalence while adhering to strict privacy regulations. While sketches like HyperLogLog (HLL) and Flajolet-Martin (FM) are efficient for local estimation, they are not inherently private; an adversary observing the final sketch can often infer the presence of specific individuals.

Previous attempts to privatize these sketches using Secure Multiparty Computation (MPC) have faced significant hurdles. Many protocols either fail to meet formal Differential Privacy standards or require so much noise to ensure privacy that the resulting estimates become unusable. Furthermore, the computational overhead of these methods often makes them impractical for resource-constrained edge devices.

2. The DP-DICE Protocol

DP-DICE addresses these challenges through a three-pillared architecture designed for low sensitivity and high efficiency.

2.1 The FMS Sketch

The primary innovation of DP-DICE is the FMS (Fast and Accurate) sketch. In traditional FM-based private protocols, the sensitivity—the maximum change a single record can cause to the output—is high, necessitating a large volume of noise to satisfy DP requirements. The FMS sketch is specifically engineered to have a sensitivity of 1. This breakthrough allows the protocol to achieve the same level of privacy with significantly less noise, preserving the accuracy of the final count.

2.2 Distributed Discrete Gaussian Noise

To avoid reliance on a single trusted party, DP-DICE employs a distributed noise generation mechanism. Each Data Holder (DH) generates a share of noise following a discrete Gaussian distribution. When these shares are aggregated during the computation phase, they form the total noise required for DP. This ensures that privacy is maintained as long as at least one computation party remains honest.

2.3 Secure Aggregation via SPDZ

The protocol leverages the SPDZ framework, a robust MPC environment that allows multiple parties to perform computations on secret-shared data. DP-DICE implements a custom ZeroTest protocol using Lagrange interpolation. This allows the system to securely count the number of zero bits in the merged FMS sketch—a critical step in cardinality estimation—without any party ever seeing the underlying bit values.

3. Evaluation

The authors evaluated DP-DICE using independent datasets with cardinalities ($n$) ranging from $10^3$ to $10^9$. The testing environment included up to 25 Data Holders and 7 Computation Parties. To simulate real-world conditions, experiments were conducted across both Local Area Networks (LAN) and Wide Area Networks (WAN) spanning three geographically distinct data centers.

3.1 Performance and Accuracy

DP-DICE demonstrated significant advantages over the previous state-of-the-art, MPC-FM:

  • Efficiency: Sketch generation for Data Holders is approximately 1,000x faster, and the total online running time is reduced by half.
  • Accuracy: Under identical privacy budgets, DP-DICE reduces the Average Absolute Relative Error (AARE) by several times compared to HLL-based methods and by hundreds of times compared to previous FM-based methods.
  • Communication: Online communication costs are reduced by a factor of 1.7x to 2.4x.

4. Discussion and Future Work

While DP-DICE represents a major step forward, the authors identify several areas for refinement. The protocol currently assumes "honest-but-curious" Data Holders; future iterations could incorporate zero-knowledge proofs to protect against malicious actors who might attempt to corrupt the count. Additionally, the current reliance on the SPDZ framework means the protocol lacks "robustness"—if a single computation party goes offline, the process fails. Migrating to a more resilient MPC framework and addressing the rare theoretical risk of modular wrap-around in noise aggregation are identified as key goals for future research.

5. Conclusion

DP-DICE successfully bridges the gap between privacy and utility in distributed cardinality estimation. By reducing the sensitivity of the underlying sketch and optimizing the secure computation pipeline, it enables accurate, private, and high-speed counting across distributed networks, making it a viable standard for privacy-preserving data analytics.

Summary updated

BibTeX
@article{wang2023effective,
  author = {Pinghui Wang and Chengjin Yang and Dongdong Xie and Junzhou Zhao and Hui Li and Jing Tao and Xiaohong Guan},
  title = {{An Effective and Differentially Private Protocol for Secure Distributed Cardinality Estimation}},
  journal = {Proc. ACM Manag. Data},
  year = {2023},
  doi = {10.1145/3588914},
}
Figure