ExtraVAR: Stage-Aware RoPE Remapping for Resolution Extrapolation in Visual Autoregressive Models

Feihong Yan, Shaoyu Liu, Haixuan Wang, Shuai Lu, Linfeng Zhang, Huiqi Li, Xiangyang Ji

TL;DR

ExtraVAR enables training-free resolution extrapolation for Visual Autoregressive (VAR) models by aligning positional encodings with the model's unique coarse-to-fine generation stages. By introducing stage-aware RoPE remapping and entropy-driven attention calibration, it allows models trained at 1024x1024 to generate high-fidelity 2560x2560 images without the repetition or blurring artifacts that plague existing methods.

What Problem Does This Paper Address?

Visual Autoregressive (VAR) models are a powerful alternative to diffusion models, generating images through a "next-scale prediction" process. However, they are typically trained at a fixed maximum resolution (e.g., 1024x1024). When users try to generate larger images at inference time, the models fail in three distinct ways:

  1. Global Repetition: The entire layout repeats across the canvas.
  2. Local Repetition: Individual objects appear smaller and more numerous than requested.
  3. Detail Degradation: Fine textures become blurry or over-smoothed.

Existing solutions borrowed from Large Language Models (LLMs) or diffusion models treat the generation process as a single, uniform step. The authors argue that these fail because they ignore the stage-wise nature of VAR generation, where the model's requirements for positional information change as it moves from sketching a layout to rendering fine details.

Methods

The authors introduce two primary components to solve the "band-stage mismatch":

1. Stage-Aware RoPE Remapping

VAR models use Rotary Positional Embeddings (RoPE) to tell the model where tokens are located. The authors discovered that different frequency bands in RoPE drive different stages of generation.

  • Layout Construction Stage: Driven by low-frequency bands. ExtraVAR uses Position Interpolation (PI) here to stretch the global layout to the new resolution.
  • Local Refinement Stage: A transition period where the method interpolates between global stretching and local detail preservation.
  • Detail Refinement Stage: Driven by high-frequency bands. ExtraVAR uses YaRN-like remapping to maintain the "sharpness" of local positional discrimination, preventing blur.

2. Entropy-Driven Adaptive Attention Calibration

As image resolution increases, the number of tokens grows, causing the self-attention mechanism to "disperse" its focus. This leads to a loss of contrast and detail. ExtraVAR introduces a resolution-invariant normalized entropy metric. It calculates a per-head scaling factor in closed-form to ensure the attention concentration at high resolution matches the concentration the model learned during its original training.

Figure 1: Intermediate outputs of VAR at different scale steps.

Datasets

The researchers evaluated their method using the Infinity model, a state-of-the-art VAR-based text-to-image generator. They tested extrapolation from the native 1024x1024 resolution up to 2560x2560 (a 6.25x increase in pixel count).

Evaluation was performed on three major benchmarks:

  • GenEval: Focuses on object-level alignment (e.g., "two cats," "a red ball next to a blue cube").
  • DPG-Bench: Evaluates dense prompt following and complex attribute binding.
  • HPSv2.1: Measures human preference and perceptual quality across different styles (Photo, Anime, Concept Art, etc.).

Key Insights and Ideas

  • The Band-Stage Mismatch: The core "aha!" moment was realizing that VAR generation isn't uniform. As shown in the heatmap below, the model relies on low-frequency positional signals early on and shifts to high-frequency signals for final details. Disrupting the "wrong" band at the "wrong" time is what causes specific failures like global repetition.

    Figure 2: Dominant frequency band shifts from low to high in VAR generation.
  • Normalized Entropy is Key: Standard Shannon entropy grows with the number of tokens, making it useless for comparing a 1k image to a 2k image. By normalizing it, the authors created a "resolution-agnostic" ruler to measure how focused the model's attention is.

  • Training-Free is Feasible: By carefully remapping frequencies stage-by-stage, you can achieve results that previously required expensive high-resolution fine-tuning.

Key Results

ExtraVAR consistently outperformed prior state-of-the-art methods like PI, YaRN, and DyPE:

  • Quantitative: On GenEval, ExtraVAR improved the overall score by 0.13 over the baseline PI. On DPG-Bench, it saw a massive 0.89 improvement in overall score, showing much better handling of complex prompts at high resolutions.
  • Qualitative: While other methods produced "tiled" images or blurry textures, ExtraVAR maintained structural coherence and sharp edges.
  • Perceptual: On HPSv2.1, it achieved the highest scores across all categories, indicating that the generated images are not just mathematically "correct" but also more visually appealing to humans.
Comparison of ExtraVAR against other training-free extrapolation methods across different generation paradigms.

Limitations and Future Work

  • Quadratic Complexity: While the method is training-free, the inference cost of self-attention still grows quadratically with resolution. The authors used "FastVAR" (token pruning) to mitigate this, but generating extremely large images (e.g., 8k) remains hardware-intensive.
  • Fixed Stage Boundaries: The transition points between generation stages ($k_l$ and $k_h$) are currently hyperparameters. Future work could involve making these transitions fully adaptive to the specific image content being generated.

Summary updated

BibTeX
@inproceedings{yan2026extravar,
  author = {Feihong Yan and Shaoyu Liu and Haixuan Wang and Shuai Lu and Linfeng Zhang and Huiqi Li and Xiangyang Ji},
  title = {{ExtraVAR: Stage-Aware RoPE Remapping for Resolution Extrapolation in Visual Autoregressive Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=spQoCaKIYY},
}
Figure