Introduction
Generating high-quality, short video clips has become a hallmark of modern AI. However, extending these generations to a full minute or longer often results in "hallucinatory drift," where visual consistency—such as character clothing, background details, and physical laws—deteriorates over time. Researchers from ShanghaiTech University and Tencent Hunyuan address this with a new framework introduced in their paper, "Pack and Force Your Memory." By implementing two architectural innovations, MemoryPack and Direct Forcing, they enable autoregressive video models to maintain long-term coherence.
The Challenge of Long-Form Video
Current video generation models, primarily based on Diffusion Transformers (DiTs), struggle with two main issues during extended generation:
- Computational Complexity: Standard attention mechanisms scale quadratically. As video length increases, the token count grows, making it computationally prohibitive for the model to reference early frames.
- Error Accumulation: Models are typically trained using "Teacher Forcing," where they predict the next frame based on ground-truth data. During inference, however, they must rely on their own previous (and potentially flawed) predictions. These minor errors compound, leading to a total loss of coherence after several seconds.
Proposed Methodology
MemoryPack: Hierarchical Context Management
To manage the trade-off between local detail and global consistency, the authors propose MemoryPack. This module splits context handling into two specialized components:
- FramePack: Focuses on short-term context by analyzing a fixed window of recent frames to ensure smooth local motion.
- SemanticPack: Acts as a long-term memory. It utilizes a Memorize operation to compress historical frames and a Squeeze operation that uses the original text prompt and a reference image as global guidance. This cross-attention mechanism ensures the model remains grounded in the initial scene intent while maintaining linear $O(n)$ complexity.
Direct Forcing: Aligning Training and Inference
To mitigate error accumulation, the researchers introduce Direct Forcing. Utilizing Rectified Flow, this training strategy moves beyond traditional Teacher Forcing. During training, the model performs a single-step approximation of its own inference process. By "guessing" its own output and using that approximation as conditional input for the next step, the model learns to self-correct and recover from minor inaccuracies before they escalate into significant drifts.
Evaluation and Results
The model was trained on the Mira & Sekai datasets, comprising roughly 150 hours of high-quality footage. Performance was measured using VBench for metrics like Motion Smoothness and Subject Consistency, alongside human A/B testing for ELO scores.
Key findings include:
- Superior Consistency: The framework achieved 93.25% Background Consistency and 91.16% Subject Consistency, outperforming existing baselines.
- Human Preference: The method earned a top-ranking ELO score of 1568 in human evaluations.
- Robustness to Occlusion: Qualitative analysis showed the model could successfully reconstruct objects with consistent identity even after they were occluded for several seconds.
Conclusion and Future Directions
While "Pack and Force Your Memory" significantly advances minute-long video generation, challenges remain. The model currently struggles with extremely high-dynamic scenes, and the training pipeline involves multiple stages that the authors hope to streamline. Future work will focus on simplifying the training process and scaling consistency to even longer durations.
Summary updated