Nested AutoRegressive Models
Hongyu Wu, Xuhui Fan, Zhangkai Wu, Longbing Cao
TL;DR
NestAR tackles inefficiency and limited diversity in autoregressive image generation by introducing a nested, two-level AR architecture with hierarchical multi-scale modules that generate image patches. Each scale uses an AR process to produce patches conditioned on outputs from earlier scales, and an internal AR generates within-patch tokens, reducing complexity from $O(n)$ to $O(\log n)$. Training combines flow matching with a velocity-coordination objective to align module behaviors and employs a continuous-token framework. Empirical results on ImageNet-256 show NestAR achieves a top IS score and competitive FID while offering substantial inference speedups over diffusion and other AR-based methods, and improved sample diversity. This approach provides a practical path toward fast, diverse, high-fidelity AR-based image synthesis.
Abstract
AutoRegressive (AR) models have demonstrated competitive performance in image generation, achieving results comparable to those of diffusion models. However, their token-by-token image generation mechanism remains computationally intensive and existing solutions such as VAR often lead to limited sample diversity. In this work, we propose a Nested AutoRegressive~(NestAR) model, which proposes nested AutoRegressive architectures in generating images. NestAR designs multi-scale modules in a hierarchical order. These different scaled modules are constructed in an AR architecture, where one larger-scale module is conditioned on outputs from its previous smaller-scale module. Within each module, NestAR uses another AR structure to generate ``patches'' of tokens. The proposed nested AR architecture reduces the overall complexity from $\mathcal{O}(n)$ to $\mathcal{O}(\log n)$ in generating $n$ image tokens, as well as increases image diversities. NestAR further incorporates flow matching loss to use continuous tokens, and develops objectives to coordinate these multi-scale modules in model training. NestAR achieves competitive image generation performance while significantly lowering computational cost.
