arXiv:2612.03507 · Paper, Code & Weights Available
MoBack Emblem MoBack

End-to-End Video Background Replacement with Versatile Guidance

Unified text, background-image, and reference-frame conditioning in a single MLLM-to-DiT framework—preserving foreground performance while harmonizing illumination.

Dingbao Shao1,2,* Bojun Xiong2,*,‡ Shuai Huang2 Jiawei Lu2 Jun Liang2 Ying Tai1 Yunlong Feng3 Zili Yi1,† Jing Li2
1Nanjing University 2Orange Team, Moku Lab, HUJING Digital Media & Entertainment Group 3Independent Researcher
* Equal contribution · ‡ Project leader · † Corresponding author
00:00 / 01:15
Unified Paradigm 3-in-1 Text · BG Image · Keyframes in One Model
Task B Fidelity +6.4 dB PSNR Gain over Strongest Baseline
MoBack-Turbo 45.7s 14–78× Faster Inference (49f 720p, H200)
MoBack-100K 105,191 Curated Source–Target Training Pairs
01Overview

Abstract & Unified Guidance

Video background replacement is an essential task in post-production, film, and animation, yet most existing methods handle only a single conditioning modality or rely on brittle pre-processing pipelines. MoBack unifies textual instructions (Task A), background reference images (Task B), and edited reference frames (Task C) in a single end-to-end model while faithfully preserving foreground performance. We adopt a Multi-modal Large Language Model (Qwen3-VL) aligned with a text-to-video Diffusion Transformer (Wan DiT) via multi-task pre-training and vision-based knowledge distillation from umT5, and introduce learnable reference type (Er) and subframe anchor (Es) embeddings for precise spatial and temporal control. Built upon MoBack-100K (105,191 pairs), MoBack and its accelerated variant MoBack-Turbo establish strong results across MoBack-Bench and OpenVE-Bench.

Task A 95.69 PCK · 45.7s

Text-Guided Replacement

Synthesizes dynamic environments, atmosphere, and physically plausible foreground relighting directly from natural-language prompts—no external matting required.

Source Video + Text Instruction
Task B +6.43 dB PSNR

Background-Image Conditioned

Grounds foreground subjects into 1–3 target background photographs with coherent camera perspective, ambient lighting, and contact shadows.

Source Video + Instruction + 1–3 BG Images
Task C 27.92 dB PSNR

Reference-Frame Propagation

Propagates 1–3 edited full frames cleanly across the shot via learnable subframe anchor embeddings inside compressed VAE temporal groups.

Source Video + Instruction + 1–3 Edited Frames
Figure 1. MoBack unifies video background replacement across Task A (text), Task B (background image), and Task C (edited reference frames) inside one end-to-end model—preserving foreground identity and motion while adapting illumination to the target scene.
03Methodology

Methodology & Architecture

Bridging Qwen3-VL multimodal reasoning with Wan DiT via two-stage alignment, reference embeddings, and MoBack-Turbo distillation.

Figure 2. (a) Overview: Qwen3-VL interacts with learnable queries and an MLP connector to condition Wan DiT via cross-attention, while reference, source, and target latents are concatenated with frame-aligned 3D RoPE. (b) Vision-based KD: Aligns MLLM queries with the frozen umT5 velocity field. (c) Reference embeddings: Adds Er and Es to reference tokens.
Stage 1 · MLLM–DiT Alignment

Multi-Task Pre-training & Vision KD

Trains Qwen3-VL LoRA adapters, learnable queries, and a 2-layer MLP connector across T2V, T2I, and reconstruction, then distills from frozen umT5 via velocity matching.

Stage 2 · Fine Controllability

Reference Type & Subframe Anchors

Concatenates reference, source, and target latents with frame-aligned 3D RoPE, adding learnable Er (background vs. edited frame) and Es (exact subframe offset inside VAE groups).

MoBack-Turbo · Acceleration

VSA & Phased Expert Distillation

Combines Video Sparse Attention (VSA), phased distribution-matching distillation across dual high/low-noise Wan experts, and custom Triton kernels for 14×–78× speedup.

Stage-1 Alignment Verification · VBench

Vision-Based Knowledge Distillation Ablation

Before Stage-2 background replacement training, velocity-matching KD from umT5 aligns Qwen3-VL with the frozen Wan DiT—restoring multi-object composition and spatial grounding.

VBench

04Dataset

MoBack-100K & MoBack-Bench

105,191 curated source–target video pairs integrating Unreal Engine renderings, real green/blue-screen production shots, and semi-synthetic film clips.

105,191 Total Source–Target Pairs
41,235 Task B Pairs (+BG Image)
3 Sources UE · Real Production · Semi-Synthetic
150 MoBack-Bench Test Pairs
Semi-Synthetic · 70,472 (67.0%) Unreal Engine · 30,875 (29.3%) Real Production · 3,844 (3.7%)
Figure 3. Composition of MoBack-100K across Unreal Engine renderings (30,875), real production pairs (3,844), and semi-synthetic pairs (70,472), spanning diverse camera motions and lighting attributes.
05Benchmarks

Benchmarks & Comparisons

Evaluated against recent academic and commercial video editing models on MoBack-Bench and OpenVE-Bench.

Metric Legend
CA Condition Alignment FP Foreground Preservation FH Foreground Harmonization VQ Visual Quality TM Temporal Motion DINO-P Foreground Identity PCK Pose Keypoint Accuracy Ins / Cons Instruction & Consistency

Figure 4. Qualitative comparisons on MoBack-Bench for Task A (top), Task B (middle), and Task C (bottom), illustrating coherent foreground relighting and accurate reference propagation.
Multi-Method Video Matrix

Side-by-Side Video Comparisons vs. Baselines

Direct dynamic comparison of MoBack-Base and MoBack-Turbo against commercial and academic baselines on MoBack-Bench and OpenVE-Bench.

Prompt

06Citation

Citation

If MoBack is useful in your research or production workflow, please consider citing our work.

moback.bib
@article{shao2026moback,
  title         = {MoBack: End-to-End Video Background Replacement with Versatile Guidance},
  author        = {Dingbao Shao and Bojun Xiong and Shuai Huang and Jiawei Lu and Jun Liang and Ying Tai and Yunlong Feng and Zili Yi and Jing Li},
  journal       = {arXiv preprint arXiv:2612.03507},
  year          = {2026},
  eprint        = {2612.03507},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV},
  url           = {https://arxiv.org/abs/2612.03507}
}