Vera: A Layered Diffusion Model for Content-Preserving Video Editing

Hongkai Zheng, Ta-Ying Cheng, Benjamin Klein, Yisong Yue, Zhuoning YuanarXiv 2026

TL;DR

Vera is a novel layered video diffusion framework that shifts away from the traditional end-to-end pixel regeneration paradigm. By jointly generating an edit layer, an alpha matte, and a composite video, Vera isolates creative edits from the original content, achieving state-of-the-art content preservation while delivering production-ready layered assets.

What Problem Does This Paper Address?

State-of-the-art video diffusion models excel at generating and editing videos, but they suffer from a fundamental flaw in practical production: content preservation. Because standard video-to-video (V2V) models regenerate every pixel in a frame from scratch, they frequently introduce unintended changes to unedited regions—warping a character's face during a background swap or altering fine textures.

Furthermore, existing models output a single, flattened composite video. In professional VFX and editing workflows, creators require layered assets (like separate foregrounds and alpha mattes) to perform iterative adjustments. Manually rotoscoping and separating these elements after generation is tedious and error-prone.

Methods

Vera addresses these challenges by treating video editing as a layered composition problem. Given an input video and a text prompt, it models the joint conditional distribution of three distinct outputs: an edit layer, an alpha matte, and a final composite video.

Overview of the Vera Inference Pipeline

To handle this multi-task generation, the authors introduce several key architectural and training innovations:

  • Mixture-of-Transformers (MoT): Rather than forcing a single, shared Diffusion Transformer (DiT) to learn three vastly different image distributions, Vera deploys three separate DiT branches (one for each output layer). These branches interact dynamically through joint self-attention, where tokens from all three layers are concatenated into a single sequence during the attention step.
  • Asymmetric Per-Layer Learning Rates: Through ablation studies, the authors found that the alpha matte and composite branches benefit from a significantly faster adaptation rate ($10\times$) relative to the creative edit branch ($0.1\times$).
  • Flow Matching Formulation: The framework is implemented within a latent diffusion space using a pretrained VAE, optimized via flow matching velocity fields.
Vera Architecture vs. Baselines

Datasets

Because no public datasets provided the high-quality layered video data required to train such a model, the authors curated a new dataset containing 486K frames (~6K video tuples). The data pipeline combines automated tools (SAM 2, VideoMaMa, Casper-1.3B) with human verification across three subsets:

  1. Synthetic Composites: Foreground human subjects with precise alpha mattes from VideoMatte240K, blended onto diverse AI-generated backgrounds.
  2. Realistic Single-Object Videos: Real-world videos from Pexels and Mixkit processed through segmentation and inpainting chains to capture natural camera movements.
  3. Realistic Multi-Object Videos with Effects: Complex scenes utilizing Omnimatte optimization to accurately extract individual objects alongside their associated shadows and reflections.
Data Construction Pipelines

Key Insights and Ideas

  • Distributional Disconnect: A single dense transformer is highly data-inefficient when tasked with simultaneously outputting natural video, grayscale mattes, and transparent edit layers. Splitting the architecture into specialized MoT branches allows each branch to specialize while joint attention maintains cross-layer alignment.
  • The Composite Layer as a Regularizer: Generating the final composite video alongside the raw layers might seem redundant, but it is crucial. The composite layer forces the model to learn natural video distributions, which regularizes the edit and alpha branches and ensures seamless cross-layer harmonization (e.g., correct lighting and shadow casting).

Key Results

The authors evaluated two variants: Vera-1.3B (3.9B total parameters) and Vera-14B (42B total parameters) against leading open-source video editing baselines (including VACE, Ditto, and ReCo).

  • Quantitative Performance: On content preservation metrics, Vera vastly outperformed all baselines. For background replacement, Vera-1.3B surpassed the strongest baseline by 3.5 dB PSNR, and by 6.3 dB PSNR on object addition tasks. Vera-14B extended these gains to 4.5 dB and 7.1 dB PSNR, respectively, while cutting structural error (1-SSIM) and perceptual distance (LPIPS) by more than half.
  • Human Preference: In a two-alternative forced choice (2AFC) user study, human annotators overwhelmingly preferred Vera for content preservation and instruction compliance across both object addition and background changes.
User Study Results

Limitations and Future Work

  • Inference Overhead: Jointly generating three layers via MoT increases computational complexity. Vera-1.3B is roughly 3× slower to generate a video compared to end-to-end baselines like VACE.
  • Task Scope: The current implementation is restricted to object addition and background replacement. Expanding to global edits like relighting or complex stylistic visual effects (VFX) remains future work.
  • Semi-Transparent Backgrounds: The model assumes that the preserved background content contains minimal semi-transparent regions. Complex elements like glass or water reflections in the original background are not yet perfectly handled.

Summary updated

BibTeX
@misc{zheng2026vera,
  author = {Hongkai Zheng and Ta-Ying Cheng and Benjamin Klein and Yisong Yue and Zhuoning Yuan},
  title = {{Vera: A Layered Diffusion Model for Content-Preserving Video Editing}},
  year = {2026},
  eprint = {2606.23610},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.23610},
}
Figure