Lion Cipher Lab

Unlearn a data point from a trained model (SISA) and prove it

Why it matters

When someone exercises the GDPR Article 17 'right to erasure' -- the legal right to have their personal data deleted -- most engineers reach for a DELETE statement and consider the job done. It is not. If that person's record was in the training set of a machine-learning model, their influence is baked into the model's weights, and the trained model can still LEAK them: a membership-inference attack (feeding the model an example and reading how confidently it responds) can often tell whether a specific record was in the training data, purely from the model's behavior. Deleting the row from…

What you'll learn

Steps in this lab

  1. The problem: deleting the row does not remove its influence
  2. The vocabulary you need (define every term once)
  3. Set up a clean, local Python environment
  4. Write the SISA library and train a BASELINE model
  5. Build the SISA ensemble and see what sharding costs you
  6. Unlearn one record -- retrain ONLY its shard
  7. VERIFY (a): exact unlearning -- byte-for-byte equal to a full retrain
  8. VERIFY (b): membership probe -- the point now behaves unseen
  9. The judgment: exact vs approximate, and when NOT to unlearn

Open the full interactive lab →