Generative AI Lab

Eight generative-AI labs: architectures, text, image, video, 3D, synthetic data, multimodal, and training and evaluation, with simulators that run in your browser, a learning path and a specialised assistant.

13interactive experiments

Video Generation

Temporal consistency, spatio-temporal attention, video diffusion models and their limits.

  • 1Lessons
  • 1Experiments
  • 2Models
  • 0Projects

Every simulator in this lab is educational: some train small real models on 2-D data in your browser, others use simplified mathematics or locally generated data. What you see is not the output of a large real generative model and does not represent its performance; each experiment states its limits.

Scientific introduction

Video is a sequence of frames that must stay consistent in content and motion. Video diffusion models (Ho et al. 2022) extend the image-diffusion architecture with a temporal dimension: spatial attention layers inside each frame and temporal attention layers across frames, trained jointly on images and video. The main challenge is temporal consistency and heavy compute, so clips are usually short and then extended.

This lab does not run real video generation in the browser (not feasible at reasonable cost); it explains the architecture and links it to the diffusion and NeRF simulators, which show related ideas (denoising, consistency across views).

Learning objectives

  • Explain extending diffusion to time
  • Distinguish spatial from temporal attention
  • Understand temporal consistency and the causes of flicker
  • Know the conditions: text, first frame or motion
  • Be aware of risks: deepfakes and consent

Core concepts

Temporal consistency
Objects, lighting and identity staying stable across frames.
Temporal attention
Attention between the same spatial position across frames.
First-frame conditioning
Generating motion starting from a given image.
Joint image-video training
Using images to offset the scarcity of captioned video.
FVD
A Fréchet distance on video-encoder features; a common but limited metric.

Lessons, architectures and algorithms

Algorithm

Video Diffusion

Extend the image-diffusion network to time: spatial attention inside each frame, temporal attention across frames and joint training on images and video.…

Read the lesson

Algorithms and models in this lab

AlgorithmLabCovered hereNote
Video diffusionVideo GenerationExplained onlyExplained only plus a simplified temporal-attention analogue.

The mathematics

Diffusion over video

x\in\mathbb{R}^{T\times H\times W\times C},\quad \epsilon_\theta(x_t,t,c)

The network predicts noise for the whole tensor with spatial and temporal attention.

Cost of joint attention

O\big((T\cdot H\cdot W)^2\big)\ \text{vs}\ O\big(T\,(HW)^2+HW\,T^2\big)

Factorising space and time cuts the cost considerably.

Diagrams

Worked examples

  • Read how the diagram separates spatial from temporal attention.
  • Use the NeRF simulator to see consistency across views as a simplified analogue.

Interactive experiments

Suitable datasets

The whole data library

Related models

The full model atlas

Assessment questions

3 questions on this lab, graded on the server. Start the quiz

Papers and references

  1. J. Ho, T. Salimans, A. Gritsenko, W. Chan, M. Norouzi, D. J. Fleet (2022). Video Diffusion Models. arXiv:2204.03458 (NeurIPS 2022). doi:10.48550/arXiv.2204.03458
  2. J. Ho, A. Jain, P. Abbeel (2020). Denoising Diffusion Probabilistic Models. arXiv:2006.11239 (NeurIPS 2020). doi:10.48550/arXiv.2006.11239
  3. R. Rombach, A. Blattmann, D. Lorenz, P. Esser, B. Ommer (2022). High-Resolution Image Synthesis with Latent Diffusion Models. 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 10674–10685. doi:10.1109/CVPR52688.2022.01042

Content-specific assistant

Ask the assistant about any concept or equation in this lab; it answers from the lab’s content and points you to the matching lesson and experiment.

Open the assistant

Quizzes · My progress and saved runs

Related DLArabic sections