Introduction
We propose a novel approach to image generation by decomposing an image into a structured sequence where each element shares the same spatial resolution but differs in the number of unique tokens used. This "granularity-first" strategy is materialized in the Next Visual Granularity (NVG) generation framework. NVG generates a visual granularity sequence beginning from an empty image and progressively refines it—from global layout to fine details—in a structured manner. This iterative process encodes a hierarchical, layered representation that offers fine-grained control over the generation process across multiple granularity levels, achieving superior image quality compared to traditional multi-resolution approaches.
Challenges in Current Image Generators
Most modern image generators view images as either a flat sequence of tokens (Autoregressive models) or a multi-resolution pyramid (Visual Autoregressive or VAR models). While effective, these approaches have notable flaws:
- Semantic Ambiguity: In multi-resolution models like VAR, a single token at a low resolution must represent a large, semantically complex area, often leading to blurry or ambiguous initial guesses.
- Lack of Structural Control: It is difficult to dictate where specific parts of an object should be placed without relying on complex post-hoc modules.
- Exposure Bias: Standard autoregressive models frequently suffer from error accumulation as they generate tokens sequentially.
Images are arguably better generated the way a painter works: starting with a coarse structural layout and progressively refining the granular details while maintaining the overall 2D spatial context.
The NVG Framework
The core innovation of NVG is the Visual Granularity Sequence (VGS). Instead of altering the image's spatial resolution, the model maintains a fixed $16 \times 16$ latent space and progressively increases the number of unique "content tokens" allowed at each stage (from 1 up to 256).
Structure vs. Content
NVG decomposes image generation into two distinct tasks at each stage:
- Structure Map ($s_i$): A matrix defining which spatial locations share the same token. This acts as a structural blueprint or a "paint-by-numbers" guide.
- Content Tokens ($c_i$): The actual visual values assigned to those specific structural regions.
The Dual-Generator Pipeline
To handle this decomposition, the framework employs two specialized models:
- Structure Generator: A lightweight model utilizing Rectified Flow (a type of diffusion) to "inpaint" the structure map. It determines how to split existing regions into smaller, more detailed segments.
- Content Generator: An autoregressive-style transformer that predicts the final image canvas based on the current structural blueprint.
Structure-Aware RoPE
To help the model understand these complex spatial relationships, NVG utilizes a Structure-Aware Rotary Positional Embedding (RoPE). This allows the transformer to treat tokens within the same structural cluster as occupying the same "position," reinforcing the hierarchical nature of the image generation process.
Key Results and Performance
The NVG models were trained and evaluated on the ImageNet dataset for class-conditional image generation at $256 \times 256$ resolution, comparing favorably against state-of-the-art baselines including GANs, Diffusion models (like DiT), and VAR.
- State-of-the-Art Performance: NVG consistently outperforms the VAR series across all model sizes. For the largest model (NVG-d24), NVG achieved an FID of 2.06 (compared to VAR's 2.09). Other scale comparisons also showed consistent improvements (e.g., 3.30 $\rightarrow$ 3.03, 2.57 $\rightarrow$ 2.44).
- Superior Reconstruction: The NVG tokenizer achieved a reconstruction FID (rFID) of 0.74, significantly better than VAR's 1.06, despite using fewer total tokens (511 vs. 680).
- Zero-Shot Control: Because the structure is explicit, users can provide simple geometric maps to guide the generation process without any additional training.
- Efficiency: The structure generator is highly efficient, requiring only about 1/24th the parameters of the main content generator.
Limitations and Future Work
While NVG presents a strong step forward, it has a few limitations. The addition of a separate structure generation step (currently 25 steps of rectified flow) makes the total pipeline slightly slower than pure one-step autoregressive models. Additionally, the current model uses a simple greedy clustering strategy for structure; incorporating expert knowledge like frequency decomposition or semantic segmentation could yield even more meaningful structural maps.
Looking forward, the NVG framework serves as a strong foundation for Region-Aware Generation and Physical-Aware Video Generation, where tracking structural regions over time could lead to significantly more coherent motion and temporal consistency.
Summary updated