Abstract
Autoregressive (AR) models have revolutionized natural language processing, yet their application to visual generation faces unique challenges, particularly the trade-off between reconstruction fidelity and generation quality. We present IAR2, a next-generation AR framework that decouples image representations into a "Semantic-Detail" dual codebook. By employing a hierarchical prediction scheme and a local-context enhanced AR head, IAR2 achieves a state-of-the-art FID of 1.50 on ImageNet 256×256. Notably, IAR2 demonstrates significant hardware efficiency, outperforming larger models with a fraction of the computational resources.
Introduction
While AR models like GPT excel at sequential data, images possess structural properties that simple "next-token" prediction often fails to capture. Current visual AR models struggle with a fundamental trade-off: small codebooks produce blurry images, while large codebooks make the prediction task exponentially harder, leading to poor generation. Furthermore, standard models often suffer from spatial blindness and rely on static guidance mechanisms that can introduce artifacts. IAR2 addresses these limitations through architectural innovations that align the generation process with the hierarchical nature of visual information.
Methodology
IAR2 introduces three core innovations to enhance autoregressive visual generation:
1. Semantic-Detail Associated Dual Codebook
Instead of a single monolithic codebook, IAR2 utilizes a dual-codebook structure. A compact Semantic Codebook captures high-level concepts and global structure, while a larger Detail Codebook encodes high-frequency residuals such as textures and fine lines. This hierarchical approach allows the model to first establish a "sketch" (semantic token) before filling in the "details" (detail token), effectively expanding the representational capacity polynomially without increasing the complexity of the prediction task.
2. Local-Context Enhanced AR Head
To mitigate spatial blindness, IAR2 employs a specialized prediction head that aggregates information from a local $k \times k$ window of previously generated tokens. This lightweight module complements the global context handled by the transformer backbone, ensuring better spatial coherence and texture continuity.
3. Progressive Attention-Guided Adaptive CFG (PAG-CFG)
Traditional Classifier-Free Guidance (CFG) applies a uniform scale, which can over-saturate backgrounds. PAG-CFG introduces a dynamic schedule, using attention scores to prioritize guidance on salient subjects and increasing strength as the generation progresses from coarse outlines to fine details.
Experimental Results
IAR2 was evaluated on the ImageNet 256×256 benchmark across multiple scales, from 143M (Base) to 1.5B (XXL) parameters. The model achieved a new state-of-the-art FID of 1.50, surpassing existing diffusion, GAN, and AR-based methods.
Scaling and Efficiency
As shown in Figure 1, IAR2 demonstrates superior scaling behavior. The IAR2-XXL (1.5B parameters) model outperforms the 2.0B parameter VAR model while being significantly more efficient to train, requiring only 32 GPUs compared to VAR's 256. This efficiency stems from the improved architectural priors that simplify the learning objective, allowing the model to achieve the fidelity of a massive codebook while choosing from two relatively small sets of options.
Conclusion
IAR2 represents a significant step forward for autoregressive visual generation. By treating images as a hierarchy of semantic and detailed components rather than flat sequences, it achieves unprecedented fidelity and efficiency. Visual results demonstrate significantly better texture continuity and fewer background artifacts compared to fixed-CFG methods. Future work will explore extending this framework to complex text-to-image synthesis and investigating parallel decoding strategies to further improve inference speed.
Summary updated