Foresight: Adaptive Layer Reuse for Accelerated and High-Quality Text-to-Video Generation

Muhammad Adnan, Nithesh Kurella, Akhil Arunkumar, Prashant J. Nair

Introduction

Generating high-quality video using Diffusion Transformers (DiTs) is a computational marathon. The quadratic growth of self-attention complexity with token count—driven by higher resolutions and longer durations—makes real-time inference challenging. While "static caching" techniques attempt to accelerate this by reusing layer outputs across timesteps, they often fail to adapt to varying scene dynamics, leading to visual artifacts like "ghosting" and temporal inconsistency.

Foresight addresses these challenges with a training-free, "plug-and-play" framework that dynamically decides which layers to reuse based on real-time feature dynamics. By moving beyond "blind" static policies, Foresight achieves up to a 1.63× speedup while maintaining, and often improving, video quality.

The Foresight Framework

Foresight operates in two distinct phases to ensure both speed and fidelity:

  1. Warmup Phase: For the initial 15% of denoising steps, the model runs without caching. During this period, Foresight calculates a per-layer "reuse threshold" ($\lambda$) based on the Mean Squared Error (MSE) of features between consecutive steps. This allows the model to "learn" the specific rhythm of the current prompt and resolution.
  2. Reuse Phase: In subsequent steps, a real-time reuse metric ($\delta$) is calculated. If the feature difference falls below the learned threshold (adjusted by a user-defined factor $\gamma$), the model skips the computation for that entire DiT block and reuses the cached output.
MSE dynamics across layers, resolutions, and prompts, illustrating the need for adaptive reuse.

This adaptive approach is rooted in the observation that feature dynamics are highly heterogeneous. As shown in the figure above, MSE varies significantly across different layers, resolutions, and text prompts. For instance, deeper layers often require more frequent updates, and dynamic prompts exhibit higher MSE than static ones, necessitating more frequent recomputation.

Key Innovations

  • Per-Layer Granularity: Recognizes that different DiT blocks contribute differently to the final output and should be updated at different frequencies.
  • Coarse-Grained Caching: By caching entire DiT blocks rather than individual attention heads, Foresight reduces memory overhead by 3× compared to previous state-of-the-art methods like PAB.
  • Training-Free Compatibility: The framework requires no retraining, making it immediately applicable to pre-trained models such as OpenSora, CogVideoX, and HunyuanVideo.

Experimental Results

The researchers evaluated Foresight using benchmarks like VBench, UCF-101, and EvalCrafter across multiple state-of-the-art DiT models.

Qualitative and quantitative comparison of Foresight against baseline and static caching methods.

Foresight consistently outperforms static baselines in both speed and visual quality. On CogVideoX, it achieved a 1.63× end-to-end speedup. On OpenSora, it reached a PSNR of 29.67, significantly higher than PAB's 25.67, while maintaining lower latency. Qualitatively, Foresight avoids the "ghosting" artifacts common in static caching (as seen in the "cat" example), preserving temporal consistency and fine details.

Discussion and Limitations

Foresight's strength lies in its ability to allocate compute where it is most needed. However, the framework does have limitations. The initial warmup phase means that for very short denoising schedules (e.g., fewer than 5 steps), the relative overhead of "learning" thresholds reduces the overall speedup. Additionally, while block-level caching is efficient, future work could explore even finer granularities for further optimization.

Conclusion

Foresight represents a significant step toward efficient, high-quality video generation. By replacing rigid caching policies with an adaptive, feature-aware mechanism, it provides a robust solution for accelerating DiTs without sacrificing the visual fidelity required for professional applications.

Summary updated

BibTeX
@inproceedings{adnan2025foresight,
  author = {Muhammad Adnan and Nithesh Kurella and Akhil Arunkumar and Prashant J. Nair},
  title = {{Foresight: Adaptive Layer Reuse for Accelerated and High-Quality Text-to-Video Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=q39uZC6RSo},
}
Figure