Where and How to Perturb: On the Design of Perturbation Guidance in Diffusion and Flow Models
On the map: Diffusion models → Diffusion foundations and sampling
Abstract (arXiv)
Recent guidance methods in diffusion models steer reverse sampling by perturbing the model to construct an implicit weak model and guide generation away from it. Among these approaches, attention perturbation has demonstrated strong empirical performance in unconditional scenarios where classifier-free guidance is not applicable. However, existing attention perturbation methods lack principled approaches for determining where perturbations should be applied, particularly in Diffusion Transformer (DiT) architectures where quality-relevant computations are distributed across layers. In this paper, we investigate the granularity of attention perturbations, ranging from the layer level down to individual attention heads, and discover that specific heads govern distinct visual concepts such as structure, style, and texture quality. Building on this insight, we propose "HeadHunter", a systematic framework for iteratively selecting attention heads that align with user-centric objectives, enabling fine-grained control over generation quality and visual attributes. In addition, we introduce SoftPAG, which linearly interpolates each selected head's attention map toward an identity matrix, providing a continuous knob to tune perturbation strength and suppress artifacts. Our approach not only mitigates the oversmoothing issues of existing layer-level perturbation but also enables targeted manipulation of specific visual styles through compositional head selection. We validate our method on modern large-scale DiT-based text-to-image models including Stable Diffusion 3 and FLUX.1, demonstrating superior performance in both general quality enhancement and style-specific guidance. Our work provides the first head-level analysis of attention perturbation in diffusion models, uncovering interpretable specialization within attention layers and enabling practical design of effective perturbation strategies.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Diffusion foundations and sampling, one of 14 directions in Diffusion models. Builds on 54 of its 63 references that are in the map. First posted on arXiv 12 Jun 2025.
Builds on
54 of 63 references.
Closest ancestors · 21
Same direction, newest first
- 2025Inference-Time Scaling for Diffusion Models beyond Scaling Denoising Steps16 Jan
- 2024Self-Guidance: Boosting Flow and Diffusion Generation on Their Own8 Dec
- 2024Spatiotemporal Skip Guidance for Enhanced Video Diffusion Sampling27 Nov
- 2024Smoothed Energy Guidance: Guiding Diffusion Models with Reduced Energy Curvature of Attention1 Aug
- 2024Guiding a Diffusion Model with a Bad Version of Itself4 Jun
- 2024Applying Guidance in a Limited Interval Improves Sample and Distribution Quality in Diffusion Models11 Apr
- 2024Self-Rectifying Diffusion Sampling with Perturbed-Attention Guidance26 Mar
- 2024PixArt-Sigma: Weak-to-Strong Training of Diffusion Transformer for 4K Text-to-Image Generation7 Mar
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesis5 Mar
- 2024SiT: Exploring Flow and Diffusion-based Generative Models with Scalable Interpolant Transformers16 Jan
- 2024PIXART-δ: Fast and Controllable Image Generation with Latent Consistency Models10 Jan
- 2023CADS: Unleashing the Diversity of Diffusion Models through Condition-Annealed Sampling26 Oct
9 more
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis4 Jul
- 2022Scalable Diffusion Models with Transformers19 Dec
- 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 · 33
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,058
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,355
- 2022Flow Matching for Generative Modelingcited by 5,702
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,152
- 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,101
- 2022Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flowcited by 3,700
- 2022DreamFusion: Text-to-3D using 2D Diffusioncited by 3,025
- 2023Stable Video Diffusion: Scaling Latent Video Diffusion Models to Large Datasetscited by 2,581
21 more
- 2022Video Diffusion Modelscited by 2,305
- 2024CogVideoX: Text-to-Video Diffusion Models with An Expert Transformercited by 2,261
- 2022Imagen Video: High Definition Video Generation with Diffusion Modelscited by 1,778
- 2022Diffusion Posterior Sampling for General Noisy Inverse Problemscited by 1,416
- 2022Magic3D: High-Resolution Text-to-3D Content Creationcited by 1,290
- 2023ProlificDreamer: High-Fidelity and Diverse Text-to-3D Generation with Variational Score Distillationcited by 1,219
- 2023ImageReward: Learning and Evaluating Human Preferences for Text-to-Image Generationcited by 1,045
- 2023Pick-a-Pic: An Open Dataset of User Preferences for Text-to-Image Generationcited by 977
- 2023MVDream: Multi-view Diffusion for 3D Generationcited by 938
- 2023MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editingcited by 727
- 2022Improving Diffusion Models for Inverse Problems using Manifold Constraintscited by 508
- 2020Hopfield Networks is All You Needcited by 475
- 2023Text-To-4D Dynamic Scene Generationcited by 205
- 2023Interpreting CLIP's Image Representation via Text-Based Decompositioncited by 196
- 2024CAT4D: Create Anything in 4D with Multi-View Video Diffusion Modelscited by 161
- 2024Stable Flow: Vital Layers for Training-Free Image Editingcited by 113
- 2024Learning Multi-dimensional Human Preference for Text-to-Image Generationcited by 106
- 20244Real: Towards Photorealistic 4D Scene Generation via Video Diffusion Modelscited by 64
- 2024DreamMatcher: Appearance Matching Self-Attention for Semantically-Consistent Text-to-Image Personalizationcited by 60
- 2025Reflect-DiT: Inference-Time Scaling for Text-to-Image Diffusion Transformers via In-Context Reflectioncited by 43
- 2024Cross-Attention Head Position Patterns Can Align with Human Visual Concepts in Text-to-Image Generative Modelscited by 7
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2025Denoise to Track: Harnessing Video Diffusion Priors for Robust Correspondencecited by 4
- 2026STRIDE: Training-Free Diversity Guidance via PCA-Directed Feature Perturbation in Single-Step Diffusion Modelscited by 3
- 2026Interpretable Motion-Attentive Maps: Spatio-Temporally Localizing Concepts in Video Diffusion Transformerscited by 1
- 2026Revisiting Classifier-Free Guidance Methods in Latent Diffusion Modelscited by 0
- 2026Correction Training for Diffusion Modelscited by 0
- 2026Understanding Unified VLMs: From Attention Probing to Guidance Tuning for Multimodal Generationcited by 0
- 2026Understanding Unified VLMs: From Attention Probing to Guidance Tuning for Multimodal Generation10 Oct 2026
- 2026Correction Training for Diffusion Models9 Oct 2026
- 2026Revisiting Classifier-Free Guidance Methods in Latent Diffusion Models17 Aug 2026
- 2026STRIDE: Training-Free Diversity Guidance via PCA-Directed Feature Perturbation in Single-Step Diffusion Models12 May 2026
- 2026Interpretable Motion-Attentive Maps: Spatio-Temporally Localizing Concepts in Video Diffusion Transformers3 Mar 2026
- 2025Denoise to Track: Harnessing Video Diffusion Priors for Robust Correspondence4 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2025Token Perturbation Guidance for Diffusion Models
- 2025EMAG: Self-Rectifying Diffusion Sampling with Exponential Moving Average Guidance
- 2026Guiding a Diffusion Model by Swapping Its Tokens
- 2025Entropy Rectifying Guidance for Diffusion and Flow Models
- 2024Perturbing Attention Gives You More Bang for the Buck: Subtle Imaging Perturbations That Efficiently Fool Customized Diffusion Models
- 2025Normalized Attention Guidance: Universal Negative Guidance for Diffusion Models
- 2025Devil is in the Details: Density Guidance for Detail-Aware Generation with Flow Models
- 2025Exploring Diffusion Transformer Designs via Grafting