DUEL: Duplicate Elimination on Active Memory for Self-Supervised Class-Imbalanced Learning

Won-Seok Choi, Hyundo Lee, Dong-Sig Han, Junseok Park, Heeyeon Koo, Byoung-Tak Zhang

Introduction

Self-supervised learning (SSL) has revolutionized representation learning by enabling models to learn from vast amounts of unlabeled data. However, standard SSL frameworks like MoCo and SimCLR operate under the implicit assumption of a balanced data distribution. In real-world scenarios, data is typically "long-tailed," characterized by a few dominant "head" classes and many rare "tail" classes. This imbalance leads to a "rich get richer" phenomenon: models overfit to frequent samples, causing the representation space of rare classes to collapse.

To address this, we present DUEL (Duplicate Elimination), an active memory management policy inspired by the human Central Executive System. DUEL dynamically filters the training buffer to ensure diversity, allowing SSL models to learn robust representations from imbalanced data without requiring any manual labels.

Hebbian Metric Learning (HML)

The theoretical foundation of DUEL is Hebbian Metric Learning (HML). Drawing inspiration from the biological principle that "cells that fire together, wire together," HML decomposes the SSL optimization objective into two distinct components:

  1. Hebbian Information: This focuses on minimizing the distance between a sample and its augmented versions (positive pairs), reinforcing the identity of the data.
  2. Distinctiveness Information: This focuses on maximizing the diversity of the samples stored in the model's memory buffer.

By balancing these two forces, HML provides a framework for maintaining a representative "view" of the world, even when the underlying data stream is heavily biased.

The DUEL Policy: Active Memory Management

Traditional SSL methods utilize a First-In-First-Out (FIFO) queue for their memory buffers. While computationally simple, FIFO is passive; it retains samples regardless of their informational value. DUEL replaces this with an active policy ($\pi_{DUEL}$).

When a new data point is introduced, the DUEL policy performs the following steps:

  • Redundancy Detection: It calculates a "distinctiveness score" for every item currently in the memory buffer based on its similarity to other stored samples.
  • Duplicate Elimination: It identifies the "most duplicated" sample—the one that contributes the least novel information to the current set.
  • Strategic Replacement: The redundant sample is ejected, and the new data point is inserted in its place.

This mechanism effectively "inhibits" dominant, repetitive signals, forcing the model to focus on novel or rare features. This approach was integrated into existing architectures to create D-MoCo and D-SimCLR.

Experimental Results

The efficacy of DUEL was tested across several benchmarks, including CIFAR-10, STL-10, and the large-scale ImageNet-LT.

Performance under Extreme Imbalance

On a modified CIFAR-10 dataset where a single class accounted for 75% of the data, standard MoCoV2 performance dropped significantly. In contrast, D-MoCo achieved 77.99% accuracy, a nearly 8% improvement over the baseline's 70.12%.

Stability and Scaling

One common issue in imbalanced SSL is performance degradation over time as the model over-indexes on head classes. DUEL demonstrated superior stability, with performance either maintaining or improving throughout the training cycle. On ImageNet-LT, D-MoCo improved linear probing accuracy by approximately 2% over the standard MoCo baseline, proving its effectiveness at scale.

Analysis: Why DUEL Works

The success of DUEL can be attributed to two primary factors:

  1. Increased Entropy: Analysis shows that DUEL significantly increases the class entropy within the memory buffer. Even if the input stream is 75% "Class A," the active policy filters out redundant "Class A" samples, resulting in a more uniform distribution within the buffer that the model actually "sees" during training.
  2. Improved Separability: By maintaining a diverse memory, DUEL reduces inter-class similarity in the latent space. This prevents the representations of rare classes from being "swallowed" by the clusters of dominant classes, leading to better-defined decision boundaries.

Conclusion and Future Work

DUEL offers a label-free, bio-inspired solution to the challenge of class-imbalanced learning. By treating memory as an active component rather than a passive queue, it enables SSL models to remain robust in the face of real-world data distributions.

While the current implementation uses a greedy approximation for sample replacement, future research could explore more complex optimization strategies. Additionally, the principles of Hebbian Metric Learning could be extended to other domains, such as reinforcement learning, where agents must selectively remember experiences in non-stationary environments.

Summary updated

BibTeX
@inproceedings{choi2024duel,
  author = {Won-Seok Choi and Hyundo Lee and Dong-Sig Han and Junseok Park and Heeyeon Koo and Byoung-Tak Zhang},
  title = {{DUEL: Duplicate Elimination on Active Memory for Self-Supervised Class-Imbalanced Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i10.29040},
}
Figure