[Paper Review] HyFed: A Hybrid Federated Framework for Privacy-preserving Machine Learning
HyFed is a novel open-source federated learning framework that enhances privacy through a hybrid noise-masking mechanism, enabling secure, utility-preserving model training. It uses a compensator to cancel out noise added by clients, ensuring differential privacy without degrading model performance, and supports both simulation and real federated deployment via a generic API.
Federated learning (FL) enables multiple clients to jointly train a global model under the coordination of a central server. Although FL is a privacy-aware paradigm, where raw data sharing is not required, recent studies have shown that FL might leak the private data of a client through the model parameters shared with the server or the other clients. In this paper, we present the HyFed framework, which enhances the privacy of FL while preserving the utility of the global model. HyFed provides developers with a generic API to develop federated, privacy-preserving algorithms. HyFed supports both simulation and federated operation modes and its source code is publicly available at https://github.com/tum-aimed/hyfed.
Motivation & Objective
- To address privacy leakage in federated learning where model parameters can reveal sensitive client data.
- To develop a generic, open-source framework that supports both simulation and real federated operation modes.
- To integrate privacy-enhancing techniques like differential privacy into federated learning without sacrificing model utility.
- To provide a developer-friendly API for implementing custom federated algorithms across diverse machine learning tasks.
Proposed method
- HyFed employs a four-component architecture: WebApp, client, compensator, and server, each running on separate physical machines.
- Clients compute local models and add Gaussian noise to mask them before sending to the server.
- The compensator aggregates noise values from all clients and sends the sum back to the server to cancel out the noise.
- The server updates the global model using the sum of noisy local models and the negative of the aggregated noise, restoring utility.
- The framework uses a generic API allowing developers to implement custom federated algorithms, including regression, chi-square, and deep learning.
- Privacy is ensured via mutual information analysis, showing that noisy models reveal no information about original local models under the honest-but-curious threat model.
Experimental results
Research questions
- RQ1How can federated learning be made more private without degrading the utility of the global model?
- RQ2What architectural and algorithmic components are needed to support both simulation and real federated deployment in a privacy-preserving manner?
- RQ3Can a hybrid approach combining noise masking and compensator-based noise cancellation effectively prevent model inversion attacks?
- RQ4How can a generic API be designed to support diverse federated learning algorithms while maintaining security and performance?
- RQ5What is the theoretical privacy guarantee of the proposed noise-masking mechanism under information-theoretic analysis?
Key findings
- The mutual information between original local models and their noisy counterparts is zero for non-negative integers, indicating no information leakage.
- For floating-point numbers, the mutual information is bounded by $ \frac{1}{2}\log_2(1 + \frac{\sigma^2_{M_L}}{\sigma^2_N}) $, which can be minimized by increasing noise variance.
- With $ \sigma^2_N = 10^{12} $, the mutual information is negligible, ensuring strong privacy guarantees.
- The compensator-based noise cancellation restores the global model's utility without requiring retraining or additional communication.
- The framework supports both simulation and real federated operation, enabling practical deployment and experimentation.
- The HyFed API allows developers to implement custom federated algorithms without modifying core source code, enhancing extensibility.
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.