Additively Homomorphical Encryption based Deep Neural Network for Asymmetrically Collaborative Machine Learning

Yifei Zhang, Hao Zhu

Introduction

In sectors like finance and insurance, data is a critical asset protected by stringent privacy regulations and competitive interests. While machine learning (ML) thrives on data aggregation, these barriers often prevent organizations from pooling resources. Standard Federated Learning addresses "horizontal" data splits (where parties share the same features for different users), but it struggles with "vertical" or "asymmetric" scenarios—where one party holds the features (e.g., transaction history) and another holds the labels (e.g., claim outcomes).

This paper introduces Asymmetrically Collaborative Machine Learning (ACML), a framework designed to enable two parties to train deep models together without exposing private information. By combining strategic neural network partitioning with additive homomorphic encryption, the authors achieve privacy-preserving training that is significantly faster than existing systems with no loss in accuracy.

The ACML Framework

The core innovation of ACML lies in decomposing a Deep Neural Network (DNN) into two distinct components:

  1. Feature Extraction (Active Party): The party holding the raw data runs a local, unencrypted deep network to compress high-dimensional data into compact feature representations.
  2. Classifier (Passive Party): The party holding the labels runs a shallow network (the classifier) to process these features.

To ensure privacy during collaboration, the authors utilize Paillier encryption, a form of Partially Homomorphic Encryption (PHE). Unlike computationally expensive Fully Homomorphic Encryption (FHE), Paillier supports only addition and scalar multiplication, offering a much higher degree of efficiency.

Secure Training Protocols

The training process involves two critical protocols to maintain privacy:

  • Secure Forward Propagation: Features are encrypted by the active party before transmission. The passive party computes weighted sums within the encrypted domain. To handle non-linearities like Softmax, a "round-trip" protocol using random noise is employed to prevent either party from inferring the other's weights or raw data.
  • Secure Backpropagation: To prevent "gradient leakage"—where shared gradients might reveal raw data—the authors inject noise into the gradients and use encryption to ensure weight updates occur without exposing sensitive intermediate values.

Experimental Results

The researchers evaluated ACML across several benchmarks, including the UCI Repository (Iris, Diabetes, kr-vs-kp) and computer vision datasets (MNIST, CIFAR-10). The performance was compared against existing privacy-preserving frameworks like GELU-Net and CryptoNets.

Efficiency and Accuracy

The results demonstrate that ACML provides a massive leap in performance. On the MNIST dataset, the proposed method achieved a speedup of over 100x compared to GELU-Net while maintaining superior accuracy.

Comparison of inference time and accuracy on the MNIST dataset.

Unlike systems like CryptoNets, which often suffer a 2% to 5% accuracy drop due to approximating non-linear functions, ACML's approach is mathematically "lossless," matching the performance of standard plaintext training.

Scalability and Efficiency

A key advantage of ACML is its dimensionality independence. Because encryption occurs after feature extraction, the computational cost is tied to the size of the hidden layer rather than the raw input size. This makes the method highly scalable for high-resolution data.

Scalability of ACML vs. MLR with increasing feature dimensions.

As shown in the figure above, while traditional encrypted Multinomial Logistic Regression (MLR) slows down exponentially as feature dimensions increase, the ACML method's computation time remains almost constant.

Conclusion

ACML addresses a critical gap in collaborative machine learning by providing a practical, efficient, and lossless solution for asymmetric data sharing. By partitioning the network and applying targeted encryption, the framework avoids the overhead of FHE while plugging known security vulnerabilities like gradient leakage. Future work may focus on reducing communication overhead in high-latency environments and extending the architecture to support multiple data-owning parties.

Summary updated

Abstract

The financial sector presents many opportunities to apply various machine learning techniques. Centralized machine learning creates a constraint which limits further applications in finance sectors. Data privacy is a fundamental challenge for a variety of finance and insurance applications that account on learning a model across different sections. In this paper, we define a new practical scheme of collaborative machine learning that one party owns data, but another party owns labels only, and term this \textbf{Asymmetrically Collaborative Machine Learning}. For this scheme, we propose a novel privacy-preserving architecture where two parties can collaboratively train a deep learning model efficiently while preserving the privacy of each party's data. More specifically, we decompose the forward propagation and backpropagation of the neural network into four different steps and propose a novel protocol to handle information leakage in these steps. Our extensive experiments on different datasets demonstrate not only stable training without accuracy loss, but also more than 100 times speedup compared with the state-of-the-art system.
BibTeX
@misc{zhang2020additively,
  author = {Yifei Zhang and Hao Zhu},
  title = {{Additively Homomorphical Encryption based Deep Neural Network for Asymmetrically Collaborative Machine Learning}},
  year = {2020},
  eprint = {2007.06849},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.06849},
}
Figure