LayerT2V: A Unified Multi-Layer Video Generation Framework

Guangzhao Li, Kangrui Cen, Baixuan Zhao, Yi Xin, Siqi Luo, Guangtao Zhai, Lei Zhang, Xiaohong Liu

Introduction

While state-of-the-art text-to-video (T2V) models like Sora and Wan2.1 produce breathtaking, high-fidelity results, they share a critical limitation for professional creators: they output "flat" videos. In professional VFX and editing pipelines, video is rarely treated as a single, flattened block. Editors rely on layers—separating characters from backgrounds to swap environments, adjust lighting, or apply localized effects.

Previous attempts at layered video generation have struggled with "semantic leakage" (where background textures bleed into the foreground) and a lack of temporal coherence (where masks flicker or shift independently of the subject). Generating multiple, perfectly aligned video streams simultaneously without incurring massive computational overhead has remained a significant challenge.

LayerT2V addresses this by introducing a unified framework that generates videos as a collection of editable layers—including the background, foreground subjects, and alpha mattes—in a single inference pass. By ensuring intrinsic cross-layer consistency, LayerT2V enables professional-grade video editing and compositing directly from text prompts.

The LayerT2V Approach

Rather than building a complex, multi-branch architecture, the authors of LayerT2V propose a novel "serialization" strategy. They leverage the high spatiotemporal compression of modern video backbones to concatenate different layers (Full Video, Background, Foreground, and Alpha Mask) along the temporal axis of a shared Diffusion Transformer (DiT).

This design yields a crucial insight: consistency becomes an intrinsic objective. By placing all layers on a shared generation trajectory (the same denoising process), cross-layer consistency is baked into the model's objective rather than applied as a post-processing step. If a foreground subject moves, the corresponding "hole" in the background and the alpha mask must move with it to minimize the loss.

To make this shared-backbone approach work, the authors introduced several key technical innovations:

  • LayerAdaLN (Layer Adaptive Normalization): Because an alpha mask has vastly different statistical properties than a texture-rich background, the model uses a learnable modulation vector for each layer type. The authors discovered that "layer identity" is a categorical attribute, not a spatial or temporal one (attempts to use 4D Rotary Positional Embeddings failed). LayerAdaLN allows the shared backbone to adapt its processing based on the specific layer a token belongs to.
  • Layered Cross-Attention: To prevent the background prompt from influencing the foreground subject, the model implements a block-sparse attention mask. This ensures that foreground visual tokens only attend to foreground text prompts, mitigating semantic leakage.
  • Mask VAE Adaptation: Standard Video VAEs are trained on natural images and struggle with the sharp edges and sparsity of alpha mattes. The authors fine-tuned the Wan VAE decoder using LoRA specifically for accurate mask reconstruction.

The model is trained in three progressive stages: adapting the VAE for masks, learning joint multi-layer generation, and finally extending the model to support multiple independent foreground subjects.

The VidLayer Dataset

To train LayerT2V, the researchers introduced VidLayer, the first large-scale dataset specifically designed for multi-layer video generation.

VidLayer consists of 50,000 high-quality video clips (approximately 4 million frames). Each entry includes the original video, an extracted background, foreground RGB layers, alpha mattes, and layer-specific text descriptions. The dataset was constructed using a highly automated pipeline: Qwen3-VL for annotation, SAM3 and MatAnyone for segmentation and tracking, and Gen-Omnimatte for background inpainting. To ensure high quality, GPT-4o was utilized as an "Artifacts Auto-Checker" to filter out samples with poor layer separation or inpainting glitches.

Results and Performance

LayerT2V was evaluated against LayerFlow, the current state-of-the-art in layered video generation.

  • Quantitative Superiority: On the VBench benchmark, LayerT2V significantly outperformed baselines in Subject Consistency (0.983 vs. 0.944 for the foreground) and overall Aesthetic Quality.
  • Qualitative Fidelity: The model produces remarkably clean foreground separation and sharp alpha mattes, maintaining integrity even during fast motion.
  • Human Preference: In perceptual studies, human evaluators preferred LayerT2V's results over 70% of the time across aesthetic quality, foreground quality, and text alignment.
  • Computational Efficiency: Despite generating four aligned video streams simultaneously, the "Effective Output FPS" remains comparable to single-layer models (1.03 FPS on an NVIDIA H100). The multi-layer capability comes with a minimal throughput penalty.

Limitations and Future Directions

Currently, LayerT2V is limited to generating a maximum of three foreground layers. While this is sufficient for many standard scenes, highly complex shots may require further scaling. Additionally, the quality of the model is inherently tied to its training data, which relies on the accuracy of underlying matting and inpainting models. If those models fail on very small objects or highly cluttered backgrounds, the training data—and consequently the generation quality—suffers.

However, this data dependency also presents a clear path forward. As automated video matting and inpainting models continue to improve, the VidLayer data engine can be re-run to create even higher-quality datasets, paving the way for models that can handle increasingly complex, multi-subject cinematic scenarios.

Summary updated

BibTeX
@inproceedings{li2026layert,
  author = {Guangzhao Li and Kangrui Cen and Baixuan Zhao and Yi Xin and Siqi Luo and Guangtao Zhai and Lei Zhang and Xiaohong Liu},
  title = {{LayerT2V: A Unified Multi-Layer Video Generation Framework}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=czTbPdmvtT},
}
Figure