Abstract
Memorization impacts the performance of deep learning algorithms. Prior works have studied memorization primarily in the context of generalization and privacy. This work studies the memorization effect on incremental learning scenarios. Forgetting prevention and memorization seem similar. However, one should discuss their differences. We designed extensive experiments to evaluate the impact of memorization on continual learning. We clarified that learning examples with high memorization scores are forgotten faster than regular samples. Our findings also indicated that memorization is necessary to achieve the highest performance. However, at low memory regimes, forgetting regular samples is more important. We showed that the importance of a high-memorization score sample rises with an increase in the buffer size. We introduced a memorization proxy and employed it in the buffer policy problem to showcase how memorization could be used during incremental training. We demonstrated that including samples with a higher proxy memorization score is beneficial when the buffer size is large.
Introduction
In deep learning, Memorization is often viewed as a double-edged sword: while it enables models to handle "long-tail" data and atypical examples, it is frequently associated with overfitting. In the context of Continual Learning (CL), models face the challenge of "catastrophic forgetting," where learning new tasks leads to the immediate loss of previously acquired knowledge.
This research investigates the counterintuitive relationship between these two phenomena. Specifically, it explores whether memorizing hard, atypical examples makes them more susceptible to forgetting and how buffer policies should prioritize data—whether to store easy, representative samples or difficult, memorized ones—to maintain long-term performance.
Methodology: Quantifying Memorization
The study utilizes two primary metrics to quantify memorization:
- Feldman’s Memorization Score: A computationally intensive metric that measures the difference in a model's prediction probability for a sample when it is included versus excluded from the training set.
- Memorization Proxy (Training Iteration): A more efficient alternative that tracks the specific training iteration where a model first correctly classifies a sample and maintains that correctness. Samples learned late in training are considered "memorized."
These metrics were integrated into Experience Replay (ER) frameworks using three buffer policies: Bottom-k (storing easiest samples), Mid-k (average samples), and Top-k (hardest/memorized samples).
Key Insights and Ideas
The Fragility of Memorization
High-memorization samples are forgotten significantly faster than regular samples. As the data distribution shifts during incremental tasks, the model’s grasp on rote-learned details slips almost immediately, whereas general patterns are more resilient.
Complexity Drives Memorization
As dataset complexity increases—specifically the number of classes—the model naturally relies more on memorization. To distinguish between a larger variety of categories, the model moves away from broad patterns and focuses on unique, specific details of individual images.
The Buffer Size Paradox
The optimal data retention strategy depends heavily on the available storage budget:
- Small Buffers: Prioritizing Bottom-k (easy samples) is most effective. Attempting to save "hard" memorized samples in a limited buffer degrades performance as the model loses the foundational general patterns of the class.
- Large Buffers: As storage capacity grows, high-memorization samples become essential. To reach the performance upper bound (matching joint training on all data), these difficult outliers must eventually be included.
Key Results
- Proxy Efficiency: The proposed training iteration proxy achieved a high Pearson correlation (r = 0.81) with the Feldman estimator, proving its utility for real-time buffer management.
- Performance Benchmarks: On Split-CIFAR100, the Bottom-k policy reached 25.88% accuracy, notably higher than standard Reservoir Sampling (22.07%).
- Hybrid Buffering: In high-capacity regimes (e.g., 20,000 samples), a hybrid approach—allocating 10% of the buffer to high-memorization samples and the rest to easy samples—consistently outperformed policies focusing solely on easy data.
Limitations and Future Work
While this study establishes the importance of memorization in CL, the scores were primarily calculated in stationary settings. Future research should examine how memorization scores evolve dynamically during incremental learning. Furthermore, identifying the specific "memorization neurons" within neural networks could enable more precise methods for preventing forgetting without requiring massive data buffers.
Summary updated