Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation
Not on the map. Why?
Abstract (arXiv)
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% of attention computation with little performance degradation across different models.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 34 of its 79 references that are in the map. Submitted 21 Nov 2026, announced 24 Nov 2026.
Builds on
34 of 79 references.
References · 34
- 2022Classifier-Free Diffusion Guidancecited by 6,251
- 2022Scaling Autoregressive Models for Content-Rich Text-to-Image Generationcited by 1,342
- 2025Janus-Pro: Unified Multimodal Understanding and Generation with Data and Model Scalingcited by 878
- 2024Autoregressive Model Beats Diffusion: Llama for Scalable Image Generationcited by 835
- 2024ELLA: Equip Diffusion Models with LLM for Enhanced Semantic Alignmentcited by 541
- 2017PixelCNN++: Improving the PixelCNN with Discretized Logistic Mixture Likelihood and Other Modificationscited by 434
- 2020Towards Understanding Ensemble, Knowledge Distillation and Self-Distillation in Deep Learningcited by 311
- 2024CFG++: Manifold-constrained Classifier Free Guidance for Diffusion Modelscited by 175
- 2024Lumina-mGPT: Illuminate Flexible Photorealistic Text-to-Image Generation with Multimodal Generative Pretrainingcited by 158
- 2025Emu3.5: Native Multimodal Models are World Learnerscited by 157
- 2024HART: Efficient Visual Generation with Hybrid Autoregressive Transformercited by 139
- 2024How Transformers Learn Causal Structure with Gradient Descentcited by 136
22 more
- 2024Classifier-Free Guidance is a Predictor-Correctorcited by 94
- 2024Analysis of Classifier-Free Guidance Weight Schedulerscited by 75
- 2024Unveil Conditional Diffusion Models with Classifier-free Guidance: A Sharp Statistical Theorycited by 69
- 2024Theoretical Insights for Diffusion Guidance: A Case Study for Gaussian Mixture Modelscited by 49
- 2024Autoregressive Models in Vision: A Surveycited by 41
- 2025Lumina-mGPT 2.0: Stand-Alone AutoRegressive Image Modelingcited by 39
- 2024From Sparse Dependence to Sparse Attention: Unveiling How Chain-of-Thought Enhances Transformer Sample Efficiencycited by 35
- 2024STAR: Scale-wise Text-conditioned AutoRegressive image generationcited by 34
- 2022Neural Tangent Kernel: A Surveycited by 25
- 2025Stage-wise Dynamics of Classifier-Free Guidance in Diffusion Modelscited by 22
- 2025Guidance in the Frequency Domain Enables High-Fidelity Sampling at Low CFG Scalescited by 19
- 2025Dynamic Classifier-Free Diffusion Guidance via Online Feedbackcited by 18
- 2025Learn to Guide Your Diffusion Modelcited by 17
- 2025Towards Understanding the Mechanisms of Classifier-Free Guidancecited by 15
- 2026CFG-Ctrl: Control-Based Classifier-Free Diffusion Guidancecited by 14
- 2025Towards a unified framework for guided diffusion modelscited by 12
- 2026C2FG: Control Classifier-Free Guidance via Score Discrepancy Analysiscited by 11
- 2024A Theoretical Analysis of Self-Supervised Learning for Vision Transformerscited by 10
- 2025Provable Efficiency of Guidance in Diffusion Models for General Data Distributioncited by 10
- 2025What Exactly Does Guidance Do in Masked Discrete Diffusion Modelscited by 10
- 2026Improving Classifier-Free Guidance of Flow Matching via Manifold Projectioncited by 4
- 2024A Survey on Vision Autoregressive Modelcited by 2
Built on by
Not cited yet.