Skip to content
tezvyn:

Right to be forgotten and machine unlearning

Source: interviewMediumHow cards are made

Summary

deletion in trained models.

Key points

delete raw data everywhere, then remove influence via full retraining, SISA sharded retraining, or approximate unlearning; note cost and verification.

What's really being asked

This checks whether you understand the gap between data deletion and model deletion: a trained model encodes information from its training data in its weights, so erasing the source rows does not by itself remove what the model learned from them.

The full answer

Split the problem into two parts. First, deletion from data stores: remove the user's raw data from databases, backups, logs, feature stores, and any derived datasets, and stop using it in future pipelines. Second, removing the data's influence from the model itself, which is the hard part, machine unlearning. The gold standard is to retrain the model from scratch on the dataset minus that user, which is correct but often prohibitively expensive for large models. A practical alternative is sharded training such as SISA, where data is split into shards and the model is an ensemble, so a deletion request only requires retraining the one shard containing that user, dramatically cutting cost. Approximate unlearning methods attempt to mathematically adjust the weights to undo a sample's contribution without full retraining, trading exactness for speed. The challenges are real: full retraining is costly and slow, approximate methods lack guarantees, it is hard to prove the influence is truly gone, and you may need to defend against membership-inference attacks to demonstrate the user is no longer detectable in the model.

The mistakes people make

Assuming that deleting the user's rows from the database satisfies the right to be forgotten, ignoring the model weights entirely. Claiming you can simply delete a single training example from a model instantly with no cost. Forgetting verification, that you must be able to show the influence is removed.

What usually comes next

How does SISA reduce retraining cost in detail? How would you verify unlearning succeeded? What about data already in model embeddings or caches?

A concrete example

A user invokes deletion under privacy law. You purge their records from the warehouse, feature store, and backups. Because full retraining of the recommendation model costs days of compute, the system was built with SISA sharding, so you identify the single shard holding that user, retrain only that constituent model, and recombine the ensemble, satisfying the request in hours rather than retraining everything.

Interview question

Why does deleting a user's records from the database often fail to fully satisfy a right-to-be-forgotten request for a trained model?

  • a.The model's weights still encode information learned from that user's dataCorrect
  • b.Databases cannot delete individual rows
  • c.Raw data deletion is technically impossible
  • d.Models automatically forget any deleted training data
Why?

A trained model embeds its training data's influence in its parameters, so removing source rows does not erase what was learned, which is why machine unlearning or retraining is needed. Databases can delete rows, and models do not auto-forget.

Just read this? Test yourself on what you have been reading.

Read the original → edps.europa.eu

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles