MoCo (Momentum Contrast) is a contrastive learning method that stores features from past minibatches in a queue to use as negatives, and slowly updates the encoder that produces the queue with a moving average of the weights. It was proposed by He et al. at Facebook AI Research in 2019 and presented at CVPR 2020. Trained only on unlabeled images, it reaches a top-1 accuracy of 60.6% with ResNet-50 under linear evaluation on ImageNet, and on seven downstream tasks such as object detection it outperforms supervised pretraining.
Contrastive learning trains a model to recognize two views created from one image as "the same" and other images as "different" (see SimCLR for the idea). The more comparison targets (negatives) there are, the better the learned features. However, when negatives are taken from the same minibatch, their number is determined by the minibatch size, which is limited by GPU memory.
MoCo solves this problem by viewing contrastive learning as a dictionary lookup. One view serves as the "query," while the other view and past images serve as the "keys" of a dictionary, and the model must find the key that matches the query. A queue decouples the dictionary from the minibatch so it can grow large, and the encoder that produces the keys is moved slowly so the contents of the queue stay consistent. As an analogy, it is like a vocabulary notebook whose entries are replaced a little each day, always written by someone whose handwriting barely changes.

