DiffRetouch: Using Diffusion to Retouch on the Shoulder of Experts

Zheng-Peng Duan, Jiawei Zhang, Zheng Lin, Xin Jin, Xundong Wang, Dongqing Zou, Chun-Le Guo, Chongyi Li

Abstract

Image retouching aims to enhance the visual quality of photos. Considering the different aesthetic preferences of users, the target of retouching is subjective. However, current retouching methods mostly adopt deterministic models, which not only neglects the style diversity in the expert-retouched results and tends to learn an average style during training, but also lacks sample diversity during inference. In this paper, we propose a diffusion-based method, named DiffRetouch. Thanks to the excellent distribution modeling ability of diffusion, our method can capture the complex fine-retouched distribution covering various visual-pleasing styles in the training data. Moreover, four image attributes are made adjustable to provide a user-friendly editing mechanism. By adjusting these attributes in specified ranges, users are allowed to customize preferred styles within the learned fine-retouched distribution. Additionally, the affine bilateral grid and contrastive learning scheme are introduced to handle the problem of texture distortion and control insensitivity respectively. Extensive experiments have demonstrated the superior performance of our method on visually appealing and sample diversity.

Introduction

Image retouching is a highly subjective task. What one professional photographer considers a "perfect" edit, another might find over-saturated or too dark. Most existing deep learning models for retouching are deterministic: they attempt to learn a single, direct mapping from a low-quality input to a target image. This approach leads to several critical issues. First, models often suffer from "regression to the mean," where they learn an average style that lacks the distinct character of individual expert edits. Second, these models lack diversity, providing users with only one output and no way to explore different aesthetic styles. Finally, methods that do support multiple styles often require ambiguous "style reference" images, which is a burdensome requirement for typical users.

DiffRetouch addresses these problems by treating retouching as a distribution modeling task rather than a point-to-point mapping. By leveraging the generative power of diffusion models, the framework captures the full manifold of expert-retouched styles, allowing for both high-quality generation and intuitive user control.

Methodology

The DiffRetouch framework builds upon the latent diffusion architecture while introducing structural constraints to preserve photographic integrity and ensure control sensitivity.

1. Diffusion-based Distribution Modeling

Instead of learning a single mapping, DiffRetouch models the entire distribution of expert-retouched images. This allows the model to capture the "intrinsic diversity" of professional edits. By sampling from this distribution, the model can generate various visually pleasing versions of the same input image.

2. Affine Bilateral Grid for Texture Preservation

A common failure mode when applying generative models like Stable Diffusion to retouching is texture distortion. The encoding and decoding process in latent space can lose fine-grained photographic details. To solve this, the Denoising U-Net in DiffRetouch predicts an affine bilateral grid alongside the noise. This grid contains local color transformation matrices. As shown in the pipeline below, this grid is applied to the original high-resolution image via a "Slice & Apply" operation. This ensures that the retouching modifies the colors and tones while perfectly preserving the original texture, sharpness, and noise patterns.

The DiffRetouch pipeline: The Denoising U-Net predicts both noise and an affine bilateral grid (A) to transform the original image (R) into the final retouched output (D0).

3. User-Adjustable Attributes & Contrastive Learning

The model is conditioned on a vector $c$ representing four key attributes: colorfulness, contrast, color temperature, and brightness. To ensure the model is sensitive to these "knobs," the authors introduced a contrastive learning scheme ($\mathcal{L}_{cl}$). By training with triplets—a regular edit, a positive sample (same condition, different noise), and a negative sample (opposite condition)—the model is forced to be sensitive to the specific attribute coefficients, allowing users to fine-tune the output predictably.

Experiments and Results

The model was evaluated on two benchmark datasets: MIT-Adobe FiveK (5,000 images retouched by five experts) and PPR10K (11,161 portrait photos).

Quantitative Performance

DiffRetouch achieves state-of-the-art (SOTA) performance across multiple metrics. On the MIT-Adobe FiveK dataset, it achieved an average PSNR of 25.20 and SSIM of 0.946, outperforming previous multi-style methods like StarEnhancer (24.09 PSNR) and TSFlow (23.54 PSNR). Furthermore, it achieved the lowest FID (8.957), indicating its outputs are the most representative of real expert edits.

Distribution Analysis

t-SNE analysis of the learned space confirms that DiffRetouch successfully captures the fine-retouched distribution. As shown in the visualization, ground truth expert edits cluster within the distribution modeled by the framework. By adjusting the attribute coefficients within specified ranges (e.g., $[0, 1]$), users can navigate this space to find their preferred aesthetic style.

t-SNE analysis showing how the learned distribution covers various expert styles. Adjusting attribute coefficients allows users to move within this visually-pleasing manifold.

Conclusion

DiffRetouch demonstrates that diffusion models are exceptionally well-suited for subjective tasks like image retouching. By combining distribution modeling with an affine bilateral grid, the method provides a unique balance of aesthetic diversity and structural fidelity. While the current model is highly effective, future work may explore expanding the set of adjustable attributes and improving inference speed to make the framework more accessible for real-time mobile applications.

Summary updated

BibTeX
@inproceedings{duan2025diffretouch,
  author = {Zheng-Peng Duan and Jiawei Zhang and Zheng Lin and Xin Jin and Xundong Wang and Dongqing Zou and Chun-Le Guo and Chongyi Li},
  title = {{DiffRetouch: Using Diffusion to Retouch on the Shoulder of Experts}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=TLHdilUdjm},
}
Figure