Abstract
Autoregressive (AR) models have set new standards in high-quality image and video generation but are constrained by the sequential nature of their inference process. We present Parallelized Autoregressive (PAR) generation, a framework designed to break the "one-token-at-a-time" bottleneck. By exploiting the weak correlation between spatially distant tokens, PAR groups tokens for parallel prediction while maintaining sequential dependencies for local details. Our method achieves up to a 9.5× speedup on ImageNet-1K with negligible impact on visual quality.
Introduction
The success of Large Language Models (LLMs) has translated into the visual domain through Autoregressive (AR) models like LlamaGen. These models predict image tokens in a strict raster scan order (left-to-right, top-to-bottom). While effective for capturing complex distributions, this sequential approach is computationally expensive, requiring thousands of steps for a single high-resolution image.
Naive attempts to parallelize this process often lead to significant quality degradation. When adjacent tokens are predicted simultaneously without established context, the model fails to coordinate local features, resulting in "visual glitches" such as fragmented patterns or distorted anatomical structures.
The PAR Framework
The core insight of PAR is that spatial distance in an image corresponds to weak dependency. We can therefore parallelize the generation of distant tokens if we first establish a global structural "anchor."
Two-Stage Generation
- Stage 1: Establishing Global Context. The image is partitioned into a grid of regions. The model first generates the initial "anchor" token for each region sequentially. This ensures that all parts of the image agree on the overall composition (e.g., the placement of a subject's head and limbs).
- Stage 2: Non-Local Parallel Generation. Once anchors are set, tokens at the same relative position across different regions are predicted in parallel. Because these tokens are spatially separated, their mutual dependencies are weak enough to be handled simultaneously without compromising quality.
Architectural Implementation
PAR utilizes standard Transformer architectures and VQGAN tokenizers. The primary modification is the re-ordering of the token sequence. To facilitate the transition between the sequential anchor phase and the parallel phase, the authors introduce learnable transition tokens and group-wise bi-directional attention, allowing parallel tokens to coordinate within their group.
Experimental Results
PAR was evaluated on ImageNet-1K for image generation and UCF-101 for video synthesis.
- Inference Speed: On an NVIDIA A100 GPU, PAR achieved a 3.6× speedup while maintaining baseline quality. More aggressive configurations (PAR-16x) reached a 9.5× speedup, reducing generation time from over 12 seconds to just 1.31 seconds.
- Visual Quality: Quality degradation was minimal. At 16x parallelization, the Fréchet Inception Distance (FID) increased by only 0.7, a difference largely imperceptible to human observers.
- Video Consistency: The framework extended successfully to video, achieving a 3.8× speedup on UCF-101. While spatial parallelization is robust, the authors noted that temporal parallelization remains a challenge due to the stronger sequential dependencies in the time dimension.
Conclusion
Parallelized Autoregressive (PAR) generation offers a practical solution to the latency issues of AR visual models. By distinguishing between strong local dependencies and weak distant ones, PAR enables significant parallelization without the artifacts typical of non-autoregressive approaches. Future research will explore extending these parallelization principles to the temporal dimension of video generation.
Summary updated