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

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

TL;DR

Foresight is a training-free, plug-and-play framework that accelerates video generation in Diffusion Transformers (DiTs) by dynamically reusing layer activations. By adapting to real-time generation dynamics rather than relying on rigid, static caching schedules, Foresight achieves up to a 1.63× end-to-end inference speedup while maintaining or even improving video quality.

What Problem Does This Paper Address?

While Diffusion Transformers (DiTs) have become the state-of-the-art backbone for high-fidelity text-to-video generation, they are notoriously computationally expensive. The culprit is the spatial-temporal self-attention mechanism, which scales quadratically $O(L^2)$ with token length—a length that balloons as video resolution and frame counts increase. Compounding this over dozens of iterative denoising steps results in high inference latency.

To speed things up, researchers often turn to feature caching, which reuses intermediate activations across adjacent denoising steps. However, existing methods use static caching policies, applying uniform reuse schedules across all layers and steps. As shown in Figure 1, these rigid approaches fail to capture the complex, evolving dynamics of video generation, often introducing glaring visual artifacts and degrading temporal coherence.

Figure 1: We compare the effectiveness of Adaptive Layer Reuse (Foresight) with prior state-of- the-art static techniques. The red circle indicates the frame variations in prior techniques. Videos are generated using OpenSora Zheng et al. [2024] at 720p, Latte Ma et al. [2024] at 512×512, and CogVideoX Yang et al. [2024] at 480×720, all with a fixed length of 2 seconds. We report average inference time on a single A100 GPU using Open-Sora prompts.

Methods

The authors introduce Foresight, a training-free framework that replaces static schedules with an adaptive, per-layer reuse strategy. Foresight operates in two distinct phases:

  1. Warmup Phase: For the first $W$ denoising steps, the model runs full computations without caching to let intermediate features stabilize. During the final steps of this phase, Foresight calculates a baseline Mean Squared Error (MSE) between consecutive steps for each layer, establishing a customized reuse threshold ($\lambda$) that reflects the specific prompt and resolution.
  2. Reuse Phase: The framework then alternates between recomputation and adaptive reuse. Every $R$ steps, a full computation refreshes the cache and updates a dynamic reuse metric ($\delta$). For the intermediate steps, Foresight compares the current feature variation against the threshold ($\delta \le \gamma\lambda$, where $\gamma$ is a user-defined scaling factor). If the variation is below the threshold, the cached block output is reused; otherwise, it is recomputed on the fly.

Unlike prior methods like Pyramid Attention Broadcast (PAB) that cache fine-grained internal components (like individual attention or MLP blocks), Foresight adopts a coarse-grained approach, caching entire DiT blocks.

Overview of Foresight's adaptive layer reuse compared to coarse and fine-grained static techniques.

Datasets

Foresight was comprehensively evaluated using several prominent video generation benchmarks and prompt sets:

  • VBench: A comprehensive benchmark suite evaluating 550 prompts across 11 perceptual and technical dimensions.
  • UCF-101 & EvalCrafter: Utilized specifically to test model performance and temporal consistency on highly dynamic scenes.

Key Insights and Ideas

  • Layer and Step Heterogeneity: Feature variations are not uniform. As shown in Figure 2, deeper layers exhibit significantly higher feature variance between steps than early or middle layers, meaning they require more frequent recomputation to preserve video quality.
  • Sensitivity to Generation Conditions: Even minor tweaks to a prompt, resolution, or noise seed drastically alter activation behavior. A static caching policy cannot account for this, whereas Foresight's warmup phase dynamically tunes thresholds to the exact generation context.
  • 3× Memory Reduction: By caching at the coarse DiT block level (storing two blocks per layer) rather than caching fine-grained internal attention and MLP activations separately, Foresight reduces the caching memory footprint by 3× compared to fine-grained methods like PAB.
Figure 2: Mean squared error (MSE) between consecutive Spatial DiT block outputs in Open- Sora [Zheng et al., 2024] during the generation of a 2-second, 480p video. Lower MSE values indicate greater similarity and thus higher reuse potential. (Left) Heatmap across layers and denois- ing steps reveals distinct, layer-specific reuse patterns. (Middle) Variation of MSE for Layer 28 across different resolutions. (Right) Variation of MSE for Layer 28 across different text prompts. Note that Temporal DiT blocks demonstrate similar reuse trends as Spatial DiT blocks.

Key Results

Foresight was validated on NVIDIA A100 GPUs across three major open-source DiT models: OpenSora, Latte, and CogVideoX.

  • Inference Speedups: Foresight achieved significant end-to-end speedups across the board: up to 1.44× on OpenSora, 1.31× on Latte, and 1.63× on CogVideoX.
  • Quality Preservation: When evaluated on VBench, Foresight consistently outperformed static baselines across standard metrics (PSNR, SSIM, LPIPS, and FVD). At matched video quality, Foresight delivered substantially higher speedups than PAB (e.g., 1.95× vs 1.37× on CogVideoX).

Limitations and Future Work

While Foresight provides a robust Pareto-optimal trade-off between speed and quality, its performance remains bound by its core hyperparameters: the warmup length ($W$), reuse window ($N$), and scaling factor ($\gamma$). Finding the absolute optimal configuration still requires minor empirical balancing depending on the target hardware and quality requirements.

Additionally, while this paper focused on coarse block-level caching to optimize memory, the authors note that the underlying adaptive framework could be extended to finer granularities or adapted to other diffusion modalities like text-to-image models (e.g., FLUX) in future iterations.

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