[Paper Review] MixCo: Mix-up Contrastive Learning for Visual Representation
MixCo extends contrastive learning with semi-positive samples produced by mix-up, improving linear evaluation across datasets, especially with limited training resources.
Contrastive learning has shown remarkable results in recent self-supervised approaches for visual representation. By learning to contrast positive pairs' representation from the corresponding negatives pairs, one can train good visual representations without human annotations. This paper proposes Mix-up Contrast (MixCo), which extends the contrastive learning concept to semi-positives encoded from the mix-up of positive and negative images. MixCo aims to learn the relative similarity of representations, reflecting how much the mixed images have the original positives. We validate the efficacy of MixCo when applied to the recent self-supervised learning algorithms under the standard linear evaluation protocol on TinyImageNet, CIFAR10, and CIFAR100. In the experiments, MixCo consistently improves test accuracy. Remarkably, the improvement is more significant when the learning capacity (e.g., model size) is limited, suggesting that MixCo might be more useful in real-world scenarios. The code is available at: https://github.com/Lee-Gihun/MixCo-Mixup-Contrast.
Motivation & Objective
- Motivate improving self-supervised visual representations without labels.
- Extend contrastive learning to semi-positive samples via mix-up.
- Show that MixCo improves transfer performance on downstream tasks.
- Demonstrate that gains are pronounced under limited training resources.
Proposed method
- Define MixCo as an on-the-fly extension of contrastive loss that uses mixed images to create semi-positive targets.
- Generate mixed data x_mix by convex combination of two images and compute its representation v_mix.
- Compute MixCo loss as a combination of the standard contrastive loss and a semi-positive loss that links v_mix to both v_i and v_k.
- Combine losses with a weighting parameter beta: L_total = L_Contrast + beta * L_MixCo.
- Apply MixCo to MoCo-v2 and SimCLR and evaluate via linear evaluation on TinyImageNet, CIFAR-10, and CIFAR-100.
Experimental results
Research questions
- RQ1Does introducing semi-positive samples via mix-up improve the quality of visual representations learned by contrastive methods?
- RQ2Is MixCo compatible with existing contrastive frameworks (e.g., MoCo-v2, SimCLR) and beneficial across model sizes?
- RQ3How does MixCo perform in transfer to downstream datasets not seen during pretraining?
- RQ4Are gains from MixCo more pronounced when computational resources or model capacity are limited?
Key findings
- MixCo consistently improves linear evaluation across encoder sizes and datasets.
- For ResNet-18 trained 100 epochs, MixCo improves TinyImageNet, CIFAR10, and CIFAR100 results compared to baseline MoCo-v2 and SimCLR.
- The largest relative gains occur with smaller models and fewer training resources (e.g., +6.84 percentage points on TinyImageNet top-1 for ResNet-18 100-epoch setting).
- MixCo-enabled models achieve higher transfer accuracy on CIFAR10/100 and TinyImageNet than their non-MixCo counterparts.
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.