FAM Diffusion: Frequency and Attention Modulation for High-Resolution Image Generation with Stable Diffusion

Haosen Yang, Adrian Bulat, Isma Hadji, Hai X. Pham, Xiatian Zhu, Georgios Tzimiropoulos, Brais Martínez · DOI

TL;DR

This paper introduces FAM diffusion, a novel method that enables pre-trained diffusion models like Stable Diffusion to generate high-resolution images without requiring additional training. By introducing Frequency Modulation (FM) and Attention Modulation (AM) modules, FAM diffusion effectively addresses common artifacts like repetitive patterns and inconsistent local textures, achieving state-of-the-art performance with minimal latency overhead.

What Problem Does This Paper Address?

Diffusion models have revolutionized image generation, producing impressive results. However, they typically struggle when tasked with generating images at resolutions higher than what they were trained on. Directly upscaling often leads to undesirable artifacts such as repeated objects and distorted textures. Retraining these models for higher resolutions is computationally prohibitive and data-intensive. This creates a need for methods that can adapt existing, well-trained diffusion models to generate high-resolution images efficiently and effectively, without the need for costly retraining. Previous attempts have either relied on slow, patch-based generation or modified the model architecture, sometimes sacrificing image quality.

Methods

FAM diffusion proposes two simple, plug-and-play modules that integrate seamlessly into existing Latent Diffusion Models (LDMs) without any architectural changes or additional training.

  • Frequency Modulation (FM) Module: This module operates in the Fourier domain. It selectively conditions the high-resolution denoising process using low-frequency components from a native-resolution generation. This helps to maintain global structure consistency. The FM module essentially adds a low-frequency update to the denoised latent, steering it towards the diffused latent from the native resolution, thereby preserving global structure.
  • Attention Modulation (AM) Module: This module addresses the issue of inconsistent local texture patterns, which is often overlooked. It leverages attention maps from the native-resolution denoising process to guide the attention maps in the high-resolution denoising process. By doing so, it regularizes the high-resolution generation to ensure consistency in finer texture details across semantically related parts of the image.

The overall approach involves generating an image at native resolution, then using a test-time diffuse-denoise strategy where the high-resolution denoising is guided by both the FM and AM modules.

Datasets

The paper uses the Laion-5B dataset for evaluation. They randomly sample 10K images as their real image set and 1K captions for text prompts. They also mention using variants of Stable Diffusion (SD1.5 and SD2.1) for experiments.

Key Insights and Ideas

  • Frequency Domain for Global Structure: Utilizing the Fourier transform allows for a principled way to separate and control global structure (low frequencies) and fine details (high frequencies) during the upscaling process.
  • Attention Maps for Local Consistency: Attention maps, which encode semantic relationships between image parts, are a powerful signal for ensuring local texture consistency, an aspect often neglected in prior work.
  • Modularity is Key: The success of FAM diffusion lies in its simple, modular design. The FM and AM modules can be added to any LDM without retraining, making it highly practical.
  • Balancing Latency and Quality: The method achieves high-quality results without resorting to computationally expensive patch-based methods, offering a favorable trade-off between generation speed and visual fidelity.

Key Results

FAM diffusion achieves state-of-the-art performance across various metrics, including FID, KID, and CLIP score, especially at higher scaling factors (3x and 4x).

  • Quantitative Improvements: For 4x scaling with SDXL, FAM diffusion achieves an FID of 43.65, significantly outperforming other methods like DemoFusion (65.89) and HiDiffusion (59.05). It also shows competitive or superior CLIP scores.
  • Minimal Latency: The method introduces negligible latency overheads, with an additional 0.2, 0.3, and 0.7 minutes for 2x, 3x, and 4x scaling respectively when combined with SDXL, compared to direct inference. This is a significant improvement over patch-based methods like DemoFusion.
  • Qualitative Success: Visual comparisons demonstrate that FAM diffusion effectively resolves structural distortions and local texture inconsistencies, producing more coherent and detailed high-resolution images compared to existing methods.

Limitations and Future Work

  • Over-regularization: The authors note that applying the AM module to all layers of the UNet can lead to suboptimal performance due to over-regularization. They suggest applying it strategically to up-blocks.
  • Future Work: The paper doesn't explicitly detail future work, but the success of the modular approach suggests potential for further integration with other diffusion model architectures or for exploring more advanced modulation techniques. The authors also mention providing results with SD1.5 and SD2.1 in the supplementary material, hinting at the model's generalizability.

Summary updated

BibTeX
@inproceedings{yang2025fam,
  author = {Haosen Yang and Adrian Bulat and Isma Hadji and Hai X. Pham and Xiatian Zhu and Georgios Tzimiropoulos and Brais Martínez},
  title = {{FAM Diffusion: Frequency and Attention Modulation for High-Resolution Image Generation with Stable Diffusion}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00235},
}
Figure