Introduction
Generating high-quality, long-form video remains a significant challenge in generative AI. Most state-of-the-art models rely on autoregressive "sliding window" approaches, training on short clips and predicting subsequent segments during inference. This methodology introduces two critical bottlenecks: the training-inference gap, where models fail to maintain long-term global coherence (e.g., character consistency or stable backgrounds), and sequential inefficiency, which prevents parallel generation and leads to prohibitive inference times for long videos.
NUWA-XL addresses these issues by introducing a "coarse-to-fine" hierarchical architecture that enables the parallel generation of extremely long videos—up to 3376 frames—while achieving a 94% reduction in inference time.
The NUWA-XL Framework
The core innovation of NUWA-XL is the Diffusion over Diffusion hierarchy. Instead of generating frames sequentially, the model decomposes the video generation process into multiple levels of granularity.
Hierarchical Diffusion over Diffusion
The architecture employs a nested structure of diffusion models:
- Global Diffusion: A global model generates $L$ keyframes that establish the "coarse" storyline and narrative arc across the entire duration.
- Local Diffusion: Local models are applied recursively to fill in the gaps between these keyframes. Each local step takes two adjacent frames as visual conditions and generates the $L-2$ frames between them.
As shown in Figure 1, this process can be nested $m$ times, allowing the total video length to scale exponentially ($O(L^m)$). Because local segments at the same level of granularity depend only on the keyframes from the level above, they can be generated simultaneously across multiple GPUs, shifting inference complexity from linear to logarithmic.
Technical Components: T-KLVAE and MTD
To implement this hierarchy efficiently, NUWA-XL utilizes two primary technical components:
- Temporal KLVAE (T-KLVAE): To manage computational load, the model operates in a compressed latent space. T-KLVAE extends a pre-trained image VAE with temporal convolution and attention layers. To preserve high-quality spatial knowledge, the authors use "identity initialization," setting new temporal weights to zero at the start of training.
- Mask Temporal Diffusion (MTD): The MTD serves as the primary generative block, utilizing a 3D-UNet architecture designed to handle masked inputs. During global generation, all frames are masked; during local generation, the first and last frames are provided as conditions to guide the infilling process.
Dataset: FlintstonesHD
The lack of high-quality, long-form video datasets with dense descriptions led the authors to create FlintstonesHD. This benchmark includes 166 episodes of The Flintstones, annotated with frame-level descriptions generated by the GIT2 model and manually filtered. These dense annotations provide the necessary "storyline" prompts to guide long-form generation.
Results and Performance
NUWA-XL demonstrates significant improvements in both speed and quality:
- Efficiency: For a 1024-frame video, NUWA-XL reduces inference time from 7.55 minutes (using autoregressive baselines like TATS) to just 26 seconds—a 94.26% speedup.
- Quality and Coherence: On the FlintstonesHD dataset, NUWA-XL outperforms models like Phenaki and FDM in frame quality (Avg-FID) and temporal consistency (Block-FVD). Qualitative analysis confirms that NUWA-XL maintains character and background consistency across thousands of frames, avoiding the "shot change" artifacts common in sliding-window models.
Conclusion
NUWA-XL represents a paradigm shift from sequential to hierarchical video generation. By leveraging "Diffusion over Diffusion," the model eliminates the training-inference gap and enables massive parallelism. While currently demonstrated on the FlintstonesHD dataset, the architecture provides a scalable foundation for generating open-domain, extremely long videos in the future.
Summary updated