Abstract
Video generation has achieved remarkable progress with the introduction of diffusion models, which have significantly improved the quality of generated videos. However, recent research has primarily focused on scaling up model training, while offering limited insights into the direct impact of representations on the video generation process. In this paper, we initially investigate the characteristics of features in intermediate layers, finding substantial variations in attention maps across different layers. These variations lead to unstable semantic representations and contribute to cumulative differences between features, which ultimately reduce the similarity between adjacent frames and negatively affect temporal coherence. To address this, we propose RepVideo, an enhanced representation framework for text-to-video diffusion models. By accumulating features from neighboring layers to form enriched representations, this approach captures more stable semantic information. These enhanced representations are then used as inputs to the attention mechanism, thereby improving semantic expressiveness while ensuring feature consistency across adjacent frames. Extensive experiments demonstrate that our RepVideo not only significantly enhances the ability to generate accurate spatial appearances, such as capturing complex spatial relationships between multiple objects, but also improves temporal consistency in video generation.
Introduction
While video generation has made significant strides with Diffusion Transformers (DiTs) like Sora and CogVideoX, much of this progress has relied on "brute force" scaling—increasing data, parameters, and compute. Despite these advancements, two persistent issues remain: fragmented spatial semantics and temporal jitter. Fragmented semantics occur when different transformer layers fail to coordinate, leading to incoherent objects. Temporal jitter, or "morphing" artifacts, arises because features of adjacent frames diverge as the network deepens, a phenomenon known as "feature differentiation."
Analyzing the "Deep Layer Drift"
The authors conducted an in-depth analysis of how attention maps evolve across transformer layers. They discovered that as the model goes deeper, it tends to focus increasingly on tokens within the same frame, losing sight of the broader temporal context. This "Deep Layer Drift" causes the similarity between adjacent frames to drop, breaking the temporal "glue" necessary for smooth video.
The RepVideo Framework
To anchor these unstable representations, the authors proposed RepVideo, a lightweight framework consisting of two primary components:
- Feature Cache Module: Instead of isolated layer processing, this module stores output token sequences from multiple adjacent layers and performs a mean aggregation. This "average" acts as a stable semantic anchor, capturing a more comprehensive view of the scene than any single layer.
- Gating Mechanism: A learnable gating factor ($g_l$) integrates these cached features back into the model. This allows the system to dynamically balance specific layer details with the stabilized, aggregated representation.
This approach improves both temporal consistency (ensuring a "parrot" in Frame 1 remains the same "parrot" in Frame 2) and spatial coordination (better understanding of complex relationships like "multiple objects").
Experimental Results
RepVideo was implemented on the CogVideoX-2B baseline and evaluated using the VBench suite and a curated dataset of 1 million high-quality video clips.
Quantitative Performance
RepVideo achieved a VBench Total Score of 81.94%, notably outperforming the baseline in challenging categories:
- Multiple Objects: +8.55% improvement.
- Spatial Relationship: +4.84% improvement.
Furthermore, quantitative tests confirmed that RepVideo maintains significantly higher cosine similarity between consecutive frames in deep layers compared to standard DiTs. Human preference tests also favored RepVideo ~75% of the time regarding temporal smoothness and text alignment.
Qualitative Quality
Visual results demonstrate sharper contours and more vivid, consistent motion. Whether generating complex 3D animations or serene landscapes, RepVideo avoids the blurred or jittery artifacts common in baseline models.
Conclusion and Future Work
RepVideo offers a novel way to improve video generation by rethinking internal representations rather than just scaling parameters. While it significantly enhances consistency and detail, limitations remain. The framework currently depends on the underlying biases of its base models (e.g., CogVideoX) and introduces some memory overhead for managing the feature cache. Future work will explore real-time aggregation strategies and the framework's universality across a wider variety of text-to-video architectures.
Summary updated