Guiding a diffusion model using sliding windows

Nikolas Adaloglou, Tim Kaiser, Damir Iagudin, Markus Kollmann
11/15/2024
cs.CVcs.AIcs.LG

Official code: HHU-MMBS/swg_bmvc2025_official (3 stars, last commit 2026-01-05).

Abstract

Guidance is a widely used technique for diffusion models to enhance sample quality. Technically, guidance is realised by using an auxiliary model that generalises more broadly than the primary model. Using a 2D toy example, we first show that it is highly beneficial when the auxiliary model exhibits similar but stronger generalisation errors than the primary model. Based on this insight, we introduce \emph{masked sliding window guidance (M-SWG)}, a novel, training-free method. M-SWG upweights long-range spatial dependencies by guiding the primary model with itself by selectively restricting its receptive field. M-SWG requires neither access to model weights from previous iterations, additional training, nor class conditioning. M-SWG achieves a superior Inception score (IS) compared to previous state-of-the-art training-free approaches, without introducing sample oversaturation. In conjunction with existing guidance methods, M-SWG reaches state-of-the-art Frechet DINOv2 distance on ImageNet using EDM2-XXL and DiT-XL. The code is available at https://github.com/HHU-MMBS/swg_bmvc2025_official.

View on arXivView PDF

Code Implementations(1)

Code accompanying the paper "Guiding a diffusion model with itself using sliding windows" accepted at BMVC 2025, based on open source code and weights of existing class-conditional diffusion models

30Shell, PythonAug 5, 20259 months ago

Similar Papers

Cite this paper

@article{adaloglou2024guiding,
  title  = {Guiding a diffusion model using sliding windows},
  author = {Nikolas Adaloglou and Tim Kaiser and Damir Iagudin and Markus Kollmann},
  year   = {2024},
  eprint = {2411.10257},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.10257v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.10257.svg)](https://codeofpaper.com/paper/2411.10257)

Discussion