Federated Learning Lab

Train models on distributed data without moving it: try FedAvg, FedProx and SCAFFOLD in a simulator that really computes in your browser, with privacy, medical applications, projects and quizzes.

14interactive experiments

Membership inference

Privacy and Security · Privacy and security

The idea

An attack that tries to decide whether a given record was in the training data using model behavior (higher confidence or lower loss on training records) (Shokri et al., 2017).

The risk

A patient's presence in the dataset of a particular disease is sensitive in itself.

How it works

The experiment computes the AUC of a loss-threshold attack on a federated model and compares it with a differential-privacy run. AUC = 0.5 means no distinguishing power; higher means leakage.

Defenses

  • Differential privacy (reduces the gap)
  • Avoiding overfitting (regularization, early stopping)
  • Exposing less output

Limits

With our small models and few rounds the signal is modest; the strongest attacks are not measured here, and an AUC near 0.5 does not prove the absence of risk.

Related experiments

References

  1. Shokri, Stronati, Song, Shmatikov (2017). Membership Inference Attacks Against Machine Learning Models. IEEE S&P 2017, pp. 3-18. doi:10.1109/sp.2017.41