[Paper Review] Contrastive Learning with Consistent Representations
This paper proposes CoCor, a contrastive learning framework that enforces DA consistency—ensuring stronger data augmentations produce more dissimilar representations—via a data-driven, monotonic neural network that learns optimal similarity values based on augmentation strength. The method achieves state-of-the-art linear evaluation accuracy of 72.8% on ImageNet with ResNet-50 and 200 epochs pretraining, outperforming prior SOTA methods with longer pretraining schedules.
Contrastive learning demonstrates great promise for representation learning. Data augmentations play a critical role in contrastive learning by providing informative views of the data without necessitating explicit labels. Nonetheless, the efficacy of current methodologies heavily hinges on the quality of employed data augmentation (DA) functions, often chosen manually from a limited set of options. While exploiting diverse data augmentations is appealing, the complexities inherent in both DAs and representation learning can lead to performance deterioration. Addressing this challenge and facilitating the systematic incorporation of diverse data augmentations, this paper proposes Contrastive Learning with Consistent Representations CoCor. At the heart of CoCor is a novel consistency metric termed DA consistency. This metric governs the mapping of augmented input data to the representation space, ensuring that these instances are positioned optimally in a manner consistent with the applied intensity of the DA. Moreover, we propose to learn the optimal mapping locations as a function of DA, all while preserving a desired monotonic property relative to DA intensity. Experimental results demonstrate that CoCor notably enhances the generalizability and transferability of learned representations in comparison to baseline methods.
Motivation & Objective
- To address the performance degradation caused by inconsistent use of diverse data augmentations in contrastive representation learning.
- To systematically incorporate a large number of composite data augmentations without relying on hand-picked, limited augmentation sets.
- To enforce a desideratum where stronger augmentations produce increasingly dissimilar representations, improving representation quality.
- To develop a learnable, monotonic mapping from augmentation composition to optimal similarity in the latent space.
Proposed method
- Introduces a composite augmentation set A, represented by composition vectors encoding types, counts, and magnitudes of basic augmentations.
- Defines DA consistency as a principle that stronger augmentations must yield more dissimilar latent representations compared to the original input.
- Proposes a consistency loss that enforces this principle by penalizing deviations from a learned optimal similarity function.
- Uses a bi-level optimization framework to train a black-box neural network that maps augmentation composition vectors to optimal similarity values.
- Imposes a partial monotonicity constraint on the neural network to ensure stronger augmentations always yield smaller similarity values.
- Employs a data-driven approach to learn the optimal similarity function without prior knowledge, using unlabeled data and end-to-end training.
Experimental results
Research questions
- RQ1Can a systematic method be developed to leverage a large number of diverse data augmentations in contrastive learning without performance degradation?
- RQ2How can the relationship between augmentation strength and representation similarity be modeled to ensure consistency in the latent space?
- RQ3What is the impact of enforcing monotonicity in the mapping from augmentation composition to similarity on representation quality?
- RQ4Can a learnable, data-driven similarity function outperform fixed or hand-tuned similarity thresholds in contrastive learning?
Key findings
- CoCor achieves a linear evaluation top-1 accuracy of 72.8% on ImageNet with ResNet-50 and only 200 epochs of pretraining, surpassing all listed baselines, including those with 800 epochs.
- The method outperforms SwAV, which uses the same multi-crop strategy, demonstrating that CoCor’s diverse augmentation strategy provides additional representational benefits.
- On VOC07 object detection, CoCor achieves 24.6% APs with only 200 epochs of pretraining, a 3.8% improvement over MoCo v2’s 20.8%, indicating superior generalization for small object detection.
- Ablation studies show that using a partially monotonic neural network improves linear evaluation accuracy from 50.20% to 52.04% on CIFAR-10, confirming the benefit of adaptive, monotonic similarity learning.
- The monotonic neural network effectively captures variance in transformation types and magnitudes, enabling better alignment between augmentation strength and representation dissimilarity.
- The bi-level optimization framework successfully trains the similarity network using limited labeled data, improving encoder performance through end-to-end optimization.
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.