Long-video perception models stay fast because they do not keep every past frame. They fold each new frame into a small, fixed-size summary, a "memory state," so memory and latency stay constant no matter how long the video runs. Separately, simulators can supply unlimited labelled video for these models to learn from. The two ideas meet in a failure nobody has measured. A memory state trained only on clean synthetic video is then fed real footage with sensor noise, odd lighting and long occlusions. Each frame's small mistake is written into the summary and carried forward, so the error may compound over time instead of staying local. We propose to measure this "sim-to-real memory drift" directly. We then test whether it can be reduced by adapting the part of the model that updates the memory, using unlabelled real video, rather than only the part that encodes each frame.
The core bet fits in two sentences. First, the synthetic-to-real gap in streaming models lives partly in the dynamics of the memory update, and it shows up as accuracy that decays with time since the stream started. Second, that decay can be trained away without real labels. We do this by asking the model's prediction at a frame to be the same whether it has been running for a long time or a shorter time. We also teach it to repair the kinds of memory corruption that real video actually produces, instead of hand-made mask noise.
What exists and what is missing
Constant-memory video models supply the architecture we start from. The Global Context module of Fast Video Object Segmentation Using the Global Context Module replaces a growing per-frame memory with a running weighted summary. It reports 86.6 J&F on DAVIS 2016 at 25.0 FPS with about 1 MB of feature memory. Recurrent Dynamic Embedding for Video Object Segmentation (RDE) keeps a bounded memory bank, distils from a full-memory teacher, and adds a "self-correction" step. In that step, masks are perturbed by dilation and erosion during training so the model learns to repair corrupted memory. RDE reports 86.1% J&F on DAVIS 2017 at 27 FPS. Both papers were trained and tested on real data. Their long-video evidence comes from looping short clips up to 20 times. A looped clip repeats content the model has already handled correctly, so it cannot reveal compounding errors from unfamiliar inputs. We reuse their architectures and their self-correction idea. We differ in testing them across a domain gap, on non-repeating streams, with drift as the main quantity of interest.
Video domain adaptation motivates the work and gives the strongest competitor. Unsupervised Domain Adaptation for Video Semantic Segmentation adapts from synthetic VIPER to real Cityscapes-VPS in two stages. The first is a clip-level adversarial stage that pushes synthetic and real video features to look alike. The second is self-training on real video, using pseudo-labels obtained by warping neighbouring predictions with an off-the-shelf optical-flow network. It reaches 51.91% mIoU and 36.43% Video Panoptic Quality (VPQ). It works on short windows, relies on optical flow, and has no persistent state, so it says nothing about what happens to a state carried across thousands of frames.
Return of Frustratingly Easy Unsupervised Video Domain Adaptation shows that video domain shift splits into a spatial part and a temporal part. It aligns only the temporal residual, but on short real-to-real action clips. We borrow the spirit of that split, applied to a recurrent update rather than a clip encoder.
World Model-based Perception for Visual Legged Locomotion is a reminder that a recurrent state trained purely in simulation can transfer zero-shot. That paper also leaves adapting the recurrent model on real video as future work, which is exactly our step. WinT3R trains a streaming reconstructor on mixed synthetic and real data and openly reports unresolved long-sequence drift. This is the same symptom in another task.
Two papers constrain the design. Adversarially Masking Synthetic to Mimic Real shows that clean synthetic data gives a domain discriminator a shortcut, and that realistic, structured corruption beats generic feature alignment. On SynLiDAR to SemKITTI it improves from 15.2% to 22.8% mIoU, against a 55.5% real-data oracle. This is our reason to replace RDE's geometric mask noise with corruptions mined from real failures. Amodal Instance Segmentation with IRAIS Dataset for Sim-to-Real Transfer documents that real failures come from translucency, refraction and deformation, not uniform noise.
Core Claim
Take a constant-memory model trained on synthetic video and run it on real streams. We predict its per-frame accuracy will fall with time since the stream started, and fall measurably faster than when it runs on synthetic streams of equal length. We further predict that adapting only the memory-update operator on unlabelled real video recovers more of this time-dependent loss than adapting only the frame encoder. If both predictions hold, the sim-to-real gap for streaming perception has a temporal component that per-frame adaptation methods cannot see.
Research Program
We build a GC/RDE-style constant-memory model for video semantic segmentation. The model has a frame encoder, an update operator that merges the encoded frame into a fixed-size state, and a decoder. We train it on VIPER and adapt it to unlabelled Cityscapes-VPS video with two ingredients.
The first ingredient is start-point invariance. We run two copies of the model over the same real stream. One starts at frame $a$; the other starts later, at $b > a$, but still well before the evaluation frame $t$. If the update operator is healthy, extra history should help or do nothing, not corrupt. We therefore penalize disagreement where the shorter-run copy is confident:
$$ \mathcal{L}_{\text{SPI}} = \sum_{t} \sum_{p} m_{t,p}\, \mathrm{CE}\big(\,\mathrm{sg}[\hat y^{(b)}_{t,p}],\ \hat y^{(a)}_{t,p}\big) $$
The symbols are defined as follows. $\hat y^{(a)}_{t,p}$ and $\hat y^{(b)}_{t,p}$ are the class predictions at frame $t$ and pixel $p$ from the copies started at $a$ and $b$. $\mathrm{sg}$ stops gradients through the shorter-run copy. $\mathrm{CE}$ is cross-entropy. $m_{t,p}$ is a mask that keeps only pixels where the shorter-run copy is confident and stable across adjacent frames. Gradients flow only into the update operator; the encoder is frozen during this stage. That restriction is what makes the update-versus-encoder ablation clean.
This loss carries a real risk: it could push the model to throw away long context so that it behaves like a short-window model. We guard against this in two ways. We keep $b - a$ large, and we evaluate separately on objects that reappear after long occlusion, where long context should help.
The second ingredient is mined self-correction. We take the regions where the two copies disagree on real video. These are the model's actual drift patterns. We fit a simple generator of corruption masks to their shapes, sizes and locations. We then use these masks in place of RDE's dilation/erosion when training the memory-repair pathway on synthetic data. This carries the lesson of Adversarially Masking Synthetic to Mimic Real, that corruption should look like real corruption, into the memory itself.
Memory and per-frame compute stay constant at inference. Training runs over long sequences in truncated chunks, which addresses the sequential-training cost WinT3R reports.
Baselines
The naive reference is the same constant-memory model trained on VIPER and applied to Cityscapes-VPS with no adaptation. This number is the size of the gap we must close. Alongside it, we run the same model with periodic memory resets every $k$ frames, sweeping $k$. Resetting is the cheapest possible cure for drift. If it matches our method, our method has no reason to exist.
The strongest existing method is VAT+VST from Unsupervised Domain Adaptation for Video Semantic Segmentation, which reports 51.91% mIoU and 36.43% VPQ on VIPER to Cityscapes-VPS. We will run it in two forms. One is its published architecture, reproduced to confirm the reported number. The other is the VST self-training stage applied to our constant-memory model, using the same VIPER data, the same unlabelled target frames, and the same number of adaptation GPU-hours. Hyperparameters for every method get an equal search budget on a held-out labelled validation split. The image-only method IAST, which the file implies scores 49.36% mIoU (51.91 minus 2.55), serves as the per-frame reference.
Beating the strongest method means two things. Our model must at least match 51.91 mIoU while using constant memory and no optical flow at test time. And it must show a significantly flatter accuracy-versus-time curve than VST applied to the same backbone.
The key ablation adapts the encoder only, the update operator only, and both, all with the same losses and budget. This isolates whether the temporal operator is where the gap lives. A second ablation swaps mined corruptions back to RDE's morphological noise.
Why not just…?
Why not just freeze a pre-trained foundation backbone? Synthetic vs. Real Training Data for Visual Navigation reaches 90% real-world success with a frozen encoder and simulation-only training. This is a genuine threat. That task compares a current frame to a goal frame, with no dense long-horizon state, so it does not show whether a frozen encoder prevents state drift. We include a frozen DINOv2-style encoder variant, with and without our update-operator adaptation. If the frozen variant alone flattens the drift curve, we will report that the temporal gap is mostly an appearance gap. That would be a useful negative result.
Why not just periodically reset the memory? Resetting bounds drift by construction, but it discards information about objects occluded longer than the reset interval. Seo reports exactly this identity loss for windowed models. The reset sweep and the reappearance subset settle the question. Our method must beat the best $k$ on reappearance accuracy without losing overall mIoU.
Why not just translate synthetic frames to look real first? Frame-by-frame translation in the style of PixelDA changes appearance but is known to flicker across frames (Shi et al.). By its own account it does not model structural or sensor effects. We treat it as a complementary preprocessing baseline. If translation plus no adaptation flattens drift as much as our method, the claim fails.
Proposed Experiments
The first experiment is diagnostic and decides whether the project continues. We bin labelled Cityscapes-VPS frames by time since stream start and fit the slope of mIoU against frame index for the source-only constant-memory model. We fit the same slope on held-out VIPER streams of equal length. We also track the label-free disagreement from the start-point-invariance loss over the longest available unlabelled real sequences. If the real-video slope is no steeper than the synthetic one, there is no sim-to-real drift to fix, and the adaptation study is unnecessary.
The second experiment is the main comparison on VIPER to Cityscapes-VPS. We report mIoU, VPQ, drift slope, reappearance accuracy, FPS and peak memory against all baselines above.
The third experiment tests whether the effect carries to a second task. We train GC- and RDE-style object segmenters on object tracks derived from VIPER and evaluate on DAVIS 2017 and YouTube-VOS with time-binned J&F. The in-domain real-trained RDE score of 86.1 J&F on DAVIS 2017 serves as the oracle. No reported synthetic-to-real VOS result was found on Lacuna, so our source-only run establishes that reference.
The decisive check is the encoder-versus-update ablation. The core claim stands if adapting only the update operator removes a larger share of the drift slope than adapting only the encoder. The claim holds only if this result survives both the best periodic-reset setting and the frozen-backbone variant.
References
- Fast Video Object Segmentation Using the Global Context Module
- Recurrent Dynamic Embedding for Video Object Segmentation
- Unsupervised Domain Adaptation for Video Semantic Segmentation
- Return of Frustratingly Easy Unsupervised Video Domain Adaptation
- World Model-Based Perception for Visual Legged Locomotion
- WinT3R: Window-Based Streaming Reconstruction with Camera Token Pool
- Adversarially Masking Synthetic to Mimic Real: Adaptive Noise Injection for Point Cloud Segmentation Adaptation
- Amodal Instance Segmentation with IRAIS Dataset for Sim-to-Real Transfer
- Synthetic vs. Real Training Data for Visual Navigation
- URVOS: Unified Referring Video Object Segmentation Network with a Large-Scale Benchmark
- Unsupervised Pixel-Level Domain Adaptation with Generative Adversarial Networks
- Self-supervised ControlNet with Spatio-Temporal Mamba for Real-world Video Super-resolution