Secure Noise Sampling for DP in MPC with Finite Precision

Hannah Keller, Helen Möllering, Thomas Schneider, Oleksandr Tkachenko, Liang Zhao

TL;DR

This paper bridges the gap between Secure Multi-party Computation (MPC) and Differential Privacy (DP) by introducing efficient protocols for sampling noise on finite-precision computers. It provides the first MPC implementations of DP mechanisms—like the snapping and integer-scaling mechanisms—that are specifically designed to thwart "precision-based attacks" which can otherwise deanonymize entire databases.

What Problem Does This Paper Address?

In the world of privacy-preserving data analysis, we often use two tools: MPC (which hides the data during calculation) and DP (which hides individuals' presence in the final result by adding noise).

The "textbook" way to achieve DP is to add noise from continuous distributions like Laplace or Gaussian. However, computers don't work with infinite-precision real numbers; they use finite-precision floating-point numbers. Researchers have previously shown that an attacker can exploit the "gaps" in floating-point representations to recover sensitive data, effectively breaking the DP guarantee.

While there are "plaintext" algorithms designed to fix this (like the Snapping mechanism), implementing them inside MPC is incredibly difficult. MPC requires "oblivious" execution—you can't have if statements that depend on secret data, and you can't simply loop until a valid noise sample is generated without leaking information through timing.

Methods

The authors propose tailored MPC protocols for five DP mechanisms that are resilient to precision-based attacks:

  1. Discrete Laplace & Discrete Gaussian: Sampling integers instead of floats to avoid precision issues entirely.
  2. Snapping Mechanism: A floating-point mechanism that clamps and rounds outputs to prevent fine-grained leakage.
  3. Integer-Scaling Laplace & Gaussian: Mechanisms that scale discrete noise to simulate continuous distributions safely.

Key Innovations:

  • Fixed-Iteration Sampling: To prevent timing attacks (where the time taken to sample noise reveals its magnitude), the authors fix the number of iterations in rejection sampling. They mathematically derive the "failure probability" to ensure it remains cryptographically negligible.
  • MPC-Specific Optimizations: They avoid expensive operations like floating-point division by using plaintext pre-computation and "MulPow2" (manipulating the exponent bit of a float directly), which is up to 20x faster than standard division.
  • Mixed-Protocol Execution: They use the MOTION framework to switch between different types of secret sharing (Boolean, Arithmetic, and GMW/BMR) to find the most efficient way to compute each sub-step of the noise generation.

Datasets

As this is a systems and cryptography paper, the authors do not use traditional machine learning training sets. Instead, they evaluate their protocols using:

  • Synthetic Query Benchmarks: Measuring the time to generate noise for various batch sizes (1 to 40 queries).
  • Network Environments: Testing across LAN10 (10-Gbps), LAN1 (1-Gbps), and WAN100 (100ms latency) to simulate real-world distributed deployments.

Key Insights and Ideas

  • The "Finite Precision" Vulnerability is Real: The paper emphasizes that MPC isn't a "silver bullet." Even if the computation is secure, if the underlying DP algorithm is mathematically flawed on finite-precision hardware, the system is vulnerable.
  • Batching is Essential: Generating a single noise value in MPC can be slow (up to several seconds for complex distributions). However, by "batching" queries, the cost per query drops to as low as 1ms, making it practical for high-throughput systems.
  • Floating-Point is the Bottleneck: While integer-based (discrete) mechanisms are often preferred, some applications require floating-point outputs. The authors show that with careful circuit optimization, even complex floating-point natural logarithms and rounding can be made efficient in MPC.

Key Results

  • Efficiency: Online runtimes are highly practical, generally staying under 32 ms per query. With batching, this drops to ~1 ms.
  • Optimization Speedups: Their optimized Bernoulli sampling is 4.8x to 6.5x faster than a naive implementation. Their integer division approach is up to 20x faster.
  • Security: Unlike previous MPC-DP works, these protocols are explicitly secure against precision-based attacks (e.g., Mironov’s attack) and timing attacks.
  • Practical Offline Phase: Most of the heavy lifting (noise generation) can be done in an "offline" phase before the actual data arrives, requiring only 51ms to 5.6s depending on the batch size.

Limitations and Future Work

  • Memory Constraints: The authors noted that for complex distributions like the Discrete Gaussian, memory restrictions on their hardware limited the maximum batch size they could test, especially as the number of parties ($N$) increased.
  • Symmetrical Binomial Overhead: The integer-scaling Gaussian mechanism requires a large number of iterations (over 430) to reach a high security parameter, making it significantly slower than the Laplace variants.
  • Future Directions: The authors suggest exploring piecewise polynomials to approximate expensive floating-point operations (like exponentiation) to further reduce the "gate count" in MPC circuits. They also aim to extend these protocols to handle malicious adversaries (the current work assumes "semi-honest" parties).

Summary updated

BibTeX
@inproceedings{keller2024secure,
  author = {Hannah Keller and Helen Möllering and Thomas Schneider and Oleksandr Tkachenko and Liang Zhao},
  title = {{Secure Noise Sampling for DP in MPC with Finite Precision}},
  booktitle = {ARES},
  year = {2024},
  doi = {10.1145/3664476.3664490},
}
Figure