Introduction
Visual Autoregressive (VAR) models have recently emerged as a formidable alternative to diffusion-based architectures for high-quality image synthesis. By predicting entire "scales" of tokens rather than individual pixels, VAR models capture global structure more effectively. However, this power comes at a significant computational cost. As the resolution of the generated image increases, the sequence length of tokens grows quadratically, leading to a computational explosion in the final generation stages.
To address this, researchers have introduced ActVAR, a "dual-sparsity" framework designed to make VAR models leaner and faster without sacrificing the visual fidelity that makes them attractive. Unlike traditional static pruning, which permanently removes model components, ActVAR employs dynamic activation to selectively use only the most critical weights and tokens for any given input.
The Efficiency Bottleneck in VAR
The primary challenge in scaling VAR models is the redundancy inherent in high-resolution token sequences. In a standard transformer block, every token is processed by every weight in the Feed-Forward Network (FFN) and participates in global attention. Traditional efficiency techniques like static token or weight pruning often fail in generative contexts because they are destructive. Permanently removing parts of a pre-trained model disrupts learned spatial dependencies, leading to "error accumulation" that manifests as distorted or low-quality images.
The ActVAR Framework: Dual-Sparsity
ActVAR moves away from permanent removal toward a philosophy of dynamic activation. The system learns to "skip" computations that are not essential for a specific image's generation, maintaining the model's full capacity while reducing the inference-time "tax."
1. FFN as a Mixture of Experts (MoE)
ActVAR reimagines the standard FFN as a Mixture of Experts. The original FFN is decomposed into 16 lightweight "expert" sub-networks. For every token, a learnable router identifies and activates only the top-3 most relevant experts. This allows the model to retain its vast representational knowledge while only executing a fraction of the total weights per token.
2. Layer-Adaptive Token Activation
Not all regions of an image require intensive updates at every layer. ActVAR utilizes a gated token selector to identify tokens with "high-update potential." Only these selected tokens are passed through the computationally expensive attention and FFN layers.
Crucially, ActVAR avoids the pitfalls of previous token-skipping methods by introducing a reconstruction step. Unselected tokens are not discarded; instead, they are reused from previous steps to maintain global context and spatial alignment. This ensures that the sequence length remains consistent, preventing the "sequence misalignment" that typically degrades autoregressive performance.
3. Two-Stage Knowledge Distillation
To integrate these dynamic modules into pre-trained models, a two-stage distillation process is employed. First, a pre-trained "teacher" VAR model guides the student in learning optimal expert selection and token importance. In the second stage, the entire system is fine-tuned to ensure the student's outputs are indistinguishable from the teacher's high-quality results.
Experimental Evaluation
The researchers evaluated ActVAR on the ImageNet $256 \times 256$ benchmark across various model sizes, from 310M to 2.0B parameters. The results demonstrate a superior Pareto frontier compared to existing efficiency methods:
- Computational Savings: ActVAR achieved up to a 22.3% reduction in FLOPs on the largest models (VAR-d30).
- Quality Preservation: On the VAR-d20 model, ActVAR reduced computation by 21.2% while maintaining an impressive FID of 2.72 (compared to the baseline 2.57).
- Robustness: Unlike static pruning techniques, which see sharp performance drops at high sparsity levels, ActVAR's dynamic approach remains stable, outperforming baselines like "FastVAR" in both speed and image quality.
Conclusion and Future Work
ActVAR demonstrates that dynamic, content-dependent sparsity is a highly effective path toward efficient generative AI. By activating only the necessary weights and tokens, it provides a scalable solution for high-resolution image generation. Future research may focus on optimizing actual wall-clock inference times on specific hardware and exploring the application of dual-sparsity to the earlier, more structural scales of the autoregressive process.
Summary updated