Federated Learning Privacy Protection
Federated learning privacy protection refers to a technical system that, when multiple parties collaborate to train a model, keeps each participant's raw data local and exchanges only model parameters or gradients. Its position is an engineering solution for data staying in its domain: replacing "data follows computation" with "computation follows data", finding a feasible path between compliance and collaboration, but it does not by itself equal privacy security.
Core Principles
The standard federated learning process involves several rounds of communication. The server sends the current global model to selected clients, each client trains for several steps on local data, uploads the updated gradients or weights, and the server aggregates them into a new global model weighted by sample count. Throughout the process raw samples never leave the device, which is highly attractive for healthcare, finance, mobile input methods and similar scenarios.
The problem is that gradients are not information-free summaries. The deep leakage from gradients attack proposed by researchers shows that, knowing the model structure and initialization parameters, an attacker can reconstruct the original image or text from the gradient produced by a single sample through optimization, even recovering a face photo pixel by pixel. This means that if the server is honest but curious, "data stays local" alone does not constitute effective privacy protection.
Real privacy protection therefore needs two layers of mechanism. The first is differential privacy: clipping and adding noise to gradients locally on the client, or adding noise at the server during aggregation, while tracking the cumulative consumption of the privacy budget. Local differential privacy is stronger but noisier; central differential privacy has better utility but requires noise at a trusted aggregator. The second is secure aggregation, which lets the server see only the sum of all clients' gradients and not any single one, commonly using secret sharing, masking and homomorphic encryption. With both combined, even if the server is malicious and the communication is eavesdropped, the influence of a single sample is masked twice over by noise and aggregation.
There is also a distinction between horizontal and vertical federation. Horizontal federation has different samples and the same features, common when multiple institutions share a model; vertical federation has overlapping samples and different features, requiring private set intersection to align samples and then homomorphic encryption or secret sharing to compute intermediate results, typically used for joint risk control between banks and e-commerce.
Key Points
Attack surface: gradient reconstruction, membership inference, poisoning and backdoor injection, and server inference of client data distributions. Poisoning is harder to detect in federated settings because the server cannot see raw data.
Core components: differential privacy gives a quantifiable privacy budget; secure aggregation ensures the server sees only the sum; a trusted execution environment can provide hardware hardening for the aggregator; private set intersection solves sample alignment in vertical scenarios.
Costs: encryption brings significant compute and communication overhead, differential privacy slows convergence and lowers accuracy, client dropout drags down secure aggregation protocols, and the compute disparity of heterogeneous devices causes training instability.
Common Misconceptions
First, thinking that data staying local means privacy security. Gradient leakage proves this wrong; differential privacy or secure aggregation must be combined. Second, thinking federated learning necessarily has lower accuracy than centralized training. When data distributions are similar the gap is limited, and the real bottleneck is usually communication rounds and non-IID data. Third, ignoring the compliance dimension. Federated learning still needs a clear purpose for data processing and a lawful basis; technical measures cannot replace legal grounds.
Application Scenarios
Joint modeling across hospitals, joint anti-fraud across banks, updates of mobile input methods and recommendation models, collaborative training of IoT devices, and joint marketing modeling across enterprises.