[Paper Review] Triplet is All You Need with Random Mappings for Unsupervised Visual Representation Learning
This paper proposes a simple triplet-based contrastive loss that achieves state-of-the-art performance in unsupervised visual representation learning by using only one negative sample per anchor, eliminating the need for large batches or complex asymmetry designs. It further introduces ROMA, a random mapping strategy that enhances representation learning through stochastic projection, boosting performance across multiple SSL methods.
Contrastive self-supervised learning (SSL) has achieved great success in unsupervised visual representation learning by maximizing the similarity between two augmented views of the same image (positive pairs) and simultaneously contrasting other different images (negative pairs). However, this type of methods, such as SimCLR and MoCo, relies heavily on a large number of negative pairs and thus requires either large batches or memory banks. In contrast, some recent non-contrastive SSL methods, such as BYOL and SimSiam, attempt to discard negative pairs by introducing asymmetry and show remarkable performance. Unfortunately, to avoid collapsed solutions caused by not using negative pairs, these methods require sophisticated asymmetry designs. In this paper, we argue that negative pairs are still necessary but one is sufficient, i.e., triplet is all you need. A simple triplet-based loss can achieve surprisingly good performance without requiring large batches or asymmetry. Moreover, we observe that unsupervised visual representation learning can gain significantly from randomness. Based on this observation, we propose a simple plug-in RandOm MApping (ROMA) strategy by randomly mapping samples into other spaces and enforcing these randomly projected samples to satisfy the same correlation requirement. The proposed ROMA strategy not only achieves the state-of-the-art performance in conjunction with the triplet-based loss, but also can further effectively boost other SSL methods.
Motivation & Objective
- To address the high computational cost and complexity of contrastive SSL methods that rely on large batches or memory banks for negative pairs.
- To overcome the collapse problem in non-contrastive SSL methods like BYOL and SimSiam, which require intricate asymmetry designs to prevent degenerate solutions.
- To explore whether a minimal number of negative pairs—specifically one per anchor—can still yield strong performance in self-supervised representation learning.
- To investigate the role of randomness in improving unsupervised visual representation learning.
- To develop a plug-in strategy that enhances existing SSL methods without architectural changes.
Proposed method
- Proposes a triplet-based contrastive loss that uses one negative sample per anchor image, significantly reducing the need for large-scale negative mining.
- Introduces ROMA (RandOm MApping), a simple data augmentation strategy that randomly projects features into a different space to create additional negative views.
- Enforces the same correlation constraint between the anchor and its randomly mapped view as in standard contrastive learning, promoting robust feature learning.
- Applies ROMA as a plug-in module to existing SSL frameworks, enabling performance gains without modifying the backbone or training procedure.
- Uses random projection matrices with fixed dimensions to map features, ensuring computational efficiency and scalability.
- Employs standard contrastive loss with the triplet structure: anchor, positive view, and one randomly mapped negative view.
Experimental results
Research questions
- RQ1Can a single negative sample per anchor achieve competitive performance in self-supervised visual representation learning without large-batch training or complex asymmetry?
- RQ2Does introducing randomness in feature space through random projections improve the robustness and generalization of self-supervised representations?
- RQ3Can a simple, plug-in strategy like ROMA enhance existing SSL methods without architectural modifications?
- RQ4How does the proposed triplet-based loss compare to contrastive and non-contrastive SSL methods in terms of accuracy and training efficiency?
- RQ5What is the impact of random mapping on representation quality across different downstream tasks?
Key findings
- The proposed triplet-based loss achieves state-of-the-art performance on ImageNet-1K with a ResNet-50 backbone, surpassing existing contrastive and non-contrastive methods.
- ROMA significantly improves performance when applied to existing SSL methods, including SimSiam and BYOL, demonstrating its generalization capability.
- The method achieves strong results with minimal negative pairs, eliminating the need for large batches or memory banks.
- Random mapping via ROMA enhances feature diversity and generalization, leading to improved downstream accuracy on linear evaluation and fine-tuning benchmarks.
- The combination of triplet loss and ROMA achieves competitive performance even without complex architectural asymmetry or large-scale negative mining.
- The ablation study confirms that randomness in feature projection plays a crucial role in preventing collapse and improving representation quality.
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.