TL;DR
The Learnable Linear Predictor ($L^2P$) is a simple, data-driven framework that accelerates Diffusion Transformer (DiT) inference by replacing rigid, hand-crafted feature forecasting formulas with learnable per-timestep weights. Requiring only 50 training samples and converging in about 20 seconds on a single GPU, $L^2P$ achieves up to a 7.14× reduction in FLOPs and a 6.03× latency speedup while maintaining exceptional visual fidelity.
What Problem Does This Paper Address?
Diffusion Transformers (DiTs) generate state-of-the-art images and videos but suffer from high computational costs due to the need for dozens of sequential denoising steps. To speed up inference, researchers use feature caching, which skips transformer computations at certain timesteps by reusing hidden representations from previous steps.
While early "cache-and-reuse" methods work well for small intervals, generation quality plummets under high acceleration ratios because features drift over time. Recent "cache-then-forecast" methods (like TaylorSeer and FoCa) try to solve this by using classical numerical formulas (e.g., Taylor expansion) to predict future features. However, these hand-crafted formulas rely on fixed, rigid coefficients that fail to adapt to different model architectures or aggressive step-skipping schedules, leading to noticeable image degradation.
Methods
The authors introduce $L^2P$ (Learnable Linear Predictor). By analyzing existing forecasting methods, they proved that these complex mathematical formulas are fundamentally just fixed linear combinations of historical features.
Instead of designing increasingly complex analytical formulas, $L^2P$ replaces fixed coefficients with adaptive, learnable weights ($W \in \mathbb{R}^{49 \times 49}$ for a 50-step trajectory) to predict the current timestep's final-layer feature from the history of past features.
To keep the method incredibly lightweight and practical:
- Final-Layer Fitting: It only caches and predicts the features of the final layer, drastically reducing memory overhead compared to layer-wise caching.
- Smart Initialization: Weights are initialized such that the predictor defaults to naive feature caching (reusing the immediate past step). This optimization allows the MSE loss function to converge in just 20 seconds on a single NVIDIA A100 GPU.
Datasets
The method was trained and evaluated across several state-of-the-art generative models:
- FLUX.1-dev (Text-to-Image)
- Qwen Image & Qwen-Image-Lightning-8steps (Text-to-Image)
- HunyuanVideo (Text-to-Video)
For the training data, the authors used a tiny dataset of only 50 prompts generated by a Large Language Model (LLM). They also utilized the DrawBench benchmark to test the semantic robustness of the predictor.
Key Insights and Ideas
- The Hidden Linearity of DiTs: The authors discovered that for roughly 90% of the denoising timesteps, the current feature can be linearly reconstructed from past features with a projection fidelity above 0.95 (less than 5% error). This proves that the linear framework itself isn't flawed; the bottleneck was simply the rigidity of hand-crafted coefficients.
- Content-Agnostic Dynamics: An ablation study revealed that $L^2P$ doesn't actually care about the semantic meaning of the training text. Training the predictor on conventional prompts, "counterfactual" prompts (violating laws of physics), or even pure gibberish (e.g., "dfg*hj 123") yielded nearly identical, high-quality results. The model purely learns the mathematical dynamics of feature evolution over time.
- Saturation with Minimal Data: Performance peaks rapidly. Increasing the training set from 5 to 50 images shows a clear quality jump, but expanding it further to 100 images yields no additional gains, confirming extreme data efficiency.
Key Results
$L^2P$ consistently outperforms existing training-free acceleration baselines across image and video generation tasks:
- FLUX.1-dev: At a step interval of $N=5$, $L^2P$ achieves a 4.55× FLOPs reduction and 4.15× latency speedup with a high PSNR of 31.459, vastly outperforming TaylorSeer and FoCa, which suffer from quality degradation. Under extreme acceleration ($N=10$), it still maintains a clean image with a 7.14× FLOPs reduction.
- Qwen Image: At $N=7$, it achieves a 5.59× FLOPs reduction and a 4.52× speedup (PSNR 30.62). When plugged into the already optimized 8-step Qwen-Image-Lightning, it provides an additional 1.63× latency speedup with near-lossless quality.
- HunyuanVideo: Video generation is notoriously difficult for caching due to complex temporal dynamics. $L^2P$ achieved a 4.72× wall-clock speedup and delivered a PSNR of 21.10 dB—a massive +2.85 dB improvement over the previous best method (TeaCache), successfully mitigating the error accumulation that ruins long-trajectory video generation.
Limitations and Future Work
While $L^2P$ is highly efficient, the authors note a couple of areas for improvement:
- Per-Model Calibration: Although training takes only 20 seconds, the linear predictor matrix must be calibrated separately for each distinct model architecture and step schedule.
- Strict Linearity: The predictor is strictly linear. While the authors experimented with non-linear additions (like MLPs, LSTMs, and attention mechanisms) and found they didn't help or introduced too much overhead, future work might find lightweight ways to model the remaining <5% non-linear feature residuals at the very beginning and end of the diffusion trajectory.
Summary updated