Storing and retraining on samples from previous tasks to prevent forgetting during continual learning.