TL;DR
Kaleido is an algorithm-hardware co-design that drastically accelerates Video Diffusion Transformers (vDiTs) by exploiting channel-wise spatio-temporal correlations in the latent space. By combining a lightweight channel-wise computation reuse algorithm with a reconfigurable systolic-array accelerator and an online data dispatcher, Kaleido achieves up to 5.9× speedup and 16.0× energy savings over state-of-the-art baselines while maintaining pristine video generation quality.
What Problem Does This Paper Address?
While Video Diffusion Transformers (vDiTs) excel at generating high-fidelity videos, their practical deployment is severely bottlenecked by extreme computational costs. Generating a short 5-second 720p video clip can take over 30 minutes on a high-end server GPU.
This inefficiency stems from two areas: the iterative nature of the diffusion process (requiring dozens of sequential timesteps) and the quadratic complexity of self-attention over long spatio-temporal token sequences. While recent algorithmic tricks like distillation and caching have successfully minimized the number of timesteps, self-attention has now emerged as the primary computational bottleneck, often consuming around 68% of total execution time.
Prior attempts to accelerate attention in vDiTs typically borrow token-pruning or sparse attention techniques from Large Language Models (LLMs). However, text tokens are discrete and hierarchical, whereas video tokens are dense and continuous. Naively dropping video tokens or attention scores breaks spatial coherence and temporal consistency, leading to severe visual artifacts like motion discontinuities and flickering.
Methods
The authors introduce Kaleido, a full-stack co-design consisting of three core pillars:
- Channel-Wise Reuse Algorithm: Instead of dropping tokens entirely, Kaleido exploits fine-grained similarities at the channel level. Token channels in vDiTs are structured by Rotary Position Embeddings (RoPE) to capture distinct temporal ($t$), horizontal ($x$), and vertical ($y$) dimensions. Kaleido calculates the absolute difference between adjacent tokens along predefined directions. If the difference falls below specific power-of-2 thresholds, the system skips or partially reuses previously computed partial attention scores (supporting both full-reuse and half-bit reuse for 8-bit fixed-point representations).
- Reconfigurable PE Array: Standard systolic arrays cannot handle the irregular data access patterns introduced by this channel reuse strategy. Kaleido augments a classic 8-bit fixed-point multiply-and-accumulate (MAC) unit with additional registers and multiplexers. This allows individual processing elements (PEs) to switch between four execution modes (e.g., full compute, full reuse, or partial/half-bit reuse) without repeatedly fetching data from on-chip memory.
- Hardware Data Dispatcher: To prevent the irregular sparsity of channel reuse from causing low PE utilization, Kaleido incorporates a hardware data dispatcher. It features a scheduler that clusters tokens with similar reuse patterns using an online Hamming distance metric, and a matcher that merges compatible sparse channels into dense pairs before streaming them into the PE array.
Datasets
The authors evaluate Kaleido across four mainstream, state-of-the-art vDiT models:
- HunyuanVideo
- Wan (including Wan2.1 and Wan2.2 variants)
- CogVideoX
- TurboDiffusion (a distilled model operating in just 4 timesteps)
To rigorously measure generative quality, they utilize VBench, a comprehensive video generation benchmark containing 950 prompts evaluated across 16 distinct quality dimensions. Image-level fidelity is quantified using standard metrics like PSNR, SSIM, and LPIPS.
Key Insights and Ideas
- The Root of Attention Patterns: The paper reveals that the distinct "spatial-like" (repetitive tiles) and "temporal-like" (strong diagonals) patterns observed in vDiT attention maps are fundamentally dictated by RoPE channel partitioning. Dominant values within specific channel segments dictate which pattern emerges.
- Cross-Dimension Reuse is Safer: A key counter-intuitive finding is that for a given channel group, reusing values along the other two dimensions introduces significantly less error than reusing along its own encoded dimension. For example, temporal channels ($t$) retain much higher fidelity when reused across spatial neighbors ($x$ or $y$) rather than across adjacent frames.
- Channel-Level > Token-Level: Operating at the channel level preserves dense, continuous visual semantics much better than token-level merging or pruning, preventing the visual quality degradation common in LLM-derived sparse attention methods.
Key Results
- Generative Quality: Kaleido maintains excellent video fidelity, outperforming prior approximation accelerators (like Cambricon-D, AdapTiV, and EXION) by over 6 dB in PSNR (achieving up to 29.9 dB on HunyuanVideo) and matching the VBench scores of baseline unaccelerated models (~0.81).
- Performance & Speedup: Kaleido delivers up to 5.9× speedup (and up to 6.6× over an Nvidia A100 GPU baseline across models like HunyuanVideo, Wan, TurboDiffusion, and CogVideoX).
- Energy Efficiency: It achieves up to 16.0× energy savings compared to state-of-the-art accelerators.
- Hardware Overhead: The custom hardware modifications add only a modest 7.9% area overhead (6.6% for PE array modifications and 1.3% for the data dispatcher) over a baseline systolic array architecture.
Limitations and Future Work
- Hardware Constraints vs. Ideal Oracle: While an ideal "Oracle" algorithm could theoretically reduce operations by up to 85%, hardware mapping constraints (such as PE-array granularity and restricting each channel group to a single fixed reuse direction) limit Kaleido's actual operation reduction to around 60%. Future work could explore more flexible hardware mappings to close this gap.
- Fast-Motion Performance: On videos with rapid temporal changes (fast-motion prompts), the amount of reusable spatio-temporal correlation decreases, leading to slightly lower speedups compared to general video generation, though visual quality remains stable.
Summary updated