Introduction
Diffusion Transformers (DiTs), such as FLUX.1 and Qwen-Image, have set new standards for high-fidelity image generation. However, their iterative denoising process and massive transformer architectures impose significant computational costs, leading to slow inference times. FreqCa (Frequency-aware Caching) introduces a novel framework to address these bottlenecks, achieving 6–7× acceleration with less than 2% quality degradation.
The Challenge of Feature Caching
To accelerate DiTs, researchers often employ feature caching—reusing internal activations across timesteps to skip redundant computations. Existing methods typically rely on two assumptions:
- Cache-Then-Reuse: Assumes features remain static across steps, which preserves global structure but fails to capture evolving details.
- Cache-Then-Forecast: Assumes features change continuously, attempting to predict future values. This works for fine details but can lead to structural instability.
Treating the entire feature map as a monolithic block often results in "quality collapse" or visual artifacts when high acceleration is required.
Methodology: A Frequency-Aware Approach
FreqCa adopts a "divide and conquer" strategy by decomposing feature maps into low-frequency and high-frequency components using transforms such as the Fast Fourier Transform (FFT) or Discrete Cosine Transform (DCT).
Frequency-Aware Caching
The authors identified a "Frequency Paradox": low-frequency components (representing global structure) are stable but prone to sudden jumps, while high-frequency components (representing fine details) are volatile but follow smooth, predictable trajectories.
- Low-Frequency Strategy: These components are directly reused (zeroth-order) to maintain structural consistency.
- High-Frequency Strategy: A second-order Hermite interpolator is used to forecast these values, exploiting their continuous nature to maintain detail.
Cumulative Residual Feature (CRF)
Standard caching requires storing features at every layer, which can consume over 10GB of VRAM for models like FLUX. FreqCa introduces the Cumulative Residual Feature (CRF), which caches only the sum of all residual updates at the end of the model. This reduces the memory footprint of feature caching by 99%, enabling high-end model acceleration on consumer-grade hardware.
Experimental Evaluation
The framework was tested on state-of-the-art models including FLUX.1-dev and Qwen-Image across benchmarks like DrawBench and GEdit. Metrics such as ImageReward, CLIP Score, and LPIPS were used to quantify performance.
Key Results
- Acceleration: FreqCa achieved a 7.14× speedup on Qwen-Image and 6.24× on FLUX.1-dev.
- Quality Preservation: At 5× acceleration, FreqCa maintained an ImageReward score of approximately 1.01, significantly outperforming competing methods like TaylorSeer or TeaCache, which often suffer from artifacts at similar speeds.
- Memory Efficiency: On FLUX.1-dev, FreqCa reduced additional VRAM overhead from several gigabytes (e.g., 7.66 GB for TaylorSeer) to just 0.07 GB.
Conclusion
FreqCa represents a significant advancement in making large-scale Diffusion Transformers practical for real-time applications. By unifying reuse and forecasting paradigms through frequency decomposition and introducing the memory-efficient CRF strategy, it provides a robust path toward high-speed, low-resource generative AI. Future research may extend these principles to video generation, where temporal redundancy offers even greater opportunities for acceleration.
Summary updated