Skip to main content
QUICK REVIEW

[Paper Review] Precision-based attacks and interval refining: how to break, then fix, differential privacy on finite computers

Samuel Haney, Damien Desfontaines|arXiv (Cornell University)|Jul 27, 2022
Privacy-Preserving Technologies in DataComputer Science7 citations
TL;DR

This paper introduces interval refining, a novel technique to safely implement differentially private mechanisms on finite-precision computers by iteratively narrowing intervals until they map to a single floating-point number. The method ensures minimal error and provable privacy, matching exact sampling from continuous distributions followed by rounding, and is applied to the Laplace mechanism with 30,000 samples/sec throughput and 98% termination in one iteration.

ABSTRACT

Despite being raised as a problem over ten years ago, the imprecision of floating point arithmetic continues to cause privacy failures in the implementations of differentially private noise mechanisms. In this paper, we highlight a new class of vulnerabilities, which we call \emph{precision-based attacks}, and which affect several open source libraries. To address this vulnerability and implement differentially private mechanisms on floating-point space in a safe way, we propose a novel technique, called \emph{interval refining}. This technique has minimal error, provable privacy, and broad applicability. We use interval refining to design and implement a variant of the Laplace mechanism that is equivalent to sampling from the Laplace distribution and rounding to a float. We report on the performance of this approach, and discuss how interval refining can be used to implement other mechanisms safely, including the Gaussian mechanism and the exponential mechanism.

Motivation & Objective

  • To identify and demonstrate a new class of vulnerabilities—precision-based attacks—that compromise differential privacy in floating-point implementations.
  • To address the limitations of existing mitigation techniques in popular libraries, which are either complex, not generalizable, or introduce privacy loss.
  • To design a technique that enables safe, provably private, and minimally erroneous sampling from continuous distributions on finite-precision systems.
  • To demonstrate broad applicability of the method beyond the Laplace mechanism, including Gaussian and exponential mechanisms.

Proposed method

  • The method uses interval refining: iteratively sampling and narrowing intervals in floating-point space until the entire interval rounds to a single float.
  • It leverages arbitrary-precision ball arithmetic via the Arb library to compute inverse CDFs with guaranteed error bounds, ensuring correctness.
  • Instead of sampling one bit per iteration, the implementation samples 63 bits per step, reducing runtime by ~40x while preserving correctness.
  • The approach emulates exact sampling from a continuous distribution followed by rounding, with error only from the unavoidable rounding step.
  • Termination is guaranteed when the interval fits within a single floating-point number, ensuring deterministic output for each sample.
  • The technique is generalizable and can be adapted to other mechanisms, such as noisy argmax and quantile estimation, by adjusting termination conditions.

Experimental results

Research questions

  • RQ1How can floating-point arithmetic introduce privacy leaks in differentially private mechanisms, even when using standard noise distributions?
  • RQ2Why are existing mitigation strategies in popular libraries like diffprivlib, SmartNoise Core, and OpenDP still vulnerable to precision-based attacks?
  • RQ3Can a technique be designed that ensures both minimal error and provable privacy in floating-point implementations of differential privacy?
  • RQ4How can interval refining be used to safely implement the Laplace mechanism with performance comparable to naive floating-point sampling?
  • RQ5To what extent can interval refining be generalized to other differentially private mechanisms, such as the Gaussian and exponential mechanisms?

Key findings

  • The proposed interval refining technique achieves the same error as exact sampling from the Laplace distribution followed by rounding to the nearest float, with no additional error from the sampling process.
  • The implementation in the Tumult platform achieves a throughput of 30,000 samples per second, demonstrating practical performance.
  • 98% of samples terminate in a single iteration, with only 2% requiring two iterations, and no samples requiring three or more iterations in 20 million trials.
  • The method is provably private and maintains the same privacy guarantees as the abstract algorithm, making it compatible with pure and zero-concentrated DP accounting.
  • The technique is robust and generalizable, with potential for extension to complex mechanisms like the exponential mechanism and noisy argmax.
  • The use of Arb’s ball arithmetic ensures correctness by bounding errors throughout the computation, even when approximating inverse CDFs.

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.