cs.CVNov 21, 2026

Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation

Authors: Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang

Organizations: Yale University · National University of Singapore · Cisco Foundation AI

Abstract

Classifier-free guidance (CFG) has been widely adopted in autoregressive (AR) models for high-quality image generation. Despite its strong empirical performance, its mechanism in AR models remains unclear. This paper demystifies the mechanism of CFG through both empirical and theoretical studies. By examining the top-ranked semantics of different components in CFG, we show that texture information is primarily encoded in the difference between the conditional and unconditional logits, whereas both logits share previous-token repetition as their leading semantics. This strong repetition semantics obscures the desired texture information, causing greedy decoding from the conditional logits alone to produce nearly pure-color images. Through a training-dynamics analysis of shallow transformers, we prove that this shared repetition semantics does not arise from limitations or failures of pretraining, but instead originates from the texture sparsity of images. We further show that CFG improves generation quality by rectifying this repetition bias during inference. Motivated by the shared semantics between conditional and unconditional logits, we propose Attention Weight Reuse (AttnReuse), which reuses intermediate attention computations from the conditional-logit forward pass to accelerate the unconditional-logit computation. AttnReuse reduces about 25%25\% of attention computation with little performance degradation across different models.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Rethinking Visual Autoregressive Sampling with Information-Grounding Guidance

    Sep 28, 2025Ky Dan Nguyen, Hoang Lam Tran, Anh-Dung Dinh +4Visual Autoregressive ModelsConditional Image Generation

  2. Revisiting Classifier-Free Guidance Methods in Latent Diffusion Models

    Aug 17, 2026Artem Sergievskii, Artyom Turevich, Sergey KastryulinDiffusion Model GuidanceClassifier-Free Guidance

  3. End-to-End Autoregressive Image Generation with 1D Semantic Tokenizer

    May 1, 2026Wenda Chu, Bingliang Zhang, Jiaqi Han +4Image TokenizationVisual Tokenization