Contrastive learning is an effective method for learning visual representations. In most cases, this involves adding an explicit loss function to encourage similar images to have similar representations, and different images to have different representations. Inspired by contrastive learning, we introduce a clever input construction for Implicit Contrastive Learning (ImCLR), primarily in the supervised setting: there, the network can implicitly learn to differentiate between similar and dissimilar images. Each input is presented as a concatenation of two images, and the label is the mean of the two one-hot labels. Furthermore, this requires almost no change to existing pipelines, which allows for easy integration and for fair demonstration of effectiveness on a wide range of well-accepted benchmarks. Namely, there is no change to loss, no change to hyperparameters, and no change to general network architecture. We show that ImCLR improves the test error in the supervised setting across a variety of settings, including 3.24% on Tiny ImageNet, 1.30% on CIFAR-100, 0.14% on CIFAR-10, and 2.28% on STL-10. We show that this holds across different number of labeled samples, maintaining approximately a 2% gap in test accuracy down to using only 5% of the whole dataset. We further show that gains hold for robustness to common input corruptions and perturbations at varying severities with a 0.72% improvement on CIFAR-100-C, and in the semi-supervised setting with a 2.16% improvement with the standard benchmark $\Pi$-model. We demonstrate that ImCLR is complementary to existing data augmentation techniques, achieving over 1% improvement on CIFAR-100 and 2% improvement on Tiny ImageNet by combining ImCLR with CutMix over either baseline, and 2% by combining ImCLR with AutoAugment over either baseline.
翻译:对比性学习是学习视觉显示的有效方法。 在多数情况下, 这需要增加一个明确的丢失功能, 鼓励类似图像具有相似的表达形式, 以及不同图像具有不同的表达形式。 在对比性学习的启发下, 我们引入了隐含的隐含的隐性学习, 以区分相似和不同图像。 每个输入都是作为两个图像的组合来显示的。 并且标签是两个一流的半流的标签的平均值。 此外, 这需要几乎不改变现有的管道, 这样可以方便地整合和公平地展示一系列广泛公认的基准的有效性。 也就是说, 我们引入了隐含的隐含的隐含的隐含的隐含的隐含的隐含的隐含的隐含的隐含的隐含的隐含的隐含的隐含的隐含的隐含的隐含的隐含性学习。 IMLLLL可以将一个普通的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含性, 内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含性。 我们的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的改善, 的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内基的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内含的内基的内含的内含的内含的内含的内含的内