[Paper Review] Partially Encrypted Machine Learning using Functional Encryption
This paper proposes a practical framework for privacy-preserving machine learning using functional encryption (FE) to enable partially encrypted neural network inference. It introduces an efficient FE scheme for quadratic functions, integrates adversarial training to minimize leakage from decrypted intermediate outputs, and achieves over 97.7% accuracy on a modified MNIST dataset with strong privacy guarantees for sensitive features.
Machine learning on encrypted data has received a lot of attention thanks to recent breakthroughs in homomorphic encryption and secure multi-party computation. It allows outsourcing computation to untrusted servers without sacrificing privacy of sensitive data. We propose a practical framework to perform partially encrypted and privacy-preserving predictions which combines adversarial training and functional encryption. We first present a new functional encryption scheme to efficiently compute quadratic functions so that the data owner controls what can be computed but is not involved in the calculation: it provides a decryption key which allows one to learn a specific function evaluation of some encrypted data. We then show how to use it in machine learning to partially encrypt neural networks with quadratic activation functions at evaluation time, and we provide a thorough analysis of the information leaks based on indistinguishability of data items of the same label. Last, since most encryption schemes cannot deal with the last thresholding operation used for classification, we propose a training method to prevent selected sensitive features from leaking, which adversarially optimizes the network against an adversary trying to identify these features. This is interesting for several existing works using partially encrypted machine learning as it comes with little reduction on the model's accuracy and significantly improves data privacy.
Motivation & Objective
- To enable privacy-preserving machine learning where only intermediate outputs are decrypted, avoiding full plaintext exposure of model predictions.
- To address the challenge of information leakage in partially encrypted models, especially from the final classification layer.
- To design an efficient functional encryption scheme for quadratic functions, enabling secure computation on encrypted data.
- To develop a generic adversarial training method that hardens models against feature inference attacks on decrypted intermediate activations.
- To demonstrate practicality of the approach on real-world image classification tasks with minimal accuracy loss.
Proposed method
- Proposes a new functional encryption scheme optimized for computing quadratic forms, improving upon prior work in efficiency and complexity.
- Uses the FE scheme to encrypt the first layers of a polynomial neural network, allowing secure evaluation on encrypted inputs.
- Employs a novel adversarial training procedure that optimizes the network to minimize information leakage from decrypted intermediate layer outputs.
- Introduces a training objective that prevents adversaries from identifying sensitive features by making them indistinguishable across same-class data items.
- Employs a dual-encryption mechanism using two secret keys to ensure that only the specified function evaluation (e.g., quadratic form) is revealed, not the raw input.
- Applies the framework to image classification on a two-font MNIST-inspired dataset, with inference completed in under 3 seconds.
Experimental results
Research questions
- RQ1Can functional encryption be efficiently used to compute quadratic functions in a way that supports secure neural network inference?
- RQ2How can information leakage from decrypted intermediate layer outputs be minimized in partially encrypted models?
- RQ3Can adversarial training be used to harden neural networks against feature inference attacks on decrypted outputs?
- RQ4What is the trade-off between model accuracy and privacy in partially encrypted machine learning systems?
- RQ5Is it feasible to perform secure, low-latency inference on encrypted data using FE without requiring interaction between parties?
Key findings
- The proposed functional encryption scheme for quadratic functions outperforms prior work in terms of computational complexity and efficiency.
- The framework achieves over 97.7% accuracy on a two-font MNIST classification task while ensuring that the model’s final prediction is not directly revealed.
- Adversarial training significantly reduces the ability of an attacker to infer sensitive features from decrypted intermediate activations.
- The system enables secure, low-latency inference (under 3 seconds) on encrypted inputs without requiring the data owner to be online.
- The method effectively prevents adversaries from distinguishing between data items of the same label based on decrypted outputs, enhancing privacy.
- The approach is compatible with existing encrypted machine learning pipelines and can be applied to various semi-encrypted neural network architectures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.