TL;DR
Back in the 1990s, MPEG video compression revolutionized digital media with a simple insight: if a background wall doesn't move between frames, don't re-transmit it. Today’s AI video generators ignore this wisdom, burning massive GPU compute to regenerate static backgrounds from scratch at every step. LIPAR brings classic inter-frame compression into modern Diffusion Transformers, skipping redundant patches to boost video generation speed by 45% and cut memory by 29%—all without retraining the model or sacrificing visual quality.
What Problem Does This Paper Address?
Diffusion Transformers (DiTs) generate stunning videos, but they are painfully slow. Under the hood, Latent Diffusion Models compress pixel frames into compact "latent" representations made of spatial-temporal tokens, and then iteratively denoise them. Currently, DiTs allocate fixed compute to every token across every frame, regardless of whether anything in that patch actually changed. This computational bottleneck makes real-time, interactive applications—like live video editing or motion-controlled generation on a single GPU—nearly impossible.
Prior attempts to speed this up tried "token merging," which groups similar tokens together inside attention blocks. However, finding similar tokens requires expensive matching algorithms at every block, only works on a subset of layers, and causes blurry visual artifacts because the model wasn't trained to handle merged sequences.
Methods
LIPAR (Latent Inter-frame Pruning with Attention Recovery) plugs directly into pre-trained DiTs in a training-free manner using a three-stage pipeline:
- Latent Inter-Frame (LIF) Pruning: Instead of expensive matching algorithms, LIPAR takes a page out of classic video codecs. Using a fast, cheap $L_1$ difference check (taking less than 1 millisecond per frame) combined with neighbor-aware motion detection, it compares consecutive frames in the source latent space. If a patch hasn't changed beyond a threshold, it is pruned before entering the transformer.
- Attention Recovery: Simply deleting tokens breaks self-attention—the remaining tokens lose context they expect to attend to, creating a "train-inference mismatch" full of visual glitches. LIPAR approximates what the full, unpruned attention output would have been using two novel tricks (compatible with FlashAttention):
- M-degree Approximation: Rather than reconstructing all pruned keys and values, it leverages rotary position embeddings (RoPE) to copy only the $m$ temporally closest tokens, which dominate the attention weights anyway.
- Noise-Aware Duplication: Duplicating noisy diffusion tokens breaks a mathematical assumption of diffusion models (detailed below). Instead, LIPAR copies clean, fully denoised tokens stored in the model's KV-cache.
- Latent Patch Restoration: Once the surviving dynamic tokens are denoised across all layers, the pruned static patches are restored by copying their denoised counterparts from the previous frame right before decoding back into pixels.
Datasets
Because LIPAR is completely training-free, no training datasets were used. For empirical analysis and evaluation across video-to-video editing, long-horizon streaming, and motion control, the authors used:
- DAVIS 2017 (train-val): 102 video-prompt pairs featuring diverse moving objects (animals, cars, humans).
- OpenHumanVid: 120 video-prompt pairs focused on human portraits.
- DH-FaceVid-1K: 12 one-minute video-prompt pairs used to test long-horizon streaming stability.
No new benchmarks were introduced.
Key Insights and Ideas
- Latent space mirrors pixel dynamics: Encoders in modern video models heavily compress spatial and temporal data, so there is no guarantee that pixel stillness equals latent stillness. Yet the authors discovered strong Pearson correlations (0.69 to 0.77) between pixel-space changes and latent-space changes—proving MPEG-style frame differencing works in latent space.
- The I.I.D. Noise Trap: Why can't you just duplicate a noisy token to fill in for a pruned one during attention? Diffusion models assume each token has independent Gaussian noise ($\epsilon_i \neq \epsilon_j$). When attention dots two independent noise vectors together, the result follows a zero-mean Gaussian distribution. If you duplicate a noisy token ($\epsilon_i = \epsilon_j$), dotting its noise with itself turns that term into a Chi-squared ($\chi^2$) distribution! This injects a massive positive bias into the attention scores and causes quadratic variance explosion, manifesting as crunchy, noisy visual artifacts. Copying noise-free tokens from the KV-cache sidesteps this math trap entirely.
- MPEG I-frames prevent streaming drift: In live, minute-long video streams, repeatedly copying latents eventually accumulates errors. By disabling pruning on just the final denoising step every six latent frames—acting like an MPEG "I-frame" periodic refresh—error drift disappears at the cost of just 1.3% extra compute.
Key Results
Tested on an NVIDIA A6000 GPU, LIPAR delivers substantial efficiency gains while preserving—and occasionally stabilizing—visual quality:
- Speed & Memory: On video editing (built atop Self-Forcing), throughput jumps from 8.4 FPS to 12.2 FPS ($1.45\times$ speedup) on DAVIS, and reaches 12.7 FPS ($1.57\times$ speedup) on OpenHumanVid. Peak GPU memory drops by 29% (from 26.2 GB down to 18.6 GB), and first-frame latency drops from ~1000 ms to 647 ms.
- Human Preference: In blind pairwise comparisons on DAVIS, human evaluators found no difference between LIPAR and the unpruned baseline 68.3% of the time, and actually preferred LIPAR 18.4% of the time (an 86.7% win-tie rate), largely because skipping background re-computation prevented subtle background flickering. It beat other real-time baselines (StreamDiffusion, StreamV2V) over 84% of the time.
- Generalizability: Applied to a completely different task and architecture—motion-controlled generation using a bidirectional Mixture-of-Experts model (WAN 2.2 / Time-to-Move)—LIPAR still achieved a $1.5\times$ speedup while improving warp error from 63.6 to 40.4.
Limitations and Future Work
Currently, LIPAR requires a conditioning signal—like a source video in video editing or a warped trajectory in motion control—to cheaply compute the pruning mask before generation begins. It cannot yet be dropped straight into pure Text-to-Video (T2V) generation from scratch. However, the authors note that because diffusion models refine videos gradually from coarse structures to fine details across timesteps, using early denoising steps to dynamically self-detect static regions makes extending LIPAR to pure T2V a very promising next step.
Summary updated