Lion Cipher Lab

Infer a training set's global properties with a property inference attack — and defend it (AI privacy)

Why it matters

A trained model is a compressed memory of its training data, and it leaks that memory three different ways. Membership inference asks 'was THIS record in the set?'. Model inversion asks 'show me what a class looks like'. PROPERTY (or distribution) inference asks the question the model owner usually thinks is safe: 'what was true of the dataset as a WHOLE?' — 'was it ~70% group G?', 'was feature X over-represented?', 'what was the mix of sub-populations?'. That is an AGGREGATE fact, not any one person's record, which is exactly why it is dangerous and easy to miss: a hospital can strip every…

What you'll learn

Steps in this lab

  1. The threat: a model leaks facts about the whole dataset, not just records
  2. Set up: a dataset whose global property you control
  3. The attack: shadow models + a meta-classifier
  4. Why a naive deep-net attack fails: permutation symmetry
  5. Defense that DOESN'T work: strong regularization
  6. Defense that DOES work — at a price: parameter noise
  7. Defenses in practice (and why membership/DP isn't a free pass)
  8. The judgment: when it's a real risk, and how it differs from its cousins

Open the full interactive lab →