Five banks plan to train a shared fraud model with federated learning: each bank trains on its own transactions and sends only model updates to a coordinating server, which averages them. The vendor says "raw data never leaves the bank, so the training is private". Which assessment is correct?
Show the answer and explanation
Correct answer: A, Not on its own: updates can leak records via gradient inversion or membership inference, so add secure aggregation, differential privacy on updates and governance over access.
Explanation Data Privacy & PII
Federated learning (FL) moves training to the data, but the updates it sends are functions of that data and are not anonymous by construction:
- Gradient inversion (e.g. Deep Leakage from Gradients, Zhu et al. 2019) reconstructs training inputs from shared gradients, most easily for small batches and few local steps.
- Membership inference on the updates or the final model can reveal whether a particular customer's records were used.
- A malicious server can send crafted model weights that make clients' updates leak even more.
A defensible design layers controls:
| Control | Protects against | Limitation |
|---|---|---|
| Secure aggregation | the server seeing any single bank's update | does not hide what the aggregate or final model reveals |
| Differential privacy (e.g. DP-SGD at each bank: clip per-example gradients, add noise) | inference about any single record | costs accuracy, set by the privacy budget ε |
| Governance (access control, audit, agreements) | misuse of models and updates | does not stop technical leakage on its own |
Why the others fail: averaging over many transactions does not anonymise an update, since gradient inversion and crafted-weight attacks can still recover inputs. TLS protects data in transit only; the server, the main observer, still sees every update in plaintext. Secure aggregation hides individual updates, but the aggregate and the trained model can still memorise and leak, which is why it is combined with DP.
Interview tip: say "FL is a data-minimisation technique, not a privacy guarantee", then pair secure aggregation with DP and mention the ε you would target and its accuracy cost.