The paper presented in this blogpost can be found here.
This paper was presented at CCS’19 by Jeffrey Champion.
Being able to securely sample biased coins is a fundamental problem in a range of areas. Indeed, the problem of securely sampling from specific distributions (e.g. gaussian, exponential, …), can be reduced to the ability of securely sampling biased coins.
In this paper the author apply their new technique to build an MPC protocol for Differential Privacy. Differential Privacy adds randomness during the computation of the function to avoid the output to leak too much information on the inputs. (note that this is orthogonal to MPC). In addition to this specific use case, one can think of other applications such as secure Key Generation.
Previous state of the art in sampling biased coins in MPC had a complexity of \(O(\lambda + log(d))\) for sampling \(d\) coins with total statistical difference \(2^\lambda\). In this paper, the authors propose a technique that reduces this complexity to an amortized cost of \(O(log(\lambda + d)\). The core idea of the paper is to securely emulate lazy comparison. Take a stream of random bits and the binary expansion of the bias up to precision \(\lambda\). Then lazy sampling consists in comparing both one bit at a time, and keep the comparison going as long as the bias and stream are equal. At the first occurrence of a difference between the random stream and the binary expansion of the bias, we output the current bias bit. The problem with this technique is that even if the random stream and the result of the comparison are encrypted (or secret shared), the index where the stopping happens reveals information on the output (because the bias is public).
The trivial way to make this protocol secure is to do the full comparison of both streams, but this comes with a cost of \(\lambda\) operations per coins. To get an efficient protocol, the secure emulation of this protocol as proposed by the authors works as follow:
Let’s consider an oblivious conditional stack which given the instruction \((Push,e,c)\) pushes \(e\) on the stack if \(c\) is true, and an oblivious pop only stack which given the instruction \((Pop,r)\) pop the stack if \(r=0\), and reset the stack to its initial state if \(r=1\). If \(c=1\), set \(r=1\), otherwise set \(r=0\).
In the protocol the pop only stack contains the binary expansion of the bias, and the push only will receives the biased coins. Then, if during the comparison between the two streams, the bits are equal we do an empty push. Otherwise, if bits are not equal, we do a real push and reset the pop only stack. The protocol stops when we are guaranteed with negligible chance of failure that oblivious conditional stack will be full.
Long story short, the idea of this secure realization is to blur when the sampling of a specific bit stops, hence giving a low amortized cost for sampling \(d\) biased coins.
When generating \(d=524288\) samples of geometric noise in 2PC required for their Differential Privacy application, the authors require about seven minutes (an improvement of a factor of about two compared to previous work).


