MoBack: End-to-End Video Background Replacement with Versatile Guidance

Dingbao Shao, Bojun Xiong, Shuai Huang, Jiawei Lu, Jun Liang, Ying Tai, Yunlong Feng, Zili Yi, Jing LiarXiv 2026

TL;DR

Replacing a video's background—without making the foreground actor look like a cheap cardboard cutout—usually requires either painstaking manual work or rigid AI tools that only accept one kind of prompt. MoBack is a unified, end-to-end model that lets you swap video backgrounds and relight the scene using text, a background image, or edited reference frames, all while keeping the foreground performance intact.

What Problem Does This Paper Address?

In film and animation post-production, swapping out a green screen (or any original background) for a dynamic, realistically lit scene is still surprisingly hard. Traditional video matting and compositing tools are labor-intensive. Recent generative video models have made automated background replacement possible, but they come with two major headaches:

  1. Single-mode rigidity: Most models are built around just one type of guidance—either a text prompt, a background image, or an edited first frame.
  2. Clunky pipelines & poor data: Many require multi-step pre-processing (like extracting depth maps or surface normals), and existing open-source datasets often suffer from static cameras, unnatural backgrounds, and blurry edges around the subject.
MoBack's three background replacement tasks

Methods

MoBack tackles this by pairing a Multi-modal Large Language Model (MLLM) (Qwen3-VL-8B) with a pre-trained text-to-video Diffusion Transformer (DiT) (Wan2.2-T2V-A14B).

  • MLLM-to-DiT Alignment (The Brain): Rather than relying on a standard text encoder, MoBack uses an MLLM with LoRA adapters and learnable queries (inspired by MetaQuery) to digest the source video, reference images, and text instructions. To make sure the MLLM speaks the DiT's language, the authors first pre-train it on four tasks (text-to-video, text-to-image, and video/image reconstruction) and then use vision-based knowledge distillation from the DiT's original text encoder (umT5).
  • In-Context Learning & Two Clever Embeddings (The Control): The VAE latents of any reference images, the source video, and the noisy target video are concatenated along the frame dimension. To give the DiT precise control, MoBack adds two learnable embeddings to the reference image tokens:
  • Reference type embedding: Tells the model whether a reference image is a background-only image (Task B) or a complete edited frame (Task C).
  • Subframe anchor embedding: Because the video VAE compresses every four frames into a single latent frame (except the first), standard 3D positional encodings can't tell which of those four frames a reference image belongs to. This embedding encodes the exact subframe index.
  • MoBack-Turbo (The Speedup): To make inference practical, the authors also train a distilled variant using Video Sparse Attention (VSA) and phased distribution-matching distillation, cutting denoising from 20 steps down to just 4.

Datasets

To fix the data quality bottleneck, the authors built MoBack-100K, a dataset of 105,191 49-frame source–target video pairs from three sources:

  • Unreal Engine renderings (30,875 pairs): Exact temporal correspondence and controlled scene changes.
  • Real production shots (3,844 pairs): Green/blue-screen footage paired with finished shots.
  • Semi-synthetic pairs (70,472 pairs): Film clips and human-motion videos with newly synthesized backgrounds.

All pairs support Task A (text) and Task C (reference frames), while 41,235 support Task B (background images). They also introduce MoBack-Bench (150 held-out test pairs, 50 per source) and evaluate on OpenVE-Bench (59 background-change samples).

Key Insights and Ideas

  • Distillation fixes MLLM semantics: Multi-task pre-training alone helps the MLLM-DiT pair generate nice-looking videos, but it often gets objects or attributes wrong. Adding knowledge distillation from umT5 boosts VBench semantic scores by 11.55 points, bringing it on par with the native text encoder.
  • Subframe precision matters: Removing either the reference type embedding or the subframe anchor embedding noticeably hurts target fidelity (dropping PSNR by 0.62 dB on Task B and 1.42 dB on Task C), showing that the DiT needs explicit hints about what a reference image is and exactly when it occurs.
  • 4 steps can beat 20: Thanks to distribution-matching distillation, MoBack-Turbo isn't bound by its teacher's sampling trajectory—meaning it actually matches or slightly outperforms the 20-step MoBack-Base across all three tasks.

Key Results

  • MoBack-Bench: MoBack-Base and MoBack-Turbo outperform seven recent baselines (including Bernini, MiniMax-H3, ID-V2V, and Sparkle) on nearly every metric, achieving +6.4 dB PSNR on Task B and +6.2 dB PSNR on Task C over the strongest baseline.
  • OpenVE-Bench: MoBack-Turbo (3.84 overall) and MoBack-Base (3.81) edge out all baselines (next best is Bernini at 3.80).
  • Speed: On an NVIDIA H200 GPU, MoBack-Turbo generates a 49-frame 720p video in 46–48 seconds—7–14× faster than MoBack-Base (341–660s) and on par with the fastest baselines.

Limitations and Future Work

The authors do not include a dedicated limitations section in the main text. They note that they plan to release their code, trained models, and the copyright-cleared portions of MoBack-100K and MoBack-Bench following an internal copyright and compliance review.

Summary updated

BibTeX
@misc{shao2026moback,
  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},
  title = {{MoBack: End-to-End Video Background Replacement with Versatile Guidance}},
  year = {2026},
  eprint = {2612.03507},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.03507},
}
Figure