Image Inpainting via Tractable Steering of Diffusion Models

Anji Liu, Mathias Niepert, Guy Van den Broeck
2/12/2026

No official code found. Best implementation: UCLA-StarAI/Tiramisu (3 stars, last commit 2024-02-29).

Abstract

Diffusion models are the current state of the art for generating photorealistic images. Controlling the sampling process for constrained image generation tasks such as inpainting, however, remains challenging since exact conditioning on such constraints is intractable. While existing methods use various techniques to approximate the constrained posterior, this paper proposes to exploit the ability of Tractable Probabilistic Models (TPMs) to exactly and efficiently compute the constrained posterior, and to leverage this signal to steer the denoising process of diffusion models. Specifically, this paper adopts a class of expressive TPMs termed Probabilistic Circuits (PCs). Building upon prior advances, we further scale up PCs and make them capable of guiding the image generation process of diffusion models. Empirical results suggest that our approach can consistently improve the overall quality and semantic coherence of inpainted images across three natural image datasets (i.e., CelebA-HQ, ImageNet, and LSUN) with only $\sim\! 10 \%$ additional computational overhead brought by the TPM. Further, with the help of an image encoder and decoder, our method can readily accept semantic constraints on specific regions of the image, which opens up the potential for more controlled image generation tasks. In addition to proposing a new framework for constrained image generation, this paper highlights the benefit of more tractable models and motivates the development of expressive TPMs.

View on arXivView PDF

Code Implementations(1)

30PythonFeb 28, 20242 years ago

Similar Papers

Cite this paper

@article{liu2026image,
  title  = {Image Inpainting via Tractable Steering of Diffusion Models},
  author = {Anji Liu and Mathias Niepert and Guy Van den Broeck},
  year   = {2026},
  eprint = {2401.03349},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2401.03349},
  journal = {ICLR 2023 2023}
}

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/2401.03349.svg)](https://codeofpaper.com/paper/2401.03349)

Discussion