Enhancing Multi-Text Long Video Generation Consistency without Tuning: Time-Frequency Analysis, Prompt Alignment, and Theory

Xingyao Li, Fengzhuo Zhang, Jiachun Pan, Yunlong Hou, Vincent Y. F. Tan, Zhuoran YangarXiv 2024 · DOI

Abstract

Generating long, consistent videos from text is a significant challenge in computer vision, often plagued by "hallucinations" where objects vanish or transitions between scenes are jarring. This paper presents a training-free solution through two novel algorithms: TIARA (Time-frequency based temporal Attention Reweighting Algorithm) and PROMPTBLEND. TIARA improves temporal coherence by reweighting attention based on frequency-domain motion analysis, while PROMPTBLEND ensures smooth multi-prompt transitions via semantic alignment. These "plug-and-play" modules achieve state-of-the-art performance across multiple base models without requiring additional training.

Introduction

While modern video diffusion models like Sora and CogVideoX excel at short clips, long video generation remains problematic. Two primary issues persist:

  1. Temporal Inconsistency: Subjects often change shape or disappear entirely within a single scene (e.g., an astronaut feeding ducks might vanish mid-sequence).
  2. Transition Failures: Moving between prompts (e.g., from day to night) often results in "ghost" objects or abrupt, non-semantic changes rather than smooth transitions.

The authors identify Temporal Self-Attention as a key technical bottleneck. Inconsistent videos often exhibit an over-concentration on the attention matrix diagonal, meaning frames fail to effectively reference their neighbors. However, simple heuristic smoothing often leads to motion blur.

Visual comparison of baseline models versus the proposed TIARA and PROMPTBLEND enhancements, highlighting the reduction in hallucinations and smoother transitions.

Methodology

The proposed framework addresses consistency from two perspectives: video hidden states (TIARA) and prompt embeddings (PROMPTBLEND).

TIARA: Frequency-Aware Attention Reweighting

TIARA dynamically edits the temporal attention score matrix. Rather than applying uniform smoothing, it utilizes the Discrete Short-Time Fourier Transform (DSTFT) to analyze motion intensity in the frequency domain.

  • In slow-motion regions, TIARA reduces diagonal weights to force frames to incorporate more information from neighbors, ensuring consistency.
  • In fast-motion regions, it maintains higher diagonal weights to preserve sharp details and prevent over-smoothing.

PROMPTBLEND: Semantic Alignment for Transitions

Naive interpolation between text embeddings often leads to nonsensical intermediate states. PROMPTBLEND mitigates this through a structured three-step process:

  1. Reorganization: An LLM reformats prompts into a standard [Subject] [Action] [Place] [Time] template.
  2. Alignment: Components are aligned in token space (e.g., matching the "mountain" in prompt A with the "mountain" in prompt B).
  3. Gradual Blending: Aligned embeddings are interpolated and applied to specific U-Net decoder layers that govern semantic details.
The complete pipeline of TIARA and PROMPTBLEND, showing the frequency-based attention reweighting and the semantic prompt alignment process.

Experimental Results

The researchers evaluated these methods on state-of-the-art base models, including FIFO-Diffusion, FreeNoise, and CogVideoX-2B, using the VBench and EvalCrafter benchmarks.

Quantitative and Qualitative Performance

  • Subject Consistency (SC): On FIFO-VC, SC improved from 92.38 to 94.13. In multi-prompt scenarios, it rose from 85.25 to 88.87.
  • User Preference: A large-scale user study (704 samples) showed a strong preference for the proposed methods, with an 87.89% preference rate for multi-prompt tasks.
  • Theoretical Foundation: The paper provides a formal proof (Theorem 4.1) demonstrating that the frequency-based reweighting scheme effectively bounds and reduces inconsistency errors in the generated video signal.

Conclusion

TIARA and PROMPTBLEND offer a powerful, training-free approach to long video generation. By leveraging frequency analysis and semantic alignment, they significantly reduce common artifacts like vanishing objects and jarring transitions. While performance remains dependent on the underlying base model's physical understanding, these modules represent a major step toward reliable, high-quality long-form video synthesis.

Summary updated

BibTeX
@misc{li2024enhancing,
  author = {Xingyao Li and Fengzhuo Zhang and Jiachun Pan and Yunlong Hou and Vincent Y. F. Tan and Zhuoran Yang},
  title = {{Enhancing Multi-Text Long Video Generation Consistency without Tuning: Time-Frequency Analysis, Prompt Alignment, and Theory}},
  year = {2024},
  eprint = {2412.17254},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.17254},
}
Figure