Letting the Segmenter Find Its Own Motion: Flow-Free Temporal Consensus for Synthetic-to-Real Video Adaptation

Models that label every pixel of a video, such as road scene segmenters, are often trained on synthetic driving footage because game engines produce perfect labels for free. They are then adapted to real footage for which no labels exist. The strongest recipe for that adaptation uses time as free supervision. The model guesses labels on real video, an off-the-shelf optical flow network (a model that estimates where each pixel moves between frames) carries each guess into the next frame, and the model trains only on pixels where the carried-over guess agrees with the fresh one. The weak point is that the flow network is itself a model trained mostly on synthetic data. It breaks under glare, shadows, noise and occlusion, which are exactly the conditions that make real footage differ from synthetic footage. When flow is wrong, the agreement check throws away good pixels or keeps wrong ones.

We propose to remove the external flow network. The segmentation network would find its own frame-to-frame correspondences by matching pixels in its own feature space, and a forward-and-back "round trip" test would decide which matches to trust. Because these features are the ones being adapted to real video, the correspondence signal should get more reliable as adaptation proceeds. A frozen flow network gets no such benefit. Stated in two sentences, the claim is this: the temporal agreement signal used to adapt video segmenters from synthetic to real data should come from the adapted model itself rather than from a frozen external flow network, because the external one suffers the very domain gap we are trying to close. We expect this to matter most in the regions where flow fails, and we will test that directly.

Where This Sits

The direct predecessor is Unsupervised Domain Adaptation for Video Semantic Segmentation, which adapts from synthetic VIPER to real Cityscapes-VPS. It combines two stages. The first is adversarial training on video clips. The second is self-training that warps predictions with a pre-trained flow network and cuts out regions without temporal agreement. It reports 51.91% mIoU and 36.43% Video Panoptic Quality (VPQ), and its authors explicitly name joint learning of motion and segmentation as unsolved. That paper both motivates this proposal and supplies most of our pipeline. We keep its adversarial stage and its cut-out training rule, and replace only the source of correspondence.

Two other lines constrain the design. TSAM aligns neighboring-frame features with optical flow before combining them, and it shows that temporal alignment inside feature layers beats smoothing output pixels. That argues against post-hoc fixes. However, TSAM also inherits flow's failures at occlusions, which are among the open problems the file notes for this direction. MetaTrans separates motion from static appearance by subtracting an order-insensitive "static" stream from an order-aware "temporal" stream. It reaches 95.4% on UCF-HMDB using only two losses, but only for clip-level action labels. It is the closest flow-free alternative, and we treat it as a baseline rather than as our method, for reasons given below. Video Panoptic Segmentation supplies the VPQ metric, which scores label consistency across a temporal window of $k$ frames, and a supervised reference of 56.1 VPQ on Cityscapes-VPS.

We deliberately leave physical fidelity out of scope. GAUGE shows that visually smooth generated video can still get the physics badly wrong, but that problem concerns generators, not the adaptation of perception models studied here.

Core Mechanism

A lightweight correspondence head is attached to the segmentation backbone and produces per-pixel embeddings $e_t(p)$ for pixel $p$ in frame $t$. For each pixel in frame $t$ we compute a soft best match in frame $t-k$ within a local search window. We then match that point back into frame $t$. A pixel is trusted only if the round trip lands near where it started:

$$ m_t(p) = \mathbb{1}\left[\, \lVert \phi_{t-k \to t}(\phi_{t \to t-k}(p)) - p \rVert < r \,\right], $$

Here $\phi_{a \to b}$ is the feature-space match from frame $a$ to frame $b$, $r$ is a pixel tolerance, and $m_t(p)$ is the reliability mask. The self-training rule of Shin et al. is kept unchanged. A pixel's pseudo-label is used only where $m_t(p)=1$ and the prediction carried over from frame $t-k$ agrees with the current one.

The correspondence head is trained in two ways at once. On synthetic source video it gets supervised contrastive training: pixels of the same tracked instance, or the same static class region, in different frames are positives, using VIPER's dense video labels. On real target video it gets round-trip consistency as a label-free objective. The target-side objective is what makes the correspondence adapt jointly with segmentation, which is the piece Shin et al. left open. The head matches in a local window at 1/8 resolution, so we expect it to cost less than running a separate flow network. We will report runtime and memory rather than assume this.

Research Program

The work has three parts. First, a diagnostic study measures how often flow-based agreement masks are wrong on real data. Cityscapes-VPS annotates frames five apart, so carrying labels across a 5-frame gap and comparing them against the annotation gives precision and recall of any agreement mask without new labels. We run the diagnostic on clean target clips and on clips with controlled photometric stress, namely darkening, glare overlays and sensor noise, which are known to hurt photometric flow. Second, we build the flow-free pipeline above and train it on VIPER→Cityscapes-VPS with the same backbone, schedule and adversarial stage as Shin et al. Third, an attribution analysis asks whether the gains concentrate where the diagnostic showed flow failing: disoccluded regions, low-light regions and thin structures. If gains are spread uniformly, the "domain-robust correspondence" story is wrong and something else is responsible.

Baselines

The naive reference is a source-only segmenter trained on VIPER and applied frame by frame to Cityscapes-VPS. It shows how much any adaptation buys and how much flicker the unadapted model produces.

The strongest existing method is VAT+VST from Shin et al., with 51.91% mIoU and 36.43% VPQ on VIPER→Cityscapes-VPS. It uses temporal agreement and differs from our system only in where correspondence comes from, so it is the right competitor. We will first reproduce it with the same backbone, crop size, iteration count and pseudo-label schedule as our method, and compare against both the reproduced and the reported numbers. Beating it means a gain in both mIoU and VPQ over the reproduced run across three seeds, larger than seed-to-seed spread. We also require a larger margin under photometric stress than on clean clips.

The image-only adaptation method IAST, which the same paper reports 2.55 mIoU points below VAT+VST, stands in for adaptation that ignores time. The supervised VPSNet result of 56.1 VPQ from Video Panoptic Segmentation is a ceiling from real labels, not a competitor.

The key ablation swaps only the correspondence source inside an otherwise identical pipeline. The options are the frozen external flow network, a flow network fine-tuned on target clips with its usual photometric self-supervision, our head trained on source only, and our head with target round-trip training. Every option gets equal GPU-hours for its own adaptation. This isolates whether adapting correspondence jointly with the segmenter is what helps.

Why not just…?

Why not just adapt the flow network to real video instead? This is the real threat. A flow network fine-tuned on target clips with photometric self-supervision might close most of the gap. Our reason for doubt is that photometric self-supervision assumes brightness stays constant, and that assumption breaks under glare, shadow and noise, which are the conditions we target. Semantic features can match a car across a lighting change where raw pixel intensities cannot. This is not assumed, however; the correspondence-swap ablation settles it at matched compute. If adapted flow matches our head, we will report the contribution honestly as the diagnostic finding plus a cheaper equivalent, not as a better signal.

Why not just use MetaTrans-style static/temporal subtraction and skip correspondence entirely? MetaTrans pools its static stream over time, which suits clip-level labels. At the pixel level, pooling over time mixes different objects at the same location once anything moves, so the static stream is misaligned exactly on dynamic objects. We will still run a dense version, with the subtracted features fed to the video discriminator of Shin et al., as a flow-free competitor.

Why not just translate synthetic frames to look real, as PixelDA does, and train on those? PixelDA works frame by frame. Applied to video, it has no cross-frame memory and introduces flicker. It also changes the source data without giving any trustworthy signal on unlabeled target video. We treat it as complementary and test whether it stacks with our method rather than replacing it.

Why not just smooth predictions afterwards? TSAM and the ablations of Shin et al. indicate that output-level blending ghosts at object boundaries and does not improve per-frame accuracy. We will run flow-warped temporal averaging on the source-only and IAST-style outputs to show whether VPQ rises while mIoU stays flat.

Decisive Checks

The idea stands or falls on three results. First, the diagnostic must show that frozen-flow agreement masks lose precision under photometric stress markedly more than our round-trip masks. If they do not, the premise fails. Second, the correspondence-swap ablation must show target-trained feature correspondence beating target-adapted flow at equal compute on both mIoU and VPQ. Third, gains must concentrate in disoccluded and low-light regions and must hold at longer VPQ windows, where drift accumulates. We would also report whether VPQ at larger $k$ degrades more slowly than for the reproduced Shin et al. baseline, since errors compounding over long horizons are a known weakness of chained flow warping.