arXiv:2609.00862cs.CVSep 2026

Manuscript Offprint

arXiv:2609.00862

Training-Free Inpainting Across Domains with a Frozen Text-to-Image Diffusion Model

Zhenhuan Wang, Fengyi Yuan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We show that a frozen generic text-to-image diffusion model can perform conditional inpainting across three evaluated natural-image domains with one fixed controller configuration, without inpainting-specific weight training, dataset-specific weight adaptation, or learned inpainting-specific conditioning channels. Step-PI augments known-region projection with boundary–interior latent feedback, persistent PI state, and a predefined four-field release schedule that modulates controller signals along the reverse trajectory. Developed only on Main35-disjoint CelebA-HQ pilots, the controller transfers unchanged to AFHQ and Places2. Across two field-identical comparisons on the same 3,500 cases, adding persistent state and replacing uniform release with the predefined schedule each improve all 15 dataset-metric cells; 95% bootstrap intervals exclude zero for all five metrics in both comparisons. In descriptive native-route comparisons, Step-PI leads LanPaint and PILOT—the closest evaluated training-free baselines using vanilla SD1.5—on all five equal-dataset macro metrics. Inpainting-trained systems retain the absolute metric leads but rely on substantial inpainting-specific offline optimization. Our method provides a complementary approach for repurposing a frozen generic text-to-image model for cross-domain inpainting through test-time latent control.

1. Introduction

Modern diffusion inpainters achieve strong quality through inpainting-specific weights or specialized conditioning interfaces [12, 16, 22, 31]. Generic text-to-image models lack these inpainting-specific resources. Nevertheless, we show that a frozen generic text-to-image model can be repurposed for conditional inpainting through test-time latent control, without weight updates or learned inpainting-specific conditioning channels.

Each case supplies an observed image, a binary mask, and a user-provided text condition fixed before inference.

AFHQ

CelebA-HQ

Places2

Masked input (violet=unknown)

Figure

Ours (Step-PI)

Figure 1. Three-domain conditional inpainting with frozen SD1.5. The same configuration-locked Step-PI controller is applied to an outcome-independent random sample spanning AFHQ, CelebA-HQ, and Places2, without weight updates or learned inpainting-specific conditioning channels. Text conditions are fixed before inference. Opaque violet denotes unknown pixels, and the mint contour is display-only.

Known-region projection anchors observed context on the latent grid, and final RGB compositing restores known pixels exactly; neither constrains the generated region. Its boundary requires local continuity, whereas its interior requires longer-range contextual and structural coherence, and the useful correction balance changes over the reverse trajectory. This motivates boundary–interior feedback, persistent state, and a predefined release schedule.

We introduce Step-PI, a training-free closed-loop controller that operates during deterministic DDIM sampling with a frozen vanilla SD1.5 text-to-image backbone. Boundary and interior objectives produce current-latent feedback signals, exponentially discounted states retain directional history, and the four fields of a predefined release schedule modulate already-computed controller signals before shared safeguards. The backbone, objectives, gains, state update, and release schedule are fixed across all three domains. Text conditions are fixed within controller comparisons; a separate matched prompt-presence intervention changes only the positive text condition. Field-identical P-

Guidance → PI and PI → Step-PI comparisons isolate persistent state and the complete predefined release schedule, respectively.

Evidence follows three layers. First, parameters developed on Main35-disjoint CelebA-HQ pilots transfer unchanged to AFHQ and Places2, and a fixed prompt-presence intervention shows responsiveness across all three domains. Second, the two field-identical additions improve all 15 dataset–metric cells. A protocol-stratified random-subset audit, conducted without inspecting outputs, probes conditional schedule sensitivity within the predefined schedule, while separate five-seed audits test the persistent-state and joint-release additions across paired stochastic inference initializations. Third, under descriptive comparisons using audited native routes, Step-PI records better values than the two closest evaluated vanilla-SD1.5 training-free baselines on all five equal-dataset macro metrics. Inpainting-trained systems retain the absolute metric leads but require substantial offline optimization to acquire inpainting-specific capability. Step-PI avoids this training and any dataset-specific weight adaptation, although it shifts substantial computation to inference.

Our contributions are:

• three-domain, configuration-locked evidence that one frozen generic text-to-image prior supports conditional inpainting on two transfer-only targets without learned inpainting-specific channels;

• Step-PI, a PI-structured latent controller that combines boundary–interior current feedback, discounted trajectory memory, and a predefined release schedule; and

• a controlled evaluation that uses matched comparisons to isolate the effects of persistent state and release scheduling, tests robustness across paired inference seeds, and compares Step-PI with external baselines under each method’s native inference pipeline.

References (34)