Manuscript Offprint

arXiv:2609.35289

Domain-adaptive Zero-Shot Image Enhancement via Locality-Constrained Diffusion Guidance

Theresa Neubauer, Dimitrios Lenis, Astrid Berg, Maria Wimmer, Gaia Romana De Paolis, Philip Matthias Winter, David Major, Johannes Novotny, Ariharasudhan Muthusami, Katja Bühler

Abstract

Denoising Diffusion Probabilistic Models have shown remarkable performance in unconditional image generation. In order to generate images with desired semantics, recent works have restricted the solution space by using guidance constraints in the diffusion sampling process.

However, for image enhancement across different domains, these methods struggle to balance two main requirements: looking realistic in the target domain (photorealistic images) and preserving relevant features of the source domain, e.g., low-quality renderings or art paintings. Here, small local changes can alter the fidelity of the image completely, while large changes in other regions might be insignificant.

We introduce LocDiff, a locality-constrained guidance method for image enhancement, which serves as a zero-shot extension to pre-trained diffusion models, ensuring the preservation of critical features during domain adaptation. In this way, we retain important local features, while allowing less critical regions to remain unconstrained and not interfere with the guidance process for relevant regions. We evaluate our method on two different domain-shift tasks: For art-to-photo translation, we apply the method in a fully zero-shot setting, preserving facial identity from paintings while generating photorealistic details. For enhancing low-quality fetal ultrasound renderings, we demonstrate zero-shot inference with auxiliary prior alignment. Here, the objective is to artificially add high-resolution characteristics.

*Accepted manuscript. The final version is published in Computers & Graphics and available at https://doi.org/10.1016/j.cag.2026.104607

© 2026. This manuscript version is made available under the CC BY-NC-ND 4.0 license.

and produce photorealistic ultrasound renderings, a target domain for which no ground truth distribution exists. Our experimental results demonstrate that LocDiff achieves favorable realism-faithfulness trade-offs compared to state-of-the-art methods, enabling controllable cross-domain enhancement.

Keywords: Controllable Image Generation, Face Image Enhancement, Low-Quality Image Restoration, Diffusion Models, Generative AI, Fetal Ultrasound, Art Painting

Ultrasound Rendering

Figure

LocDiff (Ours)

w/o LocDiff

Art Painting

LocDiff (eyes, mouth)

LocDiff (mouth)

LocDiff (eyes)

Figure 1: Our proposed locality-constrained guidance method named LocDiff controls the generation process of diffusion models with region-adaptive conditions, allowing the user fine-grained control of image enhancement, even under domain shifts. Left: We enhance pre-trained diffusion models with LocDiff to preserve facial characteristics of low-quality fetal ultrasound renderings. Right: Locality-constrained guidance to enhance face parts of art paintings with different strengths (constrained face parts in brackets).

1. Introduction

Deep learning techniques have revolutionized image generation, opening up new ways of creative expression to the general public without the need for technical expertise (Stable Diffusion [1], DALL-E 2 [2]). While these tools often generate content from text prompts describing the desired outcome, there is also a strong need for enhancement of existing images, made possible through techniques from inpainting and editing to super-resolution [3, 4]. Current Generative Adversarial Networks (GAN) and diffusion-based methods are producing images that appear increasingly realistic (realism) [1]. However, for successful image enhancement of a source image, it is essential that resulting images preserve the distinctive features of the source (faithfulness) [4], like structural and color details. Existing approaches for photo-realistic image enhancement often struggle to meet these requirements simultaneously [5, 6], with methods trading off between generating realistic details and preserving source identity. GAN-based methods such as conditional GANs and GAN inversion methods offer limited control to preserve source-domain specific semantics [7, 8]. Additionally, they lack robustness when exposed to domain shifts, necessitating retraining on the new domain [9, 10, 11].

Recent advances in diffusion-based zero-shot image generation leverage the generative prior of pre-trained diffusion models with additional guidance, enabling finer control of the generation process without the need for retraining [12, 13]. However, these methods primarily prove effective for inputs that align with the domain of the trained diffusion prior, such as denoising blurred face images originating from the high-resolution portrait domain [12], while neglecting input images exhibiting significant domain shifts.

For image enhancement, a low-quality input image is provided, with the objective to enhance it with high-quality visual features. In contrast to the regular diffusion process, starting from random noise, the low-quality image is introduced at an intermediate sampling step with noise levels corresponding to this step. This process makes models robust to various types of degradation and to some extent acts as domain adaptation [14]. However, images that exhibit significant distribution shifts from the diffusion prior, which is in most cases the photo-realistic image domain, typically require an increased number of diffusion steps to achieve high-resolution features, as higher noise levels are necessary to align the input image with the learned distribution. These higher noise levels can compromise faithfulness, leading to weaker correspondence of fine details and diminished preservation of crucial structures, such as faces [13]. Therefore, it is essential to implement guidance mechanisms that preserve the underlying structure as accurately as possible while producing a realistic natural image.

We propose a diffusion guidance mechanism for domain-adaptive zero-shot image enhancement on unseen target domains. Following [15, 16], we define zero-shot learning as inference on target domains that remain entirely unobserved during training, crucially without any access to domain-specific samples. We use domain-adaptive to describe adjusting a model's implicit prior under this zero-shot constraint. While the proposed guidance operates without any retraining of the diffusion model, we show that under strong semantic mismatch (fetal ultrasound renderings), performance can be sub-stantially improved through an optional prior-alignment step using auxiliary real-image datasets. Importantly, this alignment step does not involve any target-domain data, and inference on the target domain remains zero-shot.

In this paper, we propose LocDiff, a method to balance realism and faithfulness requirements of image generation methods, particularly under domain shifts. Unlike existing zero-shot image enhancement techniques that rely on guidance applied uniformly across the entire image, we address domain shift tasks by introducing locality-constrained guidance. This approach enables region-specific flexibility, allowing for diverse conditioning methods and varying guidance strengths to be applied across different image areas. In this way, we can ensure that important local features are preserved, while allowing less critical regions, such as the background, to remain unconstrained and not interfere with the guidance process for other relevant regions.

Contributions:

  • We introduce LocDiff, a novel locality-constrained guidance method. Through utilizing flexible conditioning regions and an adaptive sampling schedule for individual image regions, our method acts as a zero-shot extension to the reverse diffusion process, able to selectively preserve critical details during domain adaptation from the input to the diffusion prior domain.

  • Our ablation results indicate that we can precisely target specific image regions by independently modulating the guidance for this region in the reversed diffusion process.

  • We demonstrate the effectiveness of LocDiff across distinct domains: 1) art-to-photo and 2) rendering-to-photo. We evaluate LocDiff using image restoration, where the aim is to preserve the facial identity and relevant features of the source domain, while at the same time adding high-frequency details of the photorealistic domain. Our experimental results demonstrate that LocDiff performs competitively with state-of-the-art methods on art-to-photo and rendering-to-photo tasks, achieving effective realism-faithfulness trade-offs on both art painting and ultrasound rendering datasets.

  • LocDiff supports both fully zero-shot scenarios (art-to-photo without fine-tuning) and zero-shot inference with auxiliary prior alignment (ultrasound task with semantic space alignment), ensuring flexibility across domains without requiring target-domain training data.

References (61)