[Paper Review] Memorization in Self-Supervised Learning Improves Downstream Generalization
This paper proposes SSLMem, a novel definition of memorization in self-supervised learning (SSL) based on representation alignment between augmented views of data points. It demonstrates that high memorization—measured by differences in alignment between encoders trained on vs. excluding a data point—is not only prevalent in SSL but also correlates with improved downstream generalization, enabling efficient coreset selection and privacy-aware training.
Self-supervised learning (SSL) has recently received significant attention due to its ability to train high-performance encoders purely on unlabeled data-often scraped from the internet. This data can still be sensitive and empirical evidence suggests that SSL encoders memorize private information of their training data and can disclose them at inference time. Since existing theoretical definitions of memorization from supervised learning rely on labels, they do not transfer to SSL. To address this gap, we propose SSLMem, a framework for defining memorization within SSL. Our definition compares the difference in alignment of representations for data points and their augmented views returned by both encoders that were trained on these data points and encoders that were not. Through comprehensive empirical analysis on diverse encoder architectures and datasets we highlight that even though SSL relies on large datasets and strong augmentations-both known in supervised learning as regularization techniques that reduce overfitting-still significant fractions of training data points experience high memorization. Through our empirical results, we show that this memorization is essential for encoders to achieve higher generalization performance on different downstream tasks.
Motivation & Objective
- To address the lack of a general, label-free definition of memorization in self-supervised learning (SSL), which currently relies on supervised learning concepts that depend on class labels.
- To investigate whether memorization in SSL—despite strong data augmentations and large-scale training—still occurs and whether it influences model generalization.
- To explore the practical implications of memorization, including its role in data efficiency and privacy leakage risks.
- To demonstrate that memorization scores can guide effective coreset selection, improving training efficiency without sacrificing performance.
- To establish a theoretical and empirical link between memorization and generalization in SSL, challenging the assumption that memorization is solely a sign of overfitting.
Proposed method
- Proposes SSLMem, a definition of memorization in SSL based on the difference in representation alignment between augmented views of a data point when encoded by models trained on and excluding that data point.
- Measures memorization as the drop in alignment (similarity in representations) when the encoder is not trained on a given data point, using contrastive or non-contrastive SSL objectives.
- Employs a two-encoder comparison: one trained on the data point (f1), one not (f2), and computes the difference in alignment between augmented views of the point under f1 and f2.
- Applies the definition across diverse SSL methods (e.g., SimCLR, MAE) and architectures (e.g., ViT, ResNet) on datasets including MNIST, CIFAR-10, and STL-10.
- Uses linear probing and membership inference to evaluate downstream performance and privacy risks, linking memorization to generalization and data leakage.
- Validates the method through ablation and coreset selection experiments, showing that training on the most memorized data points can match or exceed full-dataset performance.
Experimental results
Research questions
- RQ1Can a general, label-free definition of memorization be formulated for self-supervised learning, given the absence of class labels?
- RQ2To what extent does memorization occur in SSL models despite strong regularization from data augmentation and large-scale training?
- RQ3Is there a correlation between memorization and downstream generalization performance in SSL?
- RQ4Can memorization scores be used to identify a minimal, high-impact subset of training data (coreset) that maintains or improves model performance?
- RQ5How does memorization relate to privacy risks, and can it inform differential privacy or data sanitization strategies in SSL?
Key findings
- Even with strong data augmentations and large-scale training, a significant fraction of data points in SSL models exhibit high memorization, as measured by alignment differences between encoders trained with and without the data point.
- Outliers and atypical data points consistently show higher memorization scores, mirroring findings in supervised learning, despite the absence of explicit labels.
- Training SSL encoders on the 24,000 most memorized data points from CIFAR-10 (out of 25,000) achieved a linear probing accuracy of 64.4% on CIFAR-10, outperforming the full-dataset model (63.3%)
- Using only the 12,000 most memorized data points still achieved 59.7% accuracy on CIFAR-10, comparable to models trained on the full dataset, demonstrating the potential of memorization-based coreset selection.
- Memorization scores correlate with downstream generalization: models trained on high-memorization subsets often generalize better or match full-dataset performance with fewer data points.
- The results suggest that memorization in SSL is not merely a privacy risk but a fundamental component of effective representation learning, contributing to generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.