Data Privacy & PII interview question

AI Safety & SecurityData Privacy & PIIDistributed Trainingmedium

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?

  1. ANot 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.
  2. BYes: each update is an aggregate statistic over thousands of transactions that blurs individual inputs, so keeping raw transactions local already makes the training private.
  3. CNot yet, but TLS between the banks and the server closes the gap, because the leakage risk in federated learning comes from eavesdroppers who intercept updates in transit.
  4. DNot yet, but secure aggregation closes the gap: once the server can recover only the sum of the five updates, each record's influence is averaged away in the sum and the final model.
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:

ControlProtects againstLimitation
Secure aggregationthe server seeing any single bank's updatedoes 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 recordcosts accuracy, set by the privacy budget ε
Governance (access control, audit, agreements)misuse of models and updatesdoes 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.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More AI Safety & Security questions

  1. An e-commerce company has trained a new jailbreak classifier for its shopping assistant. It scored well on an offline labelled set, but the team worries it…
  2. A bank's research agent answers each analyst question from k = 20 retrieved web chunks and produces 500,000 answers a month. Assume 1% of retrieved chunks…
  3. An open-weight general-purpose AI (GPAI) model was trained with 6 × 10²⁴ FLOP, as its developer documents. A telecom LoRA-fine-tunes it with 2 × 10²⁰ FLOP and…
  4. A retail assistant's release gate is a 2,000-prompt single-turn jailbreak suite plus a classifier that scores each user message on its own. A red-teamer asks…
  5. What is prompt injection in an LLM application?