TL;DR
Self-supervised learning (SSL) struggles with real-world, class-imbalanced data, often overfitting to dominant classes. This paper introduces DUEL (Duplicate Elimination), a framework inspired by human working memory that actively filters out redundant data from a pre-training memory buffer. By maximizing "distinctiveness information," DUEL prevents representation collapse and significantly improves downstream performance on long-tailed datasets without requiring class labels.
What Problem Does This Paper Address?
Most self-supervised learning (SSL) algorithms assume perfectly curated, class-balanced datasets. However, real-world raw data is notoriously long-tailed, meaning a few dominant classes appear far more frequently than others. When contrastive SSL models are trained on this unrefined data, they overfit to the frequent classes, leading to poor representation quality for minority classes.
While supervised methods fix this via resampling or reweighting, doing so requires expensive manual labels. The authors tackle a crucial question: How can we mitigate class imbalance during SSL pre-training without relying on any class labels?
Methods
The authors propose Hebbian Metric Learning (HML), which models the SSL optimization problem by balancing two forces: minimizing Hebbian information (making positive pairs similar) and maximizing distinctiveness information (ensuring diversity across the latent space).
To scale HML to imbalanced environments, they introduce DUEL (Duplicate Elimination), which adds an active memory buffer inspired by the Central Executive System of human working memory. Instead of using a standard first-in, first-out (FIFO) queue, DUEL uses a memory management policy ($\pi_{\text{DUEL}}$) that calculates the distinctiveness of each sample in the buffer. When a new batch arrives, the policy identifies and ejects the most duplicated/redundant sample (typically from the dominant class) and replaces it with new data.
DUEL can be seamlessly integrated into existing contrastive architectures; the authors implement it on top of MoCoV2 (D-MoCo) and SimCLR (D-SimCLR).
Datasets
The framework was evaluated using artificially imbalanced versions of CIFAR-10 and STL-10, where the occurrence probability of a single dominant class ($\rho_{\text{max}}$) was varied from a balanced 0.1 up to an extreme 0.75.
To test scalability and realism, they also evaluated it on ImageNet-LT, a large-scale, naturally long-tailed dataset containing 115.8k images across 1,000 classes. Downstream evaluation was performed via linear probing on balanced validation sets.
Key Insights and Ideas
- Cognitive Inspiration: Mimicking human working memory's ability to inhibit dominant information provides an elegant, label-free solution to data imbalance in machine learning.
- Active vs. Passive Memory: Standard SSL memory queues passively accept the natural data distribution, reinforcing the imbalance. DUEL turns the memory into an active filter that dynamically balances the latent space representation.
- Entropy Maximization: By systematically removing duplicates, the entropy of the class distribution inside the memory buffer increases over time, even when the incoming data stream is heavily skewed.
- Better Class Separation: Quantitative analysis showed that while standard MoCo suffers from high inter-class similarity (classes blending together) under extreme imbalance, DUEL keeps the centroids of different classes well-separated.
Key Results
- Mitigating Extreme Imbalance: On CIFAR-10 with extreme imbalance ($\rho_{\text{max}} = 0.75$), D-MoCo achieved a linear probing accuracy of 77.99%, outperforming standard MoCoV2 (70.12%) by nearly 8%.
- Consistent Gains: D-SimCLR consistently outperformed SimCLR across all imbalance levels, showing up to a 5.26% accuracy boost during intermediate training steps.
- Real-World Scalability: On the large-scale ImageNet-LT dataset, D-MoCo improved linear probing accuracy on the STL-10 test set to 86.19% (up from MoCo's 82.47%), demonstrating strong generalization.
Limitations and Future Work
- Approximated Policy: Finding the mathematically absolute optimal memory management policy is an NP-hard problem. The proposed $\pi_{\text{DUEL}}$ is a greedy approximation that may not perform perfectly in every edge-case scenario.
- Early-Stage Instability: In the early phases of training, the feature extractor itself is highly uncertain. Relying on an inaccurate feature extractor to calculate "distinctiveness" can lead to suboptimal data eviction and a higher standard deviation in final performance.
- Future Directions: The authors suggest further theoretical exploration into Hebbian Metric Learning and distinctiveness information to design even more robust memory policies.
Summary updated