PPML’19 – Garbled Neural Networks are Practical

The work presented at the PPML 2019 workshop by Mike Rosulek, in collaboration with Marshall Ball, Brent Carmer, Tal Malkin, and Nichole Shimanski, challenges a conventional thought about the non-efficiency of Garbled Circuits (GC) in Neural Network evaluations.

Imagine a scenario with two parties: the model owner, who holds a trained Machine Learning (ML) model (classifier), and the data owner, who holds some private data. The two parties interact in order to do a secure classification of the private data. At the end of the protocol, the data owner learns the result of the classification and the model owner learns nothing. The classifier can be private, with private weights (as instance in ML as a service applications), or public, so there is less to hide about the classifier and the computations are potentially cheaper (as instance spam filters on encrypted data applications).

The authors improve the 2016 GC construction by Ball, Malkin and Rosulek, that supports a certain class of arithmetic circuits. Their scheme uses CRT techniques, can perform free additions and linear combination with public weights, cheap (proportional to the sum of moduli, not their product) multiplications and linear combinations with private weights, but the other operations, such as activation functions, are quite expensive. They use approximate activation functions in order to have a better trade-off between accuracy and complexity: as instance, the approximate sign function is used to build the ReLU and the max-pooling. Their implementation is publicly available on GitHub. They also test their construction and compare it with previous works: they have higher communication but faster computations, in particular for deep neural networks. They also observe that the XONN construction, that does GC neural network evaluation as well, is an orthogonal work but it would be interesting to combine their ideas with the construction proposed as a future work.