Abstract
This paper presents Heda, a privacy-preserving framework for training machine learning models—specifically SVM, Logistic Regression, and Naive Bayes—in IoT aggregation scenarios. Unlike collaborative federated learning, aggregation scenarios involve a model demander seeking to train on data from owners who do not require the final model. Heda utilizes Partial Homomorphic Encryption (PHE) building blocks to eliminate the need for trusted third-party servers while maintaining high accuracy and providing robust collusion resistance.
Introduction
The proliferation of IoT devices has created vast repositories of sensitive personal data. While this data is invaluable for training diagnostic or predictive models, privacy concerns and regulatory requirements often prevent its direct use. Traditional privacy-preserving machine learning (PPML) often assumes a collaborative environment or relies on semi-trusted third parties. Heda addresses the specific needs of "aggregation scenarios" where data owners provide encrypted data to a model demander without a shared interest in the resulting model.
Aggregation vs. Collaborative Scenarios
A key contribution of this work is the formal distinction between aggregation and collaborative scenarios. In collaborative scenarios (e.g., standard Federated Learning), all participants are both data owners and model demanders. In contrast, aggregation scenarios involve a single model demander and multiple data owners who prioritize privacy over model access.
The Heda Framework
Heda is built upon a modular library of cryptographic protocols using Partial Homomorphic Encryption (PHE), specifically Paillier and Cloud-RSA. This choice avoids the prohibitive computational costs of Fully Homomorphic Encryption (FHE) while enabling complex operations through modular sequential composition.
The framework consists of several key building blocks:
- Secure Summation: Enables the model demander to compute the sum of values from $n$ owners without accessing individual data points.
- Secure Power Functions: Allows for the exact calculation of non-linear functions like the Sigmoid in Logistic Regression, avoiding accuracy-degrading approximations.
- Ciphertext Conversion: Facilitates switching between different encryption schemes (Paillier to Cloud-RSA) during computation without revealing plaintext.
To handle the decimal values common in ML, Heda employs fixed-point arithmetic, scaling values by $10^e$ to perform secure integer-based encryption.
Security and Performance
Heda is proven secure under the "honest-but-curious" model. It offers strong collusion resistance, remaining secure even if $n-1$ data owners collude or if $n-2$ owners collude with the model demander.
Evaluation on UCI datasets (BCWD, Adult, CAD, Car) demonstrates that Heda achieves zero accuracy loss compared to training on plaintext data. While encrypted training is naturally slower, Heda's performance is practical for offline training; for instance, training a Logistic Regression model on the BCWD dataset takes approximately 37 minutes for 1,000 iterations. The computational load on IoT devices remains low, as the framework shifts the majority of the heavy lifting to the model demander.
Conclusion
Heda provides a robust, efficient, and accurate framework for PPML in IoT aggregation scenarios. By leveraging PHE and a modular design, it removes the dependency on untrusted third-party servers. Future work includes integrating Differential Privacy to prevent parameter leakage and extending the framework to handle malicious adversaries and complex deep learning architectures.
Summary updated