Abstract
MoCo is effective for unsupervised image representation learning. In this paper, we propose VideoMoCo for unsupervised video representation learning. Given a video sequence as an input sample, we improve the temporal feature representations of MoCo from two perspectives. First, we introduce a generator to drop out several frames from this sample temporally. The discriminator is then learned to encode similar feature representations regardless of frame removals. By adaptively dropping out different frames during training iterations of adversarial learning, we augment this input sample to train a temporally robust encoder. Second, we use temporal decay to model key attenuation in the memory queue when computing the contrastive loss. As the momentum encoder updates after keys enqueue, the representation ability of these keys degrades when we use the current input sample for contrastive learning. This degradation is reflected via temporal decay to attend the input sample to recent keys in the queue. As a result, we adapt MoCo to learn video representations without empirically designing pretext tasks. By empowering the temporal robustness of the encoder and modeling the temporal decay of the keys, our VideoMoCo improves MoCo temporally based on contrastive learning. Experiments on benchmark datasets including UCF101 and HMDB51 show that VideoMoCo stands as a state-of-the-art video representation learning method.
Introduction
In computer vision, unsupervised representation learning aims to extract useful features from raw data without the need for expensive human labeling. While Momentum Contrast (MoCo) has been highly successful for static images, adapting it to video is challenging due to complex temporal dynamics. Most existing video methods rely on hand-engineered "pretext tasks," such as guessing frame order or predicting playback speed, which may not capture the full complexity of motion. VideoMoCo addresses these limitations by enhancing the MoCo framework with temporally adversarial frame dropping and a temporal decay mechanism for its memory queue.
Methodology
VideoMoCo introduces two primary innovations to the standard MoCo pipeline to better handle video data:
1. Temporally Adversarial Learning
Instead of simple random augmentations, VideoMoCo utilizes a Generator based on a ConvLSTM. This generator identifies the most "important" frames in a sequence and drops them (specifically, 25% of the frames). The Encoder (Discriminator) is then trained to produce similar feature representations regardless of whether these crucial frames are missing. This adversarial "attack" forces the encoder to become temporally robust, learning to understand the scene even when key moments are occluded.
2. Temporal Decay
MoCo uses a memory queue of previous features (keys) to compare against current samples. In video, where temporal consistency is vital, older features in this queue become "stale" as the model updates. VideoMoCo introduces a temporal decay factor ($t^i$) that exponentially attenuates the contribution of older keys to the contrastive loss. This ensures the model prioritizes comparisons with "fresher" keys encoded by a version of the model more similar to the current one.
Experimental Results
The authors evaluated VideoMoCo using standard benchmarks including Kinetics-400 for large-scale pre-training, and UCF101 and HMDB51 for fine-tuning and evaluation.
State-of-the-Art Performance
VideoMoCo achieves state-of-the-art (SOTA) performance among self-supervised methods using comparable backbones. On UCF101, it reached 78.7% accuracy, and on HMDB51, it reached 49.2% (using an R(2+1)D backbone). It significantly outperforms previous leading methods like DPC and VCOP.
Motion-Centric Attention
Qualitative visualizations via attention maps reveal that VideoMoCo naturally learns to focus on regions with significant motion—such as the movement of a hand or a musical instrument—without any explicit supervision. This demonstrates that the adversarial training successfully encourages the model to capture dynamic features.
Discussion and Limitations
While VideoMoCo shows strong results, the addition of a ConvLSTM generator adds complexity to the training phase. Future work could explore adaptive dropout rates based on video complexity and testing the framework on larger, more modern transformer-based backbones to further push the boundaries of unsupervised video representation.
Summary updated