UC Berkeley Researchers Speed Up Video AI by 18x
- •UC Berkeley's SLA2 achieves 18.6x attention speedup in video diffusion models
- •New learnable router dynamically selects between sparse and linear attention paths
- •Quantization-aware training maintains visual quality while reaching 97% attention sparsity
Generating high-quality video with AI is notoriously computationally expensive because of the way models pay "attention" to different parts of a frame. Standard methods often struggle to balance speed and visual fidelity, leading to sluggish processing times for longer or more complex clips. Researchers from UC Berkeley have introduced SLA2, a refined approach to "Sparse-Linear Attention" that dramatically optimizes this process without sacrificing the final output's look and feel. By rethinking how models handle massive amounts of data, this architecture allows for smoother, more efficient video synthesis.
The breakthrough lies in three key structural improvements. First, instead of using rigid, fixed rules to decide which data is important, the model employs a learnable router to dynamically choose the most efficient calculation path for every single frame. It also utilizes a direct formulation that blends two types of attention—sparse (focusing on specific, high-priority points) and linear (summarizing broader patterns)—using a flexible, learnable ratio. This ensures the model isn't just fast, but also mathematically precise in how it reconstructs motion.
To push efficiency to the limit, the team integrated a technique called quantization-aware training. This allows the model to use lower-precision numbers—essentially a form of digital shorthand—while specifically training the AI to handle the resulting "rounding errors" (quantization error). The results are striking: the system achieves 97% sparsity, meaning it can safely ignore nearly all irrelevant data points during processing. This translates to a massive 18.6x speedup during the attention phase, proving that efficiency does not have to come at the cost of creative quality.