Abstract
Contrastive learning is one of the fastest growing research areas in machine learning due to its ability to learn useful representations without labeled data. However, contrastive learning is susceptible to feature suppression – i.e., it may discard important information relevant to the task of interest, and learn irrelevant features. Past work has addressed this limitation via handcrafted data augmentations that eliminate irrelevant information. This approach however does not work across all datasets and tasks. Further, data augmentations fail in addressing feature suppression in multi-attribute classification when one attribute can suppress features relevant to other attributes. In this paper, we analyze the objective function of contrastive learning and formally prove that it is vulnerable to feature suppression. We then present Predictive Contrastive Learning (PrCL), a framework for learning unsupervised representations that are robust to feature suppression. The key idea is to force the learned representation to predict the input, and hence prevent it from discarding important information. Extensive experiments verify that PrCL is robust to feature suppression and outperforms state-of-the-art contrastive learning methods on a variety of datasets and tasks.
Introduction
Self-supervised learning, particularly Contrastive Learning (CL), has revolutionized how we train visual encoders. By maximizing similarity between different views of the same image and minimizing it between different images, models learn to extract meaningful features without human-annotated labels. However, CL often suffers from "feature suppression," where the model learns simple "shortcut" features (like background color) to satisfy the contrastive objective, while ignoring more complex, semantically relevant features (like object shape).
The Theoretical Vulnerability of Contrastive Learning
The authors provide a formal analysis of the InfoNCE loss, the standard objective for contrastive learning. They prove that this objective is inherently vulnerable to feature suppression. Specifically, they demonstrate that "bad" local minima—solutions where the model has collapsed onto low-dimensional shortcut features—persist as traps even in high-dimensional feature spaces. This mathematical foundation explains why models often fail to learn a complete set of features when a simple shortcut is available.
Predictive Contrastive Learning (PrCL)
To overcome these limitations, the authors propose Predictive Contrastive Learning (PrCL). The core insight is to anchor the contrastive task with a predictive task that prevents information loss.
As shown in the architecture above, PrCL introduces a dual-branch system. While the bottom branch performs standard contrastive learning on augmented views, the top branch performs inpainting. The model is given an image with random patches masked out and must reconstruct the original pixels. Because the encoder is shared, the learned representations must contain enough information to reconstruct the input, effectively preventing the model from "suppressing" difficult features in favor of easy shortcuts.
Experimental Evaluation
PrCL was tested across diverse benchmarks, including ImageNet, MPII (human pose), and FairFace. A particularly revealing test was conducted on Colorful-Moving-MNIST, a synthetic dataset where MNIST digits move over complex backgrounds.
In this challenging scenario, standard methods like SimCLR and MoCo failed to learn digit features, achieving only ~15% accuracy because the background features were sufficient for the contrastive task. In contrast, PrCL achieved 88.3% accuracy. The t-SNE visualizations above confirm this: PrCL's representations (d) form distinct clusters based on digit identity, whereas SimCLR (c) remains entangled with background noise.
Robustness and Multi-Attribute Learning
PrCL also demonstrated superior robustness to data augmentations. On ImageNet, removing color distortion caused SimCLR's accuracy to drop by 22.2%, while PrCL's accuracy only dropped by 5.1%. Furthermore, on the FairFace dataset, PrCL improved Age and Gender classification by 5.7% and 8.6% respectively, showing that it can prevent dominant attributes (like ethnicity) from suppressing others.
Conclusion
Predictive Contrastive Learning offers a robust solution to the feature suppression problem in self-supervised learning. By integrating a reconstruction-based predictive task, PrCL ensures that learned representations are comprehensive and resistant to shortcuts, leading to better generalization across a wide range of downstream visual tasks.
Summary updated