DArL: Dynamic Parameter Adjustment for LWE-based Secure Inference

Song Bian, Masayuki Hiromoto and Takashi Sato
Deptartment of Communications and Computer Engineering, School of Informatics, Kyoto University Yoshida-hon-machi, Sakyo, Kyoto, Japan
paper@easter.kuee.kyoto-u.ac.jp

ABSTRACT


Packed additive homomorphic encryption (PAHE) based secure neural network inference is attracting increasing attention in the field of applied cryptography. In this work, we seek to improve the practicality of LWE-based secure inference by dynamically changing the cryptographic parameters depending on the underlying architecture of the neural network. First, we develop and apply theoretical methods to closely examine the error behavior of secure inference, and propose parameters that can reduce as much as 67% of ciphertext size when smaller networks are used. Second, we use rare-event simulation techniques based on the sigma-scale sampling method to provide tight bounds on the size of cumulative errors drawn from (somewhat) arbitrary distributions. Finally, in the experiment, we instantiate an example PAHE scheme and show that we can further reduce the ciphertext size by 3.3× if we adopt a binarized neural network architecture, along with a computation speedup of 2×-3×.



Full Text (PDF)