Unsupervised image representations have significantly reduced the gap with supervised pretraining, notably with the recent achievements of contrastive learning methods. These contrastive methods typically work online and rely on a large number of explicit pairwise feature comparisons, which is computationally challenging. In this paper, we propose an online algorithm, SwAV, that takes advantage of contrastive methods without requiring to compute pairwise comparisons. Specifically, our method simultaneously clusters the data while enforcing consistency between cluster assignments produced for different augmentations (or views) of the same image, instead of comparing features directly as in contrastive learning. Simply put, we use a swapped prediction mechanism where we predict the cluster assignment of a view from the representation of another view. Our method can be trained with large and small batches and can scale to unlimited amounts of data. Compared to previous contrastive methods, our method is more memory efficient since it does not require a large memory bank or a special momentum network. In addition, we also propose a new data augmentation strategy, multi-crop, that uses a mix of views with different resolutions in place of two full-resolution views, without increasing the memory or compute requirements much. We validate our findings by achieving 75.3% top-1 accuracy on ImageNet with ResNet-50, as well as surpassing supervised pretraining on all the considered transfer tasks.
核心贡献 · Key contributions
提出 SwAV,一种在线聚类算法,避免显式的成对特征比较。 Proposes SwAV, an online clustering algorithm that avoids explicit pairwise feature comparisons.
引入交换预测机制,在不同视图间预测聚类分配。 Introduces a swapped prediction mechanism that predicts cluster assignments across different views.
开发多裁剪增强策略,使用混合分辨率视图而不增加内存或算力。 Develops multi-crop augmentation strategy using mixed-resolution views without extra memory or compute.
在 ImageNet 上用 ResNet-50 达到 75.3% top-1 准确率,在迁移任务上超越监督预训练。 Achieves 75.3% top-1 accuracy on ImageNet with ResNet-50, surpassing supervised pretraining on transfer tasks.
证明在线聚类可扩展到大数据集并适用于小批量。 Demonstrates online clustering scales to large datasets and works with small batches.