Enable Dynamic Parameters Combination to Boost Linear Convolutional Neural Network for Sensitive Data Inference

Wenping Ma, Qizheng Wang, Wenping Ma 0002, Jie Li, Ge LiuIACR ePrint 2020

Introduction

Machine Learning as a Service (MLaaS) has become a cornerstone of modern data analysis, yet its application to sensitive domains like healthcare and finance is hindered by privacy concerns. While cryptographic techniques such as Homomorphic Encryption (HE) and Secure Multi-Party Computation (MPC) offer theoretical solutions for computing on encrypted data, they face a significant practical hurdle: non-linear operations. Functions like ReLU activations and Max-pooling, which are essential for the expressive power of neural networks, are computationally prohibitive in encrypted environments. This paper introduces Dynamic Parameters Combination (DPC), a novel framework that bypasses this "non-linearity bottleneck" by decoupling the inference process into a dual-network architecture.

The DPC Framework: Decoupling Non-Linearity

The core innovation of this work is the separation of the decision-making process (the non-linear component) from the data transformation process (the linear component). This is achieved through a dual-network system:

  1. The Guide Network (Client-Side): A lightweight, non-linear network that operates on plaintext data locally on the user's device. Its primary role is to generate "dynamic factors" based on the input.
  2. The Prediction Network (Cloud-Side): A purely linear network residing in the cloud. It performs the heavy computational lifting on encrypted data using the dynamic factors provided by the client.
The DPC dual-network architecture separating client-side guide computation from cloud-side prediction.

The mathematical foundation of DPC lies in the observation that any continuous non-linear activation function can be represented as a dynamic linear transformation: $Act(x) = x \cdot dym(x) + b$. By calculating the dynamic factor $dym(x)$ on the client side where the data is unencrypted, the cloud-side Prediction Network can remain entirely linear, significantly reducing the overhead of cryptographic protocols.

Maintaining Accuracy with Residual Blocks

A common challenge with deep linear networks is "model degradation," where accuracy plateaus or drops as the network depth increases. To address this, the authors integrated Residual Blocks into the DPC architecture. These blocks allow gradients to flow more effectively during training and help the linear Prediction Network maintain the high expressive power typically associated with non-linear models.

Residual block structure used to prevent model degradation in deep linear networks.

Experimental Results

The DPC framework was evaluated on the MNIST benchmark, achieving a high accuracy of 98.44%. The primary gains, however, were in computational efficiency:

  • Homomorphic Encryption (HE): The DPC-based approach achieved a 2x speedup over the state-of-the-art CryptoNets framework, reducing inference time from 474.5s to 249.2s per sample.
  • Multi-Party Computation (MPC): The performance gains were even more dramatic in the MPC setting. DPC achieved a prediction time of 0.0049s, orders of magnitude faster than MiniONN (9.32s) and Chameleon (2.24s).
  • Communication Efficiency: In MPC scenarios, DPC required only 16.6KB of data transfer, a massive reduction from the 657.5MB required by MiniONN.

Conclusion and Future Directions

By shifting the burden of non-linear computation to a plaintext "guide" phase, DPC enables high-speed, privacy-preserving inference. While the results on MNIST are promising, future research is needed to evaluate the framework on more complex datasets like CIFAR-10 or ImageNet. Additionally, further investigation into potential information leakage from the dynamic factors and robustness against malicious adversaries will be critical for deployment in high-security environments.

Summary updated

BibTeX
@article{ma2020enable,
  author = {Wenping Ma and Qizheng Wang and Wenping Ma and Jie Li and Ge Liu},
  title = {{Enable Dynamic Parameters Combination to Boost Linear Convolutional Neural Network for Sensitive Data Inference}},
  journal = {IACR ePrint},
  year = {2020},
}
Figure