HE-MAN -- Homomorphically Encrypted MAchine learning with oNnx models

Martin Nocker, David Drexel, Michael Rader, Alessio Montuoro, Pascal Schöttle
2/16/2023
cs.CRcs.LG

No official code found. Best implementation: smile-ffg/he-man-tenseal (20 stars, Apache-2.0, last commit 2024-10-11). 1 more below.

Abstract

Machine learning (ML) algorithms are increasingly important for the success of products and services, especially considering the growing amount and availability of data. This also holds for areas handling sensitive data, e.g. applications processing medical data or facial images. However, people are reluctant to pass their personal sensitive data to a ML service provider. At the same time, service providers have a strong interest in protecting their intellectual property and therefore refrain from publicly sharing their ML model. Fully homomorphic encryption (FHE) is a promising technique to enable individuals using ML services without giving up privacy and protecting the ML model of service providers at the same time. Despite steady improvements, FHE is still hardly integrated in today's ML applications. We introduce HE-MAN, an open-source two-party machine learning toolset for privacy preserving inference with ONNX models and homomorphically encrypted data. Both the model and the input data do not have to be disclosed. HE-MAN abstracts cryptographic details away from the users, thus expertise in FHE is not required for either party. HE-MAN 's security relies on its underlying FHE schemes. For now, we integrate two different homomorphic encryption schemes, namely Concrete and TenSEAL. Compared to prior work, HE-MAN supports a broad range of ML models in ONNX format out of the box without sacrificing accuracy. We evaluate the performance of our implementation on different network architectures classifying handwritten digits and performing face recognition and report accuracy and latency of the homomorphically encrypted inference. Cryptographic parameters are automatically derived by the tools. We show that the accuracy of HE-MAN is on par with models using plaintext input while inference latency is several orders of magnitude higher compared to the plaintext case.

View on arXivView PDF

Code Implementations(2)

RustApache-2.0

HE-MAN – Homomorphically Encrypted MAchine learning with oNnx models and Concrete

151Rust, PythonJan 24, 20233 years agoApache-2.0
Apache-2.0

HE-MAN – Homomorphically Encrypted MAchine learning with oNnx models and TenSEAL

204PythonJan 24, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{nocker2023heman,
  title  = {HE-MAN -- Homomorphically Encrypted MAchine learning with oNnx models},
  author = {Martin Nocker and David Drexel and Michael Rader and Alessio Montuoro and Pascal Schöttle},
  year   = {2023},
  eprint = {2302.08260},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.08260v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.08260.svg)](https://codeofpaper.com/paper/2302.08260)

Discussion