Read the paper
Verifying ε-Differential Privacy Bit by Bit
on Springer
A symbolic execution tool computes exact floating-point output distributions of randomized programs and checks ε-differential privacy bit by bit. It reproduces Mironov's attack on the Laplace mechanism and verifies the snapping mechanism, both at half precision.
| Timing (sec.) | |||
|---|---|---|---|
| Paths | Direct | Exhaustive | |
| Approx | 1 | 6 | 20 |
| core-math | 2 | 2563 | 26 |
| RLibm | 13 | 2705 | 40 |
| Timing (sec.) | ||||||||
|---|---|---|---|---|---|---|---|---|
| Paths | # Outputs | Direct | Exhaustive | |||||
| Approx | 1.0 | 10.0 | 1.06 | 13 | 1.0 | 22 | 264 | 49 |
| core-math | 1.0 | 10.0 | 1.06 | 15 | 1.0 | 22 | 160 | 81 |
| RLibm | 1.0 | 10.0 | 1.06 | 15 | 1.0 | 22 | 1655 | 455 |
| Approx | 2.0 | 1.75 | 2.021 | 13 | 0.5 | 10 | 196 | 33 |
| core-math | 2.0 | 1.75 | 2.021 | 15 | 0.5 | 10 | 142 | 55 |
| RLibm | 2.0 | 1.75 | 2.021 | 15 | 0.5 | 10 | 1928 | 294 |
| Approx | 4.0 | 1.125 | 4.027 | 13 | 0.25 | 12 | 264 | 36 |
| core-math | 4.0 | 1.125 | 4.027 | 15 | 0.25 | 12 | 133 | 54 |
| RLibm | 4.0 | 1.125 | 4.027 | 15 | 0.25 | 12 | 1620 | 305 |
Going deeper
Imagine a locksmith who adds a random jiggle to each key copy so no two are identical. The idea is that knowing one copy tells you almost nothing about the original. But the jiggle machine only moves in tiny fixed steps — it cannot land on every possible position. Some positions can only come from certain originals, and a clever thief who sees one of those positions knows exactly which original was used.
This paper builds a magnifying glass that examines every step the jiggle machine can actually land on, counts exactly how often each position comes up for each original, and checks whether any position gives the thief an unfair advantage. If it finds one, it hands over the exact position and the two originals that betray the secret. If it finds none, it certifies the machine is safe.
The catch: the magnifying glass is powerful but slow. It can only inspect the simplest jiggle machines — ones with very few possible positions. The machines used in practice have trillions of positions, and the glass would take far too long. For now, it proves the concept on a small machine and finds the same flaw the locksmith community already suspected.
The abstract, word for word, with the six densest phrases unpacked.
We propose a symbolic execution method for verifying ε -differential privacy of randomized programs that use IEEE 754 floating-point arithmetic1. In contrast to existing approaches, which reason over the real numbers2, our method computes the exact floating-point support of the output distribution and the rational probability mass of each output3. Our technique augments the probabilistic symbolic execution framework of Susag et al. [47] with bit-precise reasoning about floating-point arithmetic, and encodes the resulting differential privacy obligation as a logical query that can be discharged either by an off-the-shelf SMT solver or by an embarrassingly parallel exhaustive enumeration procedure. We implement our method in a prototype tool, FPlinko4, on top of the KLEE symbolic execution engine and the Z3 SMT solver. We evaluate FPlinko on half-precision implementations5 of the Laplace and snapping mechanisms written in C++. Our tool not only reproduces Mironov’s reconstruction attack against the Laplace mechanism but also verifies that the snapping mechanism satisfies ε -differential privacy6. To the best of our knowledge, these are the first formal analyses of ε -differential privacy for floating-point implementations of the Laplace and snapping mechanisms.
Two lines of prior work converge at this paper: differential privacy under floating point, and symbolic execution for probabilistic programs.
Read four parts of it, in this order.
Skip Section 2 if you know differential privacy, IEEE 754, and Mironov's attack.
If the results are weaker than they look, these places show why.
We implemented both mechanisms using half-precision floating-point (binary16) arithmetic [30]. As the name suggests, half-precision numbers F115 offer 11 bits of precision and occupy 16 bits: 5 for the exponent, 10 for the significand, and 1 for the sign. We use half-precision over single- or double-precision arithmetic to make the verification task tractable: there are far fewer adjacent inputs (x,y)∈Δ to check and far fewer values in the joint domain of the probabilistic symbolic variables. Specifically, the standard uniform sampling procedure yields only 211=2048 uniformly-spaced half-precision floating-point numbers in [0,1) [28], compared to 224 for single precision and 253 for double precision. This shrinks the bitvector terms in Equation 10. Although binary16 is smaller and less precise, it retains the numeric properties exploited in Mironov’s attack (Section 2.3), such as non-uniform spacing and rounding error, and we believe the results in this section transfer to higher-precision formats.
We implemented both mechanisms as C++programs, performing all floating-point arithmetic in accordance with the IEEE 754 standard using native primitive types (e.g., float, double). Like other symbolic execution methods, FPlinko requires that some parameters be concretized — particularly those that dictate memory allocation or loop bounds. For instance, KLEE has limited support for symbolic array lengths and only considers concrete array sizes during path exploration. Both mechanisms we evaluate use a constant amount of time and space regardless of any supplied parameter, allowing us to fully explore all feasible paths for both implementations. Such complete exploration is necessary for verifying ε -differential privacy: without it, FPlinko can only compute lower bounds on the probabilities, opening the door to false positives. All experiments were conducted on a machine equipped with a 32-core 2.8 GHz processor and 128 GB of memory running Amazon Linux 2023 (kernel 6.1.168-203.330) on AArch64.
The half-precision variant of the snapping mechanism , as defined in Algorithm 4 and assuming sensitivity , satisfies -differential privacy when .
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all