[Paper Review] Cardinality Estimators do Not Preserve Privacy
This paper demonstrates that cardinality estimators like HyperLogLog cannot preserve privacy due to their inherent aggregation properties. Even under a weak privacy definition—where attackers have no prior knowledge—these algorithms leak significant information about individual data elements, making them as sensitive as raw data.
Cardinality estimators like HyperLogLog are sketching algorithms that estimate the number of distinct elements in a large multiset. Their use in privacy-sensitive contexts raises the question of whether they leak private information. In particular, can they provide any privacy guarantees while preserving their strong aggregation properties? We formulate an abstract notion of cardinality estimators, that captures this aggregation requirement: one can merge sketches without losing precision. We propose an attacker model and a corresponding privacy definition, strictly weaker than differential privacy: we assume that the attacker has no prior knowledge of the data. We then show that if a cardinality estimator satisfies this definition, then it cannot have a reasonable level of accuracy. We prove similar results for weaker versions of our definition, and analyze the privacy of existing algorithms, showing that their average privacy loss is significant, even for multisets with large cardinalities. We conclude that strong aggregation requirements are incompatible with any reasonable definition of privacy, and that cardinality estimators should be considered as sensitive as raw data. We also propose risk mitigation strategies for their real-world applications.
Motivation & Objective
- To investigate whether cardinality estimators can provide privacy guarantees while maintaining strong aggregation capabilities.
- To define a formal attacker model and privacy definition that is strictly weaker than differential privacy but still meaningful for practical systems.
- To prove that any cardinality estimator satisfying this privacy definition cannot achieve reasonable accuracy.
- To analyze the actual privacy loss of widely used algorithms like HyperLogLog and HyperLogLog++.
- To propose risk mitigation strategies for real-world deployment of cardinality estimators.
Proposed method
- Proposes an abstract model of cardinality estimators that captures key properties: idempotence, commutativity, and a well-behaved merge operation.
- Introduces a privacy definition based on knowledge gain, assuming no prior attacker knowledge about target presence in a dataset.
- Uses information-theoretic analysis to show that any estimator satisfying this privacy definition must have unacceptably low accuracy.
- Empirically measures the average privacy loss of HyperLogLog and HyperLogLog++ across various cardinalities and attack scenarios.
- Proposes mitigation strategies including restricted APIs and hash salting to limit direct access to sketch internals.
- Analyzes the feasibility of homomorphic encryption as a potential privacy-preserving alternative, though noting high computational cost.
Experimental results
Research questions
- RQ1Can cardinality estimators preserve privacy under a weak privacy definition that assumes no prior knowledge for the attacker?
- RQ2Is it possible to design an accurate cardinality estimator that satisfies the proposed privacy definition while maintaining mergeability and aggregation properties?
- RQ3What is the actual level of privacy leakage in widely deployed algorithms like HyperLogLog and HyperLogLog++?
- RQ4How do structural properties of cardinality estimators—such as idempotence and commutativity—lead to inevitable privacy violations?
- RQ5What practical mitigation strategies can reduce the risk of inference attacks on cardinality estimator sketches?
Key findings
- Any cardinality estimator satisfying the proposed privacy definition must have unacceptably low accuracy, making it impractical for real-world use.
- Even under a weak privacy definition (no prior knowledge), cardinality estimators leak significant information about individual data elements.
- The average privacy loss of HyperLogLog and HyperLogLog++ is substantial, even for large multisets, indicating high re-identification risk.
- The structural properties of cardinality estimators—idempotence, commutativity, and mergeability—are fundamentally incompatible with meaningful privacy.
- Sketches from cardinality estimators should be treated as sensitive as raw data due to their re-identification potential.
- Risk mitigation strategies such as restricted APIs and hash salting can reduce but not eliminate privacy leakage, especially against determined attackers.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.