Frequency-Aware Autoregressive Modeling for Efficient High-Resolution Image Synthesis

Zhuokun Chen, Jugang Fan, Zhuowei Yu, Bohan Zhuang, Mingkui Tan

TL;DR

This paper introduces SparseVAR, a novel method to accelerate autoregressive image generation models for high-resolution images. By dynamically identifying and skipping low-frequency image tokens during inference, SparseVAR significantly reduces computational cost without sacrificing image quality, achieving up to a 2x speedup.

What Problem Does This Paper Address?

Generating high-resolution images using autoregressive models, particularly those employing a "next-scale prediction" paradigm, is computationally intensive. These models progressively refine images across multiple resolution stages. While effective, the later stages, dealing with thousands of tokens, become a bottleneck. Existing methods for reducing computational load, like token merging or selection based on attention scores, are either computationally prohibitive for high resolutions or struggle with the inherent local dependencies in image generation. This paper addresses the need for an efficient yet high-quality method to speed up high-resolution image synthesis in autoregressive models.

Methods

SparseVAR is a plug-and-play framework that can be integrated into existing next-scale prediction models without requiring additional training. Its core idea is to dynamically identify and exclude "low-frequency" tokens during inference in higher-resolution stages. This is motivated by the observation that these tokens have minimal impact on the final image quality and are highly similar to neighboring tokens.

The method leverages two key insights:

  1. Low-frequency tokens have negligible impact: Visualizations show that the residuals generated in high-resolution stages primarily affect high-frequency regions, with minimal impact on low-frequency areas like backgrounds.
  2. Blocks have distinct regional focus: Different internal blocks within the autoregressive model attend to different regions of the image. Some blocks are more sensitive to high-frequency details, while others focus on low-frequency areas.

SparseVAR uses a lightweight metric based on the Mean Squared Error (MSE) changes in features before and after inference within specific blocks to identify low-frequency tokens. These identified tokens are then excluded from further computation. To maintain generation quality, a small set of "anchor tokens" are retained to represent the excluded low-frequency regions. These anchor tokens provide predictions for the excluded regions, ensuring structural integrity and detail preservation.

Datasets

The paper evaluates SparseVAR on the following datasets:

  • GenEval: Used for quantitative evaluation of image generation quality and latency.
  • DPG-Bench: Used for quantitative evaluation of image generation quality and latency.
  • HPSv2.1: Used for human preference evaluation.
  • ImageReward: Used for human preference evaluation.

The models evaluated are Infinity-2B and HART-0.7B, which are existing high-resolution autoregressive generation models based on next-scale prediction.

Key Insights and Ideas

  • Redundancy in High-Resolution Stages: The most significant insight is the substantial redundancy in token computations during high-resolution stages of autoregressive image generation. Low-frequency regions are largely "over-processed" by later stages.
  • Frequency-Aware Exclusion: The paper proposes a novel approach of dynamically identifying and excluding low-frequency tokens based on their minimal impact on image quality. This is a departure from methods that rely solely on attention scores or token merging.
  • Block Specialization: The observation that different blocks within the model have distinct regional focuses is crucial. It allows for a targeted approach to identify low-frequency tokens by analyzing MSE changes in specific, relevant blocks.
  • Anchor Tokens for Quality Preservation: The introduction of anchor tokens is a clever way to mitigate the quality degradation that might arise from simply discarding tokens. These anchors act as representatives for the excluded regions, ensuring continuity and detail.

Key Results

  • Significant Speedup: SparseVAR achieves up to a 2x speedup in inference latency for models like Infinity-2B on the GenEval dataset. For HART-0.7B, it provides a 25% reduction in latency with minimal quality degradation.
  • Minimal Quality Degradation: Quantitative evaluations on GenEval and DPG-Bench show only marginal decreases in image quality metrics (e.g., GenEval score) when using SparseVAR, often within 0.005 points.
  • Human Preference Alignment: Human preference evaluations on HPSv2.1 and ImageReward datasets confirm that SparseVAR preserves human perception of image quality, with only minor score reductions (e.g., 0.47 on HPSv2.1 for Infinity) while significantly reducing latency.
  • Effective Metric: The MSE change metric for identifying low-frequency tokens is found to be lightweight and accurate, outperforming alternatives like l1 differences (which require an additional decoder) and simple logit similarity.

Limitations and Future Work

  • Model Specificity: The current research focuses on next-scale prediction models. The authors suggest exploring the broader applicability of early exclusion of low-frequency tokens in other autoregressive generation frameworks.
  • Uniform Anchor Selection: The current anchor token selection strategy is uniform (e.g., every 3x3 grid). The paper acknowledges that this might not be optimal for all images, as low-frequency regions can vary significantly.
  • Dynamic Anchor Placement: Future work could involve developing a dynamic method to adaptively adjust the sampling frequency and anchor placement based on image content. This could further enhance the generation quality of low-frequency regions.

Summary updated

BibTeX
@inproceedings{chen2025frequency,
  author = {Zhuokun Chen and Jugang Fan and Zhuowei Yu and Bohan Zhuang and Mingkui Tan},
  title = {{Frequency-Aware Autoregressive Modeling for Efficient High-Resolution Image Synthesis}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure