Packing Input Frame Context in Next-Frame Prediction Models for Video Generation
đ€ Upvotes: 24 | cs.CV
Authors:
Lvmin Zhang, Maneesh Agrawala
Title:
Packing Input Frame Context in Next-Frame Prediction Models for Video Generation
Arxiv:
http://arxiv.org/abs/2504.12626v1
Abstract:
We present a neural network structure, FramePack, to train next-frame (or next-frame-section) prediction models for video generation. The FramePack compresses input frames to make the transformer context length a fixed number regardless of the video length. As a result, we are able to process a large number of frames using video diffusion with computation bottleneck similar to image diffusion. This also makes the training video batch sizes significantly higher (batch sizes become comparable to image diffusion training). We also propose an anti-drifting sampling method that generates frames in inverted temporal order with early-established endpoints to avoid exposure bias (error accumulation over iterations). Finally, we show that existing video diffusion models can be finetuned with FramePack, and their visual quality may be improved because the next-frame prediction supports more balanced diffusion schedulers with less extreme flow shift timesteps.
You May Also Like

Real Ghost Stories Online
Real Ghost Stories Online | Paranormal, Supernatural & Horror Radio

The Grave Talks | Haunted, Paranormal & Supernatural
Ghost Stores, Haunted, Paranormal & Supernatural Stories

AccÚs au Marché Mondial des Dispositifs Médicaux
Pure Global

La Science, CQFD
France Culture

The Science Behind Dreams
Paul Stanley

Radiowissen
Bayerischer Rundfunk

La Terre au carré
France Inter

Dr. Chapaâs OBGYN Clinical Pearls
Dr. Chapaâs Clinical Pearls

Cryptids and Cold Ones
John, Evan, Kyle

The 365 Days of Astronomy
365DaysOfAstronomy.org
Community discussion