techlist.io
OpenAI2024-02-143 min read

Curated summary

Video generation models as world simulators

Read original(opens in new tab)

Sora, OpenAI's video generation model, shows that scaling diffusion transformers on video is a promising route to general-purpose world simulators. The model is trained jointly on videos and images of varying durations, resolutions, and aspect ratios, using a unified representation of spacetime patches in a compressed latent space. It can generate up to a minute of high-fidelity video and displays emergent simulation abilities such as 3D consistency and object permanence, though it still has clear physical limitations. The report describes the approach and capabilities but omits model and implementation details.

Turning Visual Data into Patches

  • Inspired by LLMs, which unify diverse text through tokens, Sora uses visual patches as its equivalent unit for images and video.
  • A video compression network first maps raw video to a lower-dimensional latent space, compressed both temporally and spatially, along with a matching decoder that maps latents back to pixels.
  • Spacetime patches extracted from these latents serve as transformer tokens. Images are handled as single-frame videos.

Diffusion Transformer Architecture

  • Sora is a diffusion transformer trained to predict the original clean patches from noisy input patches and conditioning information such as text.
  • Sample quality improves markedly as training compute increases, with fixed seeds and inputs used for comparison.

Native Size Training

  • Instead of resizing, cropping, or trimming videos to a standard size, Sora trains on data at its native resolution and aspect ratio.
  • This allows sampling at 1920x1080 (widescreen), 1080x1920 (vertical), and anything in between, and lets content be prototyped at low resolution before full-resolution generation with the same model.
  • Training on native aspect ratios improves framing. A model trained on square crops often cut subjects out of view, while Sora's framing stays intact.

Captioning and Prompt Understanding

  • Following DALL·E 3, a highly descriptive captioner generates captions for the training videos, which improves text fidelity and overall quality.
  • GPT expands short user prompts into detailed captions before they reach the video model.

Prompting with Images and Video

  • Beyond text-to-video, Sora accepts images and videos as input, enabling animation of static images (including DALL·E images), forward and backward video extension, and seamless looping.
  • Video-to-video editing uses SDEdit to restyle environments zero-shot.
  • Interpolating between two input videos creates transitions between clips with different subjects and compositions.
  • Image generation is handled by arranging Gaussian noise patches in a single-frame grid, supporting resolutions up to 2048x2048.

Emergent Simulation Capabilities

These behaviors arise from scale alone, with no explicit 3D or object-level inductive biases:

  • 3D consistency: People and scene elements move coherently through space during dynamic camera motion.
  • Long-range coherence and object permanence: People and objects persist through occlusion and leaving the frame, and characters keep their appearance across multiple shots in one sample.
  • Interacting with the world: Actions leave lasting effects, such as paint strokes on a canvas or bite marks on a burger.
  • Simulating digital worlds: Sora can control a basic Minecraft policy while rendering the game world in high fidelity, elicited zero-shot through captions.

Limitations

  • Physics is often inaccurate. For example, glass shattering is not modeled correctly.
  • Some interactions, like eating, don't always change object state correctly.
  • Long samples can develop incoherence, and objects can appear spontaneously.

Continue with another curated summary.