Content-Adaptive Image Retouching Guided by Attribute-Based Text Representation

Hancheng Zhu, Xinyu Liu, Rui Yao, Kunyang Sun, Leida Li, Abdulmotaleb El-SaddikarXiv 2025 · DOI

Abstract

Automated image retouching often struggles to replicate the nuanced, localized adjustments made by professional editors. Traditional methods typically rely on global transformations, which apply identical color mappings to pixels with the same values regardless of their spatial context. This paper presents CA-ATP, a content-adaptive framework that integrates spatial weight maps with text-based style guidance. By utilizing an Attribute Text Prediction module to translate aesthetic preferences into natural language prompts, CA-ATP achieves superior color diversity and visual fidelity, effectively mimicking expert-level retouching.

Introduction: The Monolithic Mapping Problem

Image retouching is a sophisticated process that balances technical accuracy with artistic expression. Most current deep learning models for automated retouching utilize global transformations, such as 3D Lookup Tables (3D LUTs) or global tone curves. These are "monolithic" mappings: if two pixels share the same RGB value, they are transformed identically, irrespective of their semantic role in the image.

Professional photographers, however, often treat similar colors differently based on context—for example, brightening a subject's face while deepening background shadows. Monolithic mappings are "non-injective," frequently reducing the total number of unique colors and resulting in "flat" images. Furthermore, existing models often represent user preferences through abstract, unintuitive style vectors.

Methodology: Dual-Branch Architecture

The CA-ATP framework addresses these issues through a dual-branch architecture that separates the transformation logic from spatial application.

1. Content-Adaptive Curve Mapping

The model employs two distinct branches to generate the final retouched image:

  • The Curve Branch: This branch uses a multimodal encoder (based on CLIP) to process both the input image and a text description of the desired style. It outputs $N$ sets of basis curves for each RGB channel.
  • The Weight Branch: A U-Net architecture, enhanced with Restormer blocks for global context, generates $N$ pixel-wise weight maps.
  • Fusion: The final output is a weighted summation of the results from the $N$ basis curves. This allows the model to apply different transformations to the same color value depending on its spatial location (e.g., distinguishing between a blue sky and a blue garment).

2. Attribute Text Prediction (ATP) Module

To provide a user-friendly interface, the researchers developed the ATP module. It quantifies image styles into six numerical attributes: mean brightness, mean saturation, saturation standard deviation (SD), brightness SD, color richness, and contrast. These attributes are discretized and mapped to a text template (e.g., "Set the brightness to high, make the colors vibrant..."). An MLP-based predictor estimates these attributes from the input image, generating a text prompt that guides the main model.

Key Insights and Results

A primary innovation of this work is the use of the Unique Color Count metric as a proxy for color diversity. While monolithic models tend to reduce the number of unique colors, CA-ATP significantly expands them, aligning closely with expert-retouched images.

Comparison of color distributions and unique color counts across different methods. (a) Original image, (b) Monolithic mapping, (c) Expert retouched, and (d) Proposed CA-ATP method.

Quantitative Performance

On the MIT5K-UPE benchmark, CA-ATP achieved a PSNR of 26.23 dB, outperforming previous state-of-the-art models like BasicEnhancer (25.47 dB). In ablation studies, the full content-adaptive model produced approximately 70,452 unique colors, nearly matching the expert target of ~68,000, whereas the monolithic variant produced only ~11,000.

Spatial Disentanglement

Visualization of the weight maps indicates that the model successfully "segments" images into semantic regions—such as skin, sky, or foliage—without explicit labels. This enables localized color adjustments that preserve detail and enhance visual appeal.

Conclusion and Future Work

CA-ATP represents a significant step toward intuitive, content-aware image enhancement. By using text as an interpretable latent space, it offers a more accessible interface for users. However, the model's performance is sensitive to the number of basis curves, and the current text templates are somewhat rigid. Future research may explore the integration of Large Language Models (LLMs) for more flexible, free-form prompting and optimize the architecture for real-time mobile deployment.

Summary updated

BibTeX
@misc{zhu2025content,
  author = {Hancheng Zhu and Xinyu Liu and Rui Yao and Kunyang Sun and Leida Li and Abdulmotaleb El-Saddik},
  title = {{Content-Adaptive Image Retouching Guided by Attribute-Based Text Representation}},
  year = {2025},
  eprint = {2512.09580},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.09580},
}
Figure