HeadCast: Casting Attention Heads for Efficient Autoregressive Video Generation
Summary
HeadCast is a training-free, plug-and-play acceleration framework for autoregressive (AR) video diffusion models, addressing the dominant inference cost of attention due to growing Key-Value (KV) caches. It operates by observing that pre-trained AR models' attention heads exhibit stable, heterogeneous behaviors. After a brief warm-up, HeadCast performs a one-time classification at the maximum-noise step ($t=1000$), sorting each head into one of four archetypes: Sink, Dummy, Spatial, or Global. This allows restructuring the monolithic KV cache into head-specific pathways, crucially retaining Global heads for long-range temporal consistency. The Spatial pathway's fixed-size grid ensures savings scale with resolution, accelerating inference by up to 1.62$\times$ at 720P and 1.95$\times$ at 1080P across state-of-the-art AR models like Self-Forcing and LongLive, while maintaining VBench quality and largely flicker-free output. Over 90% of head assignments remain stable across autoregressive steps.
Key takeaway
For Machine Learning Engineers optimizing autoregressive video generation, HeadCast offers a training-free solution to significantly reduce inference costs without sacrificing visual fidelity. You should consider integrating this plug-and-play framework to achieve up to 1.95$\times$ speedup at high resolutions. This approach preserves temporal consistency, avoiding the flickering issues common with aggressive cache eviction methods.
Key insights
Attention heads in AR video diffusion models exhibit stable, heterogeneous behaviors that can be exploited for efficient inference.
Principles
- Attention head archetypes (Sink, Dummy, Spatial, Global) are stable.
- Classify heads once at maximum noise for optimal fidelity.
- Retaining Global heads prevents temporal flickering.
Method
HeadCast performs a warm-up, then a one-time classification at $t=1000$ using cosine similarity and a spatial score to assign heads to Sink, Dummy, Spatial, or Global archetypes, then routes them to tailored KV cache pathways.
In practice
- Implement head-specific KV cache management for AR video models.
- Classify attention heads early in the denoising process.
- Prioritize retaining global context for temporal coherence.
Topics
- Autoregressive Video Generation
- Diffusion Models
- Attention Mechanisms
- KV Cache Optimization
- Inference Acceleration
- Temporal Consistency
- HeadCast
Code references
Best for: AI Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, Computer Vision Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CV updates on arXiv.org.