Skip to main content
QUICK REVIEW

[Paper Review] Do I Get the Privacy I Need? Benchmarking Utility in Differential Privacy Libraries

Gonzalo Munilla Garrido, Joseph P. Near|arXiv (Cornell University)|Sep 22, 2021
Privacy-Preserving Technologies in DataComputer Science8 citations
TL;DR

This paper benchmarks five open-source differential privacy libraries—Google DP, SmartNoise, diffprivlib, diffpriv, and Chorus—across utility, scalability, and usability. It finds that while all libraries offer comparable utility for basic analytics queries, significant differences exist in analyst support, side-channel protections, and feature sets, with no single library excelling across all dimensions.

ABSTRACT

An increasing number of open-source libraries promise to bring differential privacy to practice, even for non-experts. This paper studies five libraries that offer differentially private analytics: Google DP, SmartNoise, diffprivlib, diffpriv, and Chorus. We compare these libraries qualitatively (capabilities, features, and maturity) and quantitatively (utility and scalability) across four analytics queries (count, sum, mean, and variance) executed on synthetic and real-world datasets. We conclude that these libraries provide similar utility (except in some notable scenarios). However, there are significant differences in the features provided, and we find that no single library excels in all areas. Based on our results, we provide guidance for practitioners to help in choosing a suitable library, guidance for library designers to enhance their software, and guidance for researchers on open challenges in differential privacy tools for non-experts.

Motivation & Objective

  • To evaluate the practical utility and scalability of mainstream open-source differential privacy libraries for non-expert users.
  • To identify key differences in features, analyst support, and side-channel protections across libraries.
  • To provide actionable guidance for practitioners selecting libraries, library designers improving tools, and researchers identifying open challenges.
  • To establish a reproducible benchmark framework for future evaluation of DP libraries.
  • To highlight the gap between theoretical privacy guarantees and real-world utility in deployed systems.

Proposed method

  • Conducted a qualitative comparison of five libraries based on capabilities, features, maturity, and design goals.
  • Performed quantitative benchmarking on four analytics queries—count, sum, mean, and variance—using synthetic and real-world datasets.
  • Evaluated utility through error metrics (e.g., mean squared error) and scalability via execution time on increasing dataset sizes.
  • Assessed side-channel protections, automatic sensitivity calculation, and privacy budgeting support.
  • Used reproducible code and standardized configurations to ensure fair comparison across libraries.
  • Conducted experiments under varying privacy budgets (ε) and data scales to analyze utility trade-offs.

Experimental results

Research questions

  • RQ1How do the five DP libraries compare in terms of utility and scalability across common analytics queries?
  • RQ2What are the key differences in features, analyst support, and side-channel protections among the libraries?
  • RQ3To what extent do utility results vary with data size and privacy budget (ε)?
  • RQ4How do the libraries perform in real-world versus synthetic data settings?
  • RQ5What are the practical implications of using complex mechanisms versus basic ones in real deployments?

Key findings

  • All five libraries provide similar utility for basic queries (count, sum, mean, variance), with minor variations depending on data scale and ε.
  • No library scales efficiently to truly massive datasets, indicating a need for optimization in large-scale deployment.
  • Significant differences exist in analyst support: diffprivlib offers strong data scientist support, while Google-DP provides better side-channel protection.
  • Libraries vary widely in features such as automatic sensitivity calculation, privacy budgeting, and support for machine learning.
  • Utility is not solely determined by ε; data scale and query type significantly influence error rates, especially when ε < 1 and data size ≥10,000.
  • Implementation bugs can cause anomalies (e.g., a floating-point vulnerability in WhiteNoise 0.1.3), underscoring the need for formal verification tools like stochastic testing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.