When a machine learning model is retrained over and over as data changes, it leaves a trail of versions behind. Existing privacy attacks check whether a piece of data was used in training, but they look at only two versions at a time, so they miss the order of events and cannot handle data being added, removed, and added again.
The team built an attack that watches how a model's confidence in a given sample shifts across a whole sequence of versions, using a bidirectional LSTM (a neural network that reads a sequence in both directions) to spot when the sample was added or removed. They tested it on three language models and three image classifiers.
The attack worked well at identifying both whether and when a sample was in training, clearly beating older methods, and it still worked against a large generative language model. Three standard privacy defenses reduced the leak but hurt model quality, so there is a real trade-off between privacy and usefulness.