# Amortized Guidance for Image Inpainting with Pretrained Diffusion Models

*Yilie Huang, XUNYU ZHOU*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152907) · [OpenReview](https://openreview.net/forum?id=PVo9A82GnZ) · [alphaXiv](https://www.alphaxiv.org/abs/2605.13010) · [Open on the map](../papers.html#p152907)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Diffusion Model Distillation and Alignment](../pgroup/101.md) · Type: new method · Keywords: image inpainting, diffusion models, amortized guidance, pretrained backbone, quality-speed trade-off

Areas: [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Pixel-Space Diffusion › Image Editing and Reconstruction; [Computer Vision & 3D](../areas/computer-vision.md) › Visual Diffusion and Restoration › Diffusion Models for Inverse Problems

## Summary
AID introduces a reusable guidance module for image inpainting that leverages a fixed pretrained diffusion backbone, achieving better quality-speed trade-offs with minimal trainable overhead.

## Explained to a 5-year-old
Sometimes pictures have holes where parts are missing. We want to fill those missing parts so the picture looks whole again. There is a computer program that can draw pictures from noise, called a diffusion model. Using this program for each picture can take a lot of time and computer power. So we made a small helper that learns how to guide the big picture program once and then can be used many times. This helper works like a quick hint that tells the big program what to draw in the missing spots.

## Explained to a 5-year-old, longer
When we look at a picture, sometimes some parts are hidden or missing. We want to fill those missing parts so the picture looks whole again. There is a computer program that can create pictures from noise, called a diffusion model. Using this program for each picture can take a lot of time and computer power. So researchers wanted a faster way that could work for many pictures without starting over each time. They came up with a small guide that learns how to help the big picture program. This guide is trained once on many examples and then can be reused. When a new picture has missing parts, the guide tells the big program what to draw. The guide works like a quick hint that speeds up the drawing process. Because the guide is small, it needs very little extra computer memory. This method keeps the pictures looking good while being much faster. It also works for many different kinds of missing parts and different kinds of pictures.

## For a technical reader
The paper keeps a pretrained diffusion model fixed and adds a lightweight guidance module that is trained once offline. This guidance module learns a deterministic field that directs the diffusion process for inpainting, using a supervised terminal loss. An auxiliary Gaussian formulation is introduced to make the high-dimensional guidance problem tractable, and a proof shows that solving it recovers the optimal deterministic field. The resulting continuous-time actor-critic algorithm updates the guidance module in a data-driven manner without per-image optimization. Empirically, the approach improves the quality-speed trade-off on standard datasets (AFHQv2, FFHQ, ImageNet) while adding less than 1% trainable parameters.

## Problem
Image inpainting with diffusion models often requires either training task-specific models or adapting a pretrained model for each masked image, which is computationally expensive and not scalable. This paper addresses the need for a more efficient, reusable solution that can handle many inpainting tasks without per-instance optimization.

## Method
The approach keeps a pretrained diffusion backbone fixed, trains a small guidance module offline using a deterministic guidance formulation with a supervised terminal objective, and leverages an auxiliary Gaussian formulation to enable learning in high dimensions, leading to a continuous-time actor-critic algorithm.

## Results
The approach improves the quality-speed trade-off over strong baselines across multiple mask types while adding less than one percent trainable parameters.

## Contributions
A reusable guidance module for amortized inpainting, a deterministic guidance formulation with an auxiliary Gaussian bridge, and a continuous-time actor-critic learning algorithm that yields better quality-speed performance with minimal overhead.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152907)
