Introduction
Standard contrastive learning has driven massive leaps in representation learning, but it routinely fails on long-tailed datasets because it ignores class labels when building representations. This paper reformulates the problem by maximizing the Mutual Information (MI) between latent features and ground-truth labels. This theoretical shift leads to a novel "Gaussian Mixture Likelihood" (GML) loss that naturally integrates logit adjustment, achieving state-of-the-art performance across major long-tailed recognition benchmarks.
The Problem: Why Contrastive Learning Fails on the Tail
In the real world, data is rarely balanced. Most datasets exhibit a long-tailed distribution: a few "head" classes have thousands of samples, while many "tail" classes have only a handful. Standard deep learning models—and even modern contrastive learning (CL) methods like MoCo or SimCLR—struggle in these environments. They tend to overfit the head classes and ignore the tail.
While researchers have previously tried to fix this by combining CL with "logit adjustment" (shifting prediction scores based on class frequency), these combinations were largely ad-hoc. The authors identify a fundamental theoretical gap: contrastive learning typically maximizes the MI between latent features and input data (the images themselves). Because tail images are rare, the model never learns to effectively associate their features with the correct labels.
Methodology: A Shift in Perspective
The authors propose a fundamental shift: instead of maximizing $I(\text{Feature}; \text{Input})$, models should maximize $I(\text{Feature}; \text{Label})$.
Using the InfoNCE framework as a starting point, they derive a general loss function that decomposes into two distinct parts:
- An unnormalized likelihood term: Modeled as a Gaussian Mixture Likelihood (GML). Here, latent features from the same class act as the "centers" of the mixture.
- A logit-adjustment term: A prior based on class frequency that compensates for the dataset's imbalance.
To make this theoretical framework work in practice, the authors introduce two key engineering innovations:
- Class-wise Queues: Unlike standard contrastive learning which uses a single global queue, this method maintains separate queues for each class. The length of these queues is proportional to the class frequency.
- Teacher-Student Strategy: To prevent "representation drift" (where old samples in a tail-class queue become outdated because the encoder has changed too much during training), they use a fixed, pre-trained teacher network to generate the contrast samples used for likelihood estimation.
Key Insights
- Theoretical Unification: The authors demonstrate that many existing methods—like standard Softmax Cross-Entropy, Supervised Contrastive Loss, and Logit Adjustment—are actually special cases of their MI maximization framework under different assumptions (e.g., assuming a balanced dataset or a simpler isotropic Gaussian likelihood).
- The "Aha" on Contrastive Failure: The paper clarifies why contrastive learning fails on long-tails: it's not merely a lack of samples, but a mismatch in the objective function that ignores the label distribution during feature extraction.
- Solving the Outdated Encoder Problem: By using a teacher-student framework, they decouple representation learning from queue updates. This ensures that even the rarely-updated tail classes are compared against stable, high-quality features.
Key Results and Benchmarks
The proposed GML loss consistently outperformed previous state-of-the-art (SOTA) methods like PaCo and BCL across four major long-tailed benchmarks.
- ImageNet-LT: On this long-tailed version of ImageNet (1000 classes, ranging from 1280 to 5 samples per class), the method achieved 58.8% overall accuracy. Notably, it provided a significant boost in "Few-shot" (tail) classes, reaching 39.5% compared to PaCo's 37.2%.
- iNaturalist 2018: On this massive, naturally imbalanced dataset of 8,142 species, the model reached 74.5% accuracy, establishing a substantial lead over previous methods.
- CIFAR-100-LT: The method showed robustness across all imbalance levels, outperforming BCL by nearly 2% in the most difficult (100x imbalance) scenario.
- Ablation Studies: The authors confirmed that the teacher-student framework is critical to the architecture's success, providing a +2.3% accuracy boost compared to a student-only setup.
Limitations and Future Work
While highly effective, the current approach requires a two-stage training process due to the reliance on a pre-trained teacher network. Although the authors show that even a low-accuracy teacher helps, it still adds complexity to the pipeline. Additionally, while the GML temperature ($\tau_g$) can be learned dynamically, the softmax temperature ($\tau_s$) remains a manual hyperparameter.
Future directions suggested by the authors include extending this framework to multi-modal tasks (like connecting vision and text) and exploring end-to-end training paradigms that eliminate the need for a separate teacher phase.
Summary updated