Paper commentary
Self-supervised Learning for Video Correspondence Flow
Self-supervised pointer model learns video correspondence by copying pixels between frames
- Problem Grayscale-trained correspondence models leave a train-test colour gap, and pair-only training lets tracking errors build up over long videos.
- Method The authors randomly zero colour channels in training frames and train a recursive pointer model with cycle consistency over long windows.
- Results On DAVIS-2017 the model scores 49.5 J&F, compared with 34.0 for Video Colorization.

Figure 2 : An overview of the proposed self-supervised learning for correspondence flow. A recursive model is used to compute the dense correspondence matching over a long temporal window with forward-backward cycle consistency.
Original paper · CC BY 4.0 · Zihang Lai, Weidi Xie · Self-supervised Learning for Video Correspondence Flow · Original paper figure · Extracted the figure area from page 4 of the original PDF.Where pair-based colour training gets stuck
Labelling pixel-level correspondences by hand is expensive, and occlusions and complex object deformations can make it impossible. The authors therefore train on unlabelled video, withholding part of the data to define a proxy task. The closest prior work, by Vondrick et al., learns embeddings for grayscale frames and uses colorization as its proxy task.
Its model capacity is significantly constrained by the loss of colour information.
Training on grayscale inputs creates a train-test discrepancy, because the model never learns to encode correlations between RGB channels. The downstream task then feeds full RGB frames, so the model meets colour it was never trained to use. The prior model also trains only on pairs of ground truth frames, so it sees little of a sequence.
That pair-only setup leads to model drifting when the model is evaluated on video tracking tasks.
Drift builds up at test time because each prediction depends on the prediction from the previous step. Errors accumulate across steps, and the model has no mechanism to recover from earlier error states. Their remedies for drift are a recursive model with scheduled sampling and forward-backward cycle consistency, and the next section covers the colour side of the fix.
Colour dropout and jitter as an information bottleneck
The authors keep full colour in the data but make colour unreliable during training. Each training frame passes through a transform g that randomly zeroes 0, 1 or 2 colour channels. The same transform moves brightness, contrast and saturation by up to 10%. The encoder then works on the transformed frame, so the feature embedding is f_i = Φ(g(I_i); θ).
The paper contrasts this with Vondrick et al., who convert every RGB frame into grayscale as their bottleneck.
The dropout and jitter act as an information bottleneck, so the model can't base its matching on one low-level colour cue. The input jitter and stochastic dropout stop the model from co-adapting to low-level colours. The same perturbations also serve as data augmentation that should make the model robust to illumination changes. At test time full RGB frames go in directly, without jitter, which closes the train-test gap that grayscale input had opened.
Restricted attention for affordable affinities
Full attention in Vondrick et al. correlates every target pixel with every reference pixel, so cost explodes with resolution. Memory and computational consumption grow quadratically with the spatial footprint of the feature maps, which limits the usable resolution. The authors instead use restricted attention, because appearances in a video clip change smoothly in both spatial and temporal axes.
This property lets the model shrink the search region without discarding the matches it needs.
Each target pixel searches only a square patch of maximum disparity M in the reference frame, centred at that target pixel. For feature maps of size H by W, the affinity volume A is a 4D tensor of size H by W by (2M+1) by (2M+1). The reconstruction psi then soft-copies colours from frame I_t as a weighted sum over that window, with p and q running from -M to M.
Training sets M to 6, and the feature embeddings have a spatial resolution of 1/4 of the original image.
The authors read the window as a regulariser that stops the model from matching repeated patterns far away across the image. They didn't test a larger disparity than M equals 6 in these experiments.
Recursive reconstruction with scheduled sampling and cycle consistency
The model reconstructs frame n recursively, so each step depends on the output of the step before it. Frame n is built either from the true frame n-1 or from the model's own earlier prediction. Scheduled sampling starts with a ground-truth probability of 0.9 and anneals it uniformly to 0.6. The authors argue that seeing its own predictions during training lets the model recover from error states instead of compounding them.
Earlier pairwise training never exposed the model to its own errors, which is why the authors add this recursive setup.
Cycle consistency applies the model n frames forward and backward to the current frame. With n set to 3, a forward-backward cycle spans 5 frames. The authors use cycle consistency as a regulariser against drift rather than as the dominating supervision, unlike CycleTime. Reconstruction is posed as classification, with each pixel's colour quantized into 16 K-means clusters in Lab space.
The loss is the pixel-wise cross entropy on both the forward and backward paths.
The forward path gets weight α1 = 1.0 and the backward path gets α2 = 0.1. So the forward reconstruction dominates the objective while the backward path only nudges it. Figure 2 shows the forward tracking and backward tracking loop that produces the loss signal.
Training and evaluation conditions
Training fixes the data and the encoder before any result is read, and the authors train purely on video sequences. The CNNs are trained on Kinetics in a completely self-supervised manner, with no other information and no fine-tuning for any target task. Frames are decoded at 6 fps and resized to 256 × 256 × 3 before entering the network.
The encoder is a variant of ResNet-18, and its feature embeddings have a spatial resolution of 1/4 of the original image. The max disparity M in restricted attention is set to 6, which fixes the search window used for matching. The temporal length n is set to 3, so the forward-backward cycle covers 5 frames.
The model is trained end-to-end with a batch size of 8 for 1M iterations using an Adam optimizer. The initial learning rate is 2e−4, and it is halved at 0.4, 0.6 and 0.8M iterations.
For both benchmarks, the ground-truth annotation of the first frame is given, and the model propagates it to later frames. DAVIS-2017 is scored with two standard metrics, region overlapping J and contour accuracy F. On JHMDB, PCKinstance counts a keypoint as correct when its Normalized Euclidean Distance to the ground truth is below a threshold α.
What each component contributes on DAVIS-2017
Each ablation removes one component, and every variant is trained from scratch on Kinetics and tested on DAVIS-2017 without fine-tuning. The full model scores 47.7 J and 51.3 F.
The grayscale ablation, which drops colour information, scores 40.5 J and 39.5 F. The authors read this as evidence that training and testing must both see full RGB colour.

Table 1 : Ablation Studies on DA VIS-2017. J : region overlapping, F: contour accu- racy respectively.
Original paper · CC BY 4.0Without restricted attention J falls to 40.8 and F to 39.7, from the full model's 47.7 and 51.3. The authors read the drop as a sign that spatial coherence is a real constraint on matching.
Without scheduled sampling, where every copy source is ground truth, J falls from 47.7 to 40.2 and F from 51.3 to 39.2. The authors credit this to the model meeting its own errors during training, which helps under illumination change.
Removing cycle consistency gives 41.0 J and 40.4 F. They say the difference appears in later frames of a sequence, where the variant without cycle consistency drifts more.
DAVIS-2017 comparison with prior approaches
On DAVIS-2017 the full model beats the prior self-supervised methods by a clear margin, scoring 49.5 J&F. Video Colorization reaches 34.0 J&F, and CycleTime reaches 40.7 J&F under the same metric. The full model's J mean is 47.7 and its F mean is 51.3, as listed in the comparison table. The authors say the model dominates all the self-supervised methods in the table.

Table 2 : Video segmentation results on DA VIS-2017 dataset. Higher values are better.
Original paper · CC BY 4.0The authors attribute the wide gap over optical flow to colour dropout and scheduled sampling. They argue these two components make the model more robust in scenarios where optical flow fails, such as large illumination changes.
The authors compare against an ImageNet-pretrained ResNet-50, which scores 49.7 J&F. Their ResNet-18 model at 49.5 J&F is comparable to that baseline, despite using a smaller encoder. The authors suggest ImageNet features encode high-level semantics and are not optimized for dense correspondence matching. Training on OxUvA instead of Kinetics gives 50.3 J&F, slightly above the Kinetics model.
Each baseline uses its own training data, so the rows aren't one controlled experiment.
Keypoint tracking on JHMDB
On JHMDB validation split 1, the full model reaches PCKinstance of 58.5 at @.1 and 78.8 at @.2. Video Colorization reaches 45.2 at @.1 and 69.6 at @.2 under the same PCKinstance metric. The authors say their approach exceeds the earlier Video Colorization method by an average of 11.3% in PCKinstance. The comparison therefore asks whether the colour-based correspondence learned on Kinetics transfers to pixel-level keypoint propagation without any fine-tuning.
Against CycleTime, which uses ResNet-50 trained on VLOG, the model scores 57.7 at @.1 in PCKinstance, so the authors report a better strict-threshold result. CycleTime reaches 78.5 at @.2, which is slightly above the model's 78.8 only if read as a lower value, so the @.2 comparison is close. On PCKmax, the model reaches 71.9 at @.1 and 88.3 at @.2, while the fully supervised model trained on JHMDB scores 68.7 and 81.6.
The authors note that CycleTime and their model achieve comparable or even better results than models trained with supervision such as ImageNet (ResNet-50) and the fully supervised model. They tie this to the almost infinite amount of video data available for self-supervised training.
Training on additional YouTube videos
The authors probe the upper bound of self-supervised learning by training on more diverse video data. They randomly pick 8 DAVIS classes and download 50 additional videos from YouTube, searching only by class label. No segmentation masks are given during this further self-supervised training, so the extra videos carry no annotations.
Figure 7 plots each sequence against the number of additional videos, from 0 to 50. As that number grows, every sequence gains on both J and F, according to the authors. Dog's J rises from 58.0 with Kinetics-only training to 76.1 with the additional videos. Camel's J climbs from 59.4 to 70.0 in the same comparison, while Dog's F goes from 49.1 to 71.8.

Table 3 : Quantitative comparison before and after training on additional videos.
Original paper · CC BY 4.0Drift-c shows the largest J gain in the table, moving from 3.9 to 27.8. Its F rises from 6.3 to 35.3 under the same change in training data. The supervised COCO plus DAVIS model scores 4.9 on Drift-c J, which places the self-supervised 27.8 well above it. That supervised row trains on different data, so it works as a reference point rather than a matched comparison.
On Paragliding, J goes from 32.4 to 42.8 and F from 41.2 to 52.0. The authors link such gains to classes with very few manual annotations, which self-supervised training doesn't need. Goat moves much less, from 71.1 to 73.7 in J. So the extra videos help some classes far more than others.
Limitations of the training data and the evaluation setup
The training data limits how far the method reaches, because Kinetics is a human-centric dataset. Most DAVIS classes, such as cars and animals, aren't covered by Kinetics. The authors note that training on Kinetics is not ideal for this reason. To probe this, they pick 8 DAVIS classes and download 50 additional videos from YouTube. They download videos by class label only, so no segmentation annotations enter the further self-supervised training.
The extra-data test covers only eight DAVIS classes and 50 videos, so its scope is narrow. Each comparison row in Table 2 uses its own training data, such as Kinetics, VLOG, OxUvA or ImageNet. That means the table doesn't isolate the effect of the method alone. The keypoint results in Table 4 come from a single JHMDB split, validation split 1.
Paper info
- Authors
- Zihang Lai, Weidi Xie
- Venue
- arXiv · Preprint
- First published
- 2019-5-2
- Added
- 2026-11-5
- Updated
- 2019-7-27
- Version
- v5
- arXiv
- 1905.00875
- Category
- cs.CV · cs.LG
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
The objective of this paper is self-supervised learning of feature embeddings that are suitable for matching correspondences along the videos, which we term correspondence flow. By leveraging the natural spatial-temporal coherence in videos, we propose to train a ``pointer'' that reconstructs a target frame by copying pixels from a reference frame. We make the following contributions: First, we introduce a simple information bottleneck that forces the model to learn robust features for correspondence matching, and prevent it from learning trivial solutions, \eg matching based on low-level colour information. Second, to tackle the challenges from tracker drifting, due to complex object deformations, illumination changes and occlusions, we propose to train a recursive model over long temporal windows with scheduled sampling and cycle consistency. Third, we achieve state-of-the-art performance on DAVIS 2017 video segmentation and JHMDB keypoint tracking tasks, outperforming all previous self-supervised learning approaches by a significant margin. Fourth, in order to shed light on the potential of self-supervised learning on the task of video correspondence flow, we probe the upper bound by training on additional data, \ie more diverse videos, further demonstrating significant improvements on video segmentation.
Quote from the paper
Zihang Lai, Weidi Xie (2019). Self-supervised Learning for Video Correspondence Flow. arXiv:1905.00875v5. https://arxiv.org/abs/1905.00875v5
BibTeX
@misc{lai2019self,
title = {{Self-supervised Learning for Video Correspondence Flow}},
author = {Zihang Lai and Weidi Xie},
year = {2019},
eprint = {1905.00875},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1905.00875v5}
}