TL;DR
This paper introduces a novel protocol that allows two parties to collaboratively train a machine learning model and assess its potential value before committing to a full data collaboration. By cleverly combining fully homomorphic encryption (FHE) with label differential privacy (LDP), they achieve significant speedups over existing fully encrypted training methods while maintaining strong privacy guarantees.
What Problem Does This Paper Address?
Imagine two organizations, say a cybersecurity firm and a software company, wanting to collaborate on their datasets to build a better malware detection model. Before they share their valuable, potentially sensitive data, they want assurance that the collaboration will actually improve their model's performance. They don't want to reveal their entire datasets or the trained model to each other prematurely. Existing solutions often involve training entirely in the encrypted domain using FHE, which is computationally prohibitive for complex models like neural networks. This paper tackles the challenge of providing this assurance efficiently and privately.
Methods
The core innovation lies in a hybrid approach:
- Fully Homomorphic Encryption (FHE) over the Torus (TFHE): Used to encrypt the labels of one party's dataset. This allows computations on these encrypted labels without decrypting them.
- Label Differential Privacy (LDP): Applied to the gradients during the training process. This adds noise to the gradients, ensuring that even if the encrypted labels are compromised, the underlying sensitive information is protected.
- Hybrid Training: Crucially, the protocol doesn't train the entire neural network in the encrypted domain. Instead, it leverages the fact that features are often public. The forward pass of the neural network is performed in the clear, and only the label-related computations are handled homomorphically and with added noise. The backward pass (gradient computation) is then done in the clear after a "blinding" step to protect privacy.
This combination allows most of the computationally intensive parts of neural network training to happen in the clear, drastically reducing the overhead compared to end-to-end FHE solutions.
Datasets
The authors evaluated their protocol on several publicly available datasets:
- Iris
- Seeds
- Wine
- Abrupto
- Drebin (Android malware dataset)
- CIFAR-10
- CIFAR-100
- Purchase-10
They note that Drebin and Purchase-10 have slightly imbalanced class distributions, which they use to explore specific scenarios.
Key Insights and Ideas
- The "Value Assurance" Problem: The paper frames the problem as providing assurance of collaboration value before full data sharing, which is a practical concern in many real-world scenarios.
- Efficiency through Hybridization: The key insight is that not everything needs to be encrypted. By keeping feature processing in the clear and selectively encrypting/privatizing label computations, significant performance gains are achieved.
- LDP for Gradient Noise: Using LDP not on the labels directly, but on the gradients derived from them, offers a novel way to balance privacy and utility.
- "Blinding" for Privacy: A clever technique of "blinding" the encrypted gradients before decryption is used to prevent the party providing the labels from learning the actual model parameters.
Key Results
- Speedup: The proposed protocol is orders of magnitude faster than end-to-end FHE solutions. For instance, training on the Iris dataset took around 4,200 seconds with their protocol, compared to an estimated 10,850 seconds for an end-to-end FHE approach (and significantly longer for other datasets).
- Accuracy: The protocol achieves comparable accuracy to training in the clear, especially at higher privacy budgets (lower epsilon values). They demonstrate that their protocol can achieve a model accuracy that is better than the initial model but less than what would be achieved with full collaboration, providing a useful intermediate assurance.
- Privacy: The protocol provides label differential privacy, ensuring that the labels of the second party's dataset are protected.
Limitations and Future Work
- Honest-but-Curious Model: The current protocol is secure under the assumption that parties are "honest-but-curious," meaning they follow the protocol but might try to infer information. It does not protect against malicious parties.
- Implementation Overhead: The authors acknowledge that their custom Python implementation is significantly slower than optimized libraries like PyTorch. They believe that integrating their protocol with PyTorch could yield substantial speedups.
- TFHE Integer Encoding: The requirement to encode decimal numbers into integers for TFHE can introduce limitations and potential privacy issues if not handled carefully, which they address by using a list of allowable sensitivities.
- Future Work: The authors suggest exploring malicious security, integrating with optimized ML frameworks, and investigating alternative privacy mechanisms. They also highlight the open problem of determining when the condition for collaboration value holds more broadly.
Summary updated