Verifying Differentially Private Median Estimation

Hyukjun Kwon, Chenglin FanarXiv 2025 · DOI

Abstract

Differential Privacy (DP) has emerged as the standard for privacy-preserving data analysis, yet it traditionally relies on the assumption that the data analyst honestly applies the required noise. This paper introduces VerExp, the first system to integrate the Exponential Mechanism with Zero-Knowledge Succinct Non-Interactive Arguments of Knowledge (zk-SNARKs). VerExp enables an analyst to provide a cryptographic proof that a reported median was calculated correctly according to DP standards, ensuring both data privacy and computational integrity. Our evaluation demonstrates that VerExp can generate proofs for datasets of 7,000 entries in approximately four minutes, with verification occurring in less than a second.

1. Introduction

Differential Privacy (DP) provides a mathematical framework to share statistical insights while protecting individual records. However, a significant "trust gap" exists: a malicious analyst could manipulate results—perhaps to influence a specific outcome—and attribute the discrepancy to the inherent randomness of DP. While verifiable DP has been explored for numerical queries (e.g., sums or averages using the Laplace mechanism), categorical queries using the Exponential Mechanism have remained computationally elusive for cryptographic verification.

VerExp bridges this gap by designing a specialized arithmetic circuit for zk-SNARKs (specifically the Groth16 protocol) that implements the Exponential Mechanism for median estimation. This allows for "Public Verifiability," where any third party can verify the honesty of the result without ever accessing the underlying sensitive data.

2. Technical Challenges and Methodology

Implementing the Exponential Mechanism within a zk-SNARK environment presents two primary technical hurdles: the requirement for static execution paths and the difficulty of performing transcendental math in finite fields.

2.1 Sampling in a Static Circuit

zk-SNARKs require "static" circuits, meaning the execution path cannot branch based on private data. Standard probabilistic sampling methods, such as rejection sampling, are inherently dynamic and unsuitable for this environment. VerExp addresses this by utilizing a scaled inverse Cumulative Distribution Function (CDF) sampling technique. By converting the sampling process into a series of comparisons against a precomputed, scaled CDF, the authors transform a probabilistic process into a deterministic circuit with a fixed execution path.

2.2 Exponentials in Finite Fields

zk-SNARKs operate over large prime finite fields, where calculating $e^x$ is non-trivial. VerExp implements a hybrid lookup table system to approximate these values. The system uses a physical lookup table for high-probability values and two specialized approximation methods (set0 and setk) to handle the "long tail" of the distribution. This approach ensures that the privacy guarantees ($\epsilon$ and $\delta$ parameters) remain mathematically sound without causing the circuit size to explode.

2.3 The VerExp Pipeline

The system operates through a three-stage pipeline:

  1. Commitment: Data providers commit their data to a public bulletin board using Poseidon hashes.
  2. Proof Generation: The Data Analyst (Prover) generates a zk-SNARK proof asserting that the median was sampled correctly from the committed data.
  3. Verification: A Verifier checks the proof against the public commitments to ensure the result is legitimate.

3. Experimental Evaluation

The authors evaluated VerExp using synthetic datasets to measure the computational overhead of verifiability.

  • Dataset Parameters: Tests were conducted on datasets ranging from $n = 1,000$ to $7,000$ entries, with a discrete domain $R = [0, 99]$.
  • Efficiency: For the largest tested dataset ($n = 7,000$), proof generation took approximately 4 minutes.
  • Verification Speed: Verification is highly efficient, consistently taking less than 1 second (typically under 400ms), regardless of the dataset size.
  • Privacy and Utility: Formal proofs confirm that the lookup table approximations satisfy $(\epsilon, \delta)$-Differential Privacy while maintaining high utility, ensuring the reported median remains close to the true median.

4. Discussion and Limitations

While VerExp represents a significant step forward, it is currently optimized specifically for rank-based utility functions like the median. The circuit complexity scales at $O(m \cdot n)$, where $m$ is the range size and $n$ is the number of data points. Consequently, very large ranges or massive datasets may lead to bottlenecks in proof generation time. Future research is required to generalize this approach to arbitrary categorical queries and real-valued utility functions.

5. Conclusion

VerExp demonstrates that the Exponential Mechanism can be made cryptographically verifiable without sacrificing privacy or utility. By moving the "trust assumption" from the analyst to a mathematical proof, VerExp provides a robust framework for transparent and private statistical analysis in sensitive domains.

Summary updated

BibTeX
@misc{kwon2025verifying,
  author = {Hyukjun Kwon and Chenglin Fan},
  title = {{Verifying Differentially Private Median Estimation}},
  year = {2025},
  eprint = {2505.16246},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.16246},
}
Figure