ExtraVAR: 用于视觉自回归模型中分辨率外推的阶段感知RoPE重映射
ExtraVAR: Stage-Aware RoPE Remapping for Resolution Extrapolation in Visual Autoregressive Models
AI总结:
本文提出ExtraVAR,通过阶段感知RoPE重映射解决视觉自回归模型中分辨率外推的全局重复、局部重复和细节退化问题,引入熵驱动自适应注意力校准提升结构和细节质量。
摘要:
视觉自回归(VAR)模型已作为扩散模型的有力替代品用于图像合成,但其固定训练分辨率限制了更高分辨率的直接生成。将大语言模型或扩散模型的训练自由外推方法直接应用于VAR会导致三种典型失败模式:全局重复、局部重复和细节退化。我们发现这些失败模式源于统一的带-阶段不匹配:VAR以粗到细、按尺度的过程生成图像,每个阶段由不同的主导RoPE频率带驱动,而每个失败模式出现在特定阶段的主导带被破坏时。基于此,我们提出阶段感知RoPE重映射,一种无需训练的策略,为每个频率带分配阶段特定的重映射规则,共同抑制所有三种失败模式。我们进一步发现,随着图像分辨率的增加,注意力会系统性地分散。现有方法通常依赖于预定义的注意力缩放因子,这些因子既不适应目标分辨率,也不足以忠实捕捉注意力分散的实际程度。因此,我们提出熵驱动自适应注意力校准,通过分辨率不变的标准化熵量化分散,并产生一个闭合形式的每头缩放因子,使外推分辨率的注意力熵与训练分辨率的对应部分重新对齐。大量实验表明,我们的方法在结构一致性和细节保真度方面均优于先前的分辨率外推方法。我们的代码可在https://github.com/feihongyan1/ExtraVAR上获得。
英文摘要:
Visual Autoregressive (VAR) models have emerged as a strong alternative to diffusion for image synthesis, yet their fixed training resolution prevents direct generation at higher resolutions. Naively transferring training-free extrapolation methods from LLMs or diffusion models to VAR yields three characteristic failure modes: global repetition, local repetition, and detail degradation. We trace them to a unified band-stage mismatch: VAR generates images in a coarse-to-fine, scale-wise process where each stage is driven by a distinct dominant RoPE frequency band, and each failure mode emerges when the dominant band of a particular stage is disrupted. Building on this insight, we propose Stage-Aware RoPE Remapping, a training-free strategy that assigns each frequency band a stage-specific remapping rule, jointly suppressing all three failure modes. We further observe that attention becomes systematically dispersed as the image resolution increases. Existing methods typically depend on predefined attention scaling factors, which are neither adaptive to the target resolution nor capable of faithfully capturing the actual extent of attention dispersion. We therefore propose Entropy-Driven Adaptive Attention Calibration, which quantifies dispersion via a resolution-invariant normalized entropy and yields a closed-form per-head scaling factor that realigns the extrapolated-resolution attention entropy with its training-resolution counterpart. Extensive experiments show that our method consistently outperforms prior resolution-extrapolation methods in both structural coherence and fine-detail fidelity. Our code is available at https://github.com/feihongyan1/ExtraVAR.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。