Surface-Anchored Memory for Long-Horizon Sim-to-Real Video Translation

Robot learning increasingly uses video diffusion models to make simulator footage look real. A video diffusion model is a generator that produces clips by gradually removing noise from random input. The simulator supplies the motion and geometry, and the diffusion model repaints the appearance. These translators work on short, fixed-length clips. Real manipulation episodes are longer than one clip, so the translation has to be stitched together chunk by chunk, with each new chunk conditioned on the last frames of the previous one. That stitching carries the known weakness of every autoregressive video generator: the model conditions on its own imperfect outputs, so small errors pile up. In a translated robot episode the result is concrete and harmful. A mug that was blue in second one is teal in second forty. A tabletop texture changes after the wrist camera looks away and back. The policy trained on this data sees objects change identity partway through an action.

This proposal starts from one observation. Unlike a generic video generator, a sim-to-real translator knows exactly which surface point every pixel shows, because the simulator knows it. We propose to stop conditioning each chunk only on recent frames. Instead, each chunk is conditioned on a surface-anchored appearance memory: a per-surface record of what color the translator gave each simulated surface the first time it clearly saw it, re-rendered into the current camera view using the simulator's exact geometry. Drift then has nothing to accumulate on. Surfaces that were already seen get re-used appearance, and only surfaces seen for the first time are free to be invented. The first test is whether this keeps object appearance consistent over episodes many times longer than the translator's context window. The second, more important test is whether that consistency turns into better policies in simulation and on real robots.

Core Claim

Generic methods for long video generation fight drift with heuristics about which past tokens to keep. LongLive keeps frame 0 permanently in the attention cache (an "attention sink") and adds long-video fine-tuning. Deep Forcing keeps 40–60% of the early context and prunes the rest without retraining. BAgger fine-tunes on time-reversed drifted rollouts so the model learns to recover. All three must guess what to remember, because a text-to-video model has no ground truth about scene identity.

A sim-to-real translator does have that ground truth. We claim that dense correspondences from the simulator make memory selection unnecessary for surfaces already observed. The right conditioning signal is therefore not "the last $k$ frames" or "frame 0". It is the reprojection of previously generated appearance onto the current view. The effect should grow with episode length and with how often the camera revisits surfaces. Frame-0 sinks cannot help here, because surfaces that first appear later are not in frame 0.

Relation to Prior Work

Three works motivate the proposal by showing that video diffusion translation helps policies while exposing the gap we target. Seeing Realism from Simulation translates RoboTwin 2.0 and LIBERO videos with a depth- and text-conditioned video diffusion model. It reports policy gains, but it uses fixed-length generation and observes a slight drop on standard LIBERO from over-augmentation. RoboTransfer conditions Stable Video Diffusion on depth, surface normals, and reference appearance. It works as an offline, fixed-clip translator, and it reports that policies degrade when the share of synthetic data gets high. SimGen turns clean simulator condition maps into realistic ones for driving images, but it generates frame by frame or in short sequences and leaves long-rollout drift unaddressed. We keep their recipe of conditioning on simulator geometry. What we add is a way to carry appearance across chunk boundaries and occlusions.

EnerVerse is the closest system that combines chunk-wise autoregressive video with sim and real robot data. It fights drift by dropping redundant history frames and filters hallucinations afterward with 4D Gaussian Splatting (a 3D-over-time scene reconstruction). It is a world model that predicts the future. We translate a simulator episode whose future geometry is already known, which lets us use exact correspondences instead of reconstructing them after the fact.

ReBot limits what our design can claim. It composites physically simulated objects onto inpainted real backgrounds and reaches 99.2% VBench motion smoothness, showing that deterministic rendering beats generative video on temporal consistency. We accept that lesson. Motion and geometry come from the simulator. Only appearance is generated, and we make that generated appearance persistent. Diffusion Forcing supplies part of the method: giving each conditioning input its own noise level. We apply that idea to the memory hint, so the model can override stale appearance, such as a specular highlight, when the current view calls for it.

Research Program

The memory. Each simulated mesh carries texture coordinates. After chunk $i$ is generated, we use simulator depth and camera pose to assign each generated pixel's color to the surface texel it shows. We keep an observation only if two conditions hold. The first is a "first confident observation" condition, requiring that the surface is not grazing, occluded, or blurred. The second is that a texel with a stored value is not overwritten except by a slow, view-weighted average.

Conditioning each chunk. Before generating chunk $i+1$, we render the memory into the camera for every frame of that chunk. This gives an appearance hint image and a validity mask, where the mask marks texels never seen before. The translator is conditioned on four inputs: simulator depth and segmentation, as in prior work; the hint and mask; the last few generated frames, for motion continuity; and the text prompt. Articulated and deformable simulated objects keep their mesh correspondence, so the memory follows them.

Training. The translator is trained on real robot video, where no simulator exists. There we build hints from the real earlier frames by warping them with estimated depth and point tracks. We corrupt these hints with random noise levels and random masking, following Diffusion Forcing. This teaches the model to use the hint strongly when it is reliable and to repaint through it when it is not. At deployment, simulator correspondences are exact, so the hints are cleaner than anything seen in training. The remaining error comes only from the translator's own earlier outputs.

A training-free variant. We also test a variant that needs no retraining. Here the rendered hint is injected into an existing depth-conditioned translator by partially noising the hint region and denoising it, a form of inpainting guidance. This addresses the disagreement between Deep Forcing and LongLive/BAgger over whether drift can be fixed at inference time. We treat it as an empirical question rather than taking a side.

A drift metric. The simulator provides an exact measurement tool. For any two frames $t$ and $t'$ that both see a surface texel $u$, we compute the reprojected appearance error

$$E(\Delta) = \mathbb{E}_{u,\,|t-t'|=\Delta}\,\big\| I_t(\pi_t(u)) - I_{t'}(\pi_{t'}(u)) \big\|_1 ,$$

where $I_t$ is the generated frame at time $t$ and $\pi_t(u)$ is the pixel where texel $u$ projects at time $t$. We also compute the same quantity on the raw simulator renders, under fixed lighting, as a floor. $E(\Delta)$ as a function of the time gap $\Delta$ is our main consistency curve. A drift-free translator gives a flat curve. Chunked translators should rise after roughly one context length.

Baselines

Naive reference. The do-nothing point is policies trained on the simulator renders alone, with RoboTwin 2.0 domain randomization over clutter, lighting, 11,000 backgrounds, and table heights. That paper reports a 3.6× few-shot real-world gain over real-only training with 10 real demonstrations. Any translation method must beat this simulator-only policy at matched trajectory counts, or it is not worth its compute.

Strongest existing method. This is the Seeing Realism from Simulation pipeline: depth and rewritten-caption conditioning of a fixed-length video diffusion translator. For episodes longer than one clip, it is extended by overlapping chunks, with each chunk conditioned on the previous chunk's final frames. It is the strongest competitor because it is the published system on exactly our benchmarks. It reports that RDT-1B improves by 8% on RoboTwin 2.0, π0 improves by 5.1% on LIBERO-Plus, and real AgileX Piper success improves by 13–15% absolute. We run it with the same backbone, the same simulator trajectories, the same number of generated videos, and the same denoising-step budget as our method. Both methods get equal hyperparameter search on a held-out validation split.

What beating it means. Beating it requires two results. First, a significantly flatter $E(\Delta)$ curve on episodes longer than two context windows. Second, higher downstream policy success on long-horizon tasks, while matching it within noise on short tasks. The short-task result is where we expect no gain, and a gain there would suggest a confound.

Other baselines. We compare against RoboTransfer-style offline geometry-and-reference conditioning, run chunk-wise, as a second translation competitor. We also include a frame-0 attention-sink variant in the style of LongLive, implemented in our backbone, to test whether a generic memory heuristic already suffices.

Ablations. Three ablations isolate the key ingredient. The first replaces simulator correspondences with correspondences estimated from optical flow on the generated frames. If this works equally well, the simulator's privileged geometry is not what matters. The second removes the validity mask. The third removes the noise-level control on the hint, which tests whether a rigid hint suppresses legitimate lighting and view-dependent changes.

Why not just…?

Why not just chunk a fixed-length translator with overlapping frames? This is the real threat. For episodes that fit within one or two context windows, we expect it to match our method, and we will report that openly. It fails for two reasons that the file's evidence predicts. It inherits the compounding self-conditioning error documented by BAgger, whose baselines degrade within 10–15 seconds. And it has no memory of surfaces that left the view. The episode-length and revisit sweeps below settle the question directly. If $E(\Delta)$ and policy success do not separate beyond two context lengths, the idea is refuted.

Why not just keep frame 0 as an attention sink, or prune the cache as Deep Forcing does? Sinks preserve what was visible at the start. Wrist cameras and long bimanual tasks keep revealing new surfaces, and those surfaces get no protection from a sink. The LongLive-style sink baseline and a revisit-heavy test split measure this gap directly. If sinks close most of it, our contribution shrinks to handling late-revealed surfaces, and we will say so.

Why not just translate each frame independently with a fixed seed and depth conditioning? RoboTransfer reports that per-frame translation causes objects to flicker and change color. We include this as a low-cost reference to anchor the scale of $E(\Delta)$, not as a serious competitor.

Why not just composite simulated objects onto real backgrounds like ReBot? For rigid tabletop tasks with calibrated cameras and CAD assets, ReBot is probably more consistent than any generator, and we treat it as a consistency ceiling. It needs a real background plate for each scene and cannot produce the lighting and material diversity that translation provides. Our method keeps simulator geometry, so it applies wherever the simulator applies.

Proposed Experiments

The main testbed is RoboTwin 2.0. We translate its expert trajectories and train RDT-1B and π0 on each method's data at matched counts. Evaluation covers held-out randomized appearances in simulation and the real Aloha-AgileX setup the benchmark supports. We report results separately for short tasks and for long or multi-stage tasks such as "Dual Shoes Place", where RoboTwin reports success under 15%. The comparison point is the +8% RDT-1B gain from Seeing Realism from Simulation. The second testbed is LIBERO-Plus, where the reference is +5.1% for π0. We also run standard LIBERO, where that paper saw a slight dip. We test whether part of that dip comes from within-episode appearance changes, which our method should remove. For long-horizon evaluation we use CALVIN, which EnerVerse evaluates, though no reported result was found on Lacuna for CALVIN in the file.

Video quality is reported with VBench subject consistency, imaging drift, and motion smoothness, the same metrics used by BAgger and ReBot, alongside our simulator-exact $E(\Delta)$.

The decisive check is a sweep over episode length, from 0.5 to 8 translator context windows, and over revisit rate. Revisit rate is controlled by camera paths that leave and return to objects. Our prediction is concrete. The overlapping-chunk baseline's $E(\Delta)$ should rise with $\Delta$ past one context length, while ours should stay near the simulator floor. The policy-success gap should track the consistency gap across tasks. The correspondence-source ablation must show that simulator correspondences beat estimated ones. Otherwise the claim that the simulator's privileged geometry is the key ingredient fails. A final real-robot run on the tasks with the largest simulated gaps tests whether the consistency gain survives the actual reality gap.