EMAG: Self-Rectifying Diffusion Sampling with Exponential Moving Average Guidance
On the map: Diffusion models → Diffusion foundations and sampling
Abstract (arXiv)
In diffusion and flow-matching generative models, guidance techniques are widely used to improve sample quality and consistency. Classifier-free guidance (CFG) is the de facto choice in modern systems and achieves this by contrasting conditional and unconditional samples. Recent work explores contrasting negative samples at inference using a weaker model, via strong/weak model pairs, attention-based masking, stochastic block dropping, or perturbations to the self-attention energy landscape. While these strategies refine the generation quality, they still lack a reliable control over the granularity or difficulty of the negative samples, and target-layer selection is often fixed. We propose Exponential Moving Average Guidance (EMAG), a training-free mechanism that modifies attention at inference time in diffusion transformers, with a statistics-based, adaptive layer-selection rule. Unlike prior methods, EMAG produces harder, semantically faithful negatives (fine-grained degradations), surfacing difficult failure modes, enabling the denoiser to refine subtle artifacts, boosting the quality and human preference score (HPS) by +0.54 over CFG. We further demonstrate that EMAG naturally composes with advanced orthogonal guidance techniques, such as APG and CADS, further improving HPS.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Diffusion foundations and sampling, one of 14 directions in Diffusion models. Builds on 32 of its 35 references that are in the map. First posted on arXiv 19 Dec 2025.
Builds on
32 of 35 references.
Closest ancestors · 19
Same direction, newest first
- 2025Stochastic Self-Guidance for Training-Free Enhancement of Diffusion Models18 Aug
- 2024Eliminating Oversaturation and Artifacts of High Guidance Scales in Diffusion Models3 Oct
- 2024Smoothed Energy Guidance: Guiding Diffusion Models with Reduced Energy Curvature of Attention1 Aug
- 2024Guiding a Diffusion Model with a Bad Version of Itself4 Jun
- 2024Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching3 Jun
- 2024Rethinking the Spatial Inconsistency in Classifier-Free Diffusion Guidance8 Apr
- 2024Self-Rectifying Diffusion Sampling with Perturbed-Attention Guidance26 Mar
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesis5 Mar
- 2023CADS: Unleashing the Diversity of Diffusion Models through Condition-Annealed Sampling26 Oct
- 2023Diffusion Models Beat GANs on Image Classification17 Jul
- 2023Understanding Diffusion Objectives as the ELBO with Simple Data Augmentation1 Mar
- 2022Scalable Diffusion Models with Transformers19 Dec
7 more
- 2022Improving Sample Quality of Diffusion Models Using Self-Attention Guidance3 Oct
- 2022Classifier-Free Diffusion Guidance26 Jul
- 2021High-Resolution Image Synthesis with Latent Diffusion Models20 Dec
- 2021Diffusion Models Beat GANs on Image Synthesis11 May
- 2020Score-Based Generative Modeling through Stochastic Differential Equations26 Nov
- 2020Denoising Diffusion Implicit Models6 Oct
- 2020Denoising Diffusion Probabilistic Models19 Jun
Other references · 13
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,058
- 2022Flow Matching for Generative Modelingcited by 5,702
- 2022Generative Adversarial Networkscited by 5,627
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,614
- 2023Stable Video Diffusion: Scaling Latent Video Diffusion Models to Large Datasetscited by 2,581
- 2021CLIPScore: A Reference-free Evaluation Metric for Image Captioningcited by 2,424
- 2023Human Preference Score v2: A Solid Benchmark for Evaluating Human Preferences of Text-to-Image Synthesiscited by 890
- 2020Hopfield Networks is All You Needcited by 475
- 2020Reliable Fidelity and Diversity Metrics for Generative Modelscited by 434
- 2023AUDIT: Audio Editing by Following Instructions with Latent Diffusion Modelscited by 83
- 2024Consistency-diversity-realism Pareto fronts of conditional image generative modelscited by 36
1 more
- 2025Entropy Rectifying Guidance for Diffusion and Flow Modelscited by 11
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Revisiting Classifier-Free Guidance Methods in Latent Diffusion Models
- 2023Bridging the Gap: Addressing Discrepancies in Diffusion Model Training for Classifier-Free Guidance
- 2025Normalized Attention Guidance: Universal Negative Guidance for Diffusion Models
- 2026On the Robustness of Distribution Support under Diffusion Guidance
- 2026Guiding a Diffusion Model by Swapping Its Tokens
- 2026Geometry-Aware Attention Guidance for Diffusion Models via Modern Hopfield Dynamics
- 2025Feedback Guidance of Diffusion Models
- 2026TAP: A Token-Adaptive Predictor Framework for Training-Free Diffusion Acceleration