Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation
Zhiling ZhouJiachun PanFengzhuo ZhangDirk BergemannZhuoran Yang
Zhiling Zhou
Jiachun Pan
Fengzhuo Zhang
Dirk Bergemann
Zhuoran Yang
+5
This paper clarifies how classifier-free guidance (CFG) works in autoregressive image generation. Examining top-ranked semantics of the conditional and unconditional logits, the authors show that texture information is mainly encoded in their difference, while both logits share previous-token repetition as their leading semantics; this shared repetition obscures texture, so greedy decoding from the conditional logits alone yields nearly pure-color images. A training-dynamics analysis of shallow transformers proves this repetition bias stems from the texture sparsity of images rather than pretraining limitations, and that CFG improves quality by rectifying the bias at inference. Motivated by the shared semantics, the authors propose Attention Weight Reuse (AttnReuse), which reuses intermediate attention computations from the conditional-logit forward pass for the unconditional one, cutting about $25\%$ of attention computation with little performance degradation across models.

OpenReview ·
· May 4, 2026