RetouchLLM: Training-free Code-based Image Retouching with Vision Language Models

Moon Ye-Bin, Roy Miles, Tae-Hyun Oh, Ismail Elezi, Jiankang Deng · DOI

Introduction

Professional image retouching typically requires significant expertise and time. While deep learning has automated much of this process, existing models often function as "black boxes," requiring massive paired datasets of "before and after" images to learn specific aesthetic styles. These models are often difficult to interpret, hard to control, and struggle with high-resolution images due to memory constraints.

RetouchLLM introduces a training-free, "white-box" framework that leverages the reasoning capabilities of Vision Language Models (VLMs) and Large Language Models (LLMs). By treating retouching as a code generation task, RetouchLLM achieves professional-grade results that are both interpretable and resolution-independent, requiring zero training data to adapt to new styles.

The RetouchLLM Framework

The core of RetouchLLM is an iterative, closed-loop system designed to mimic the workflow of a human editor. The process involves three primary components working in tandem to refine an image toward a target style or natural language instruction.

Overview of the RetouchLLM framework, illustrating the iterative loop between the Visual Critic, Code Generator, and Selection Score module.

1. Visual Critic (VLM)

The Visual Critic acts as the "eyes" of the system. It compares the current state of the source image against a set of style reference images. The VLM analyzes photometric differences across seven key attributes: exposure, contrast, saturation, temperature, highlights, shadows, and texture. To account for the inherent ambiguity in visual assessment, the critic generates multiple candidate descriptions suggesting potential adjustments.

2. Code Generator (LLM)

The suggestions from the Visual Critic are passed to a Code Generator (utilizing models like GPT-4). The LLM translates these natural language descriptions into executable Python code. This code utilizes a predefined library of resolution-independent filters. Because the output is code rather than modified pixels, the adjustments can be applied directly to original high-resolution RAW files without quality loss.

3. Selection Score and Iterative Refinement

Since the system generates multiple candidates at each step, a selection mechanism is required to ensure progress. RetouchLLM uses a CLIP-based scoring system that evaluates the "style distribution" of each candidate against the reference images. By calculating the KL divergence between these distributions, the system selects the candidate that most effectively moves the image toward the target style. This process typically repeats for approximately 10 iterations, allowing for fine-grained, progressive enhancements.

Key Insights

RetouchLLM's success stems from several innovative design choices:

  • Language as a Semantic Bottleneck: By forcing the system to communicate via natural language (e.g., "increase shadows by 20%"), the authors create a "semantic bottleneck." This makes the AI's reasoning transparent and allows human users to intervene or tweak the logic at any step.
  • Multi-Candidate Robustness: Relying on a single VLM prediction can be unreliable. The authors found that generating three candidates and selecting the best one improved the probability of a correct adjustment direction from ~24% to over 71%.
  • Resolution Independence: Traditional neural networks often downsample images to fit in GPU memory. RetouchLLM generates code that can be applied to any resolution, making it ideal for professional photography.

Experimental Results

The framework was evaluated on two industry-standard benchmarks: MIT-Adobe FiveK and PPR10K. Despite being a zero-shot, training-free method, RetouchLLM demonstrated remarkable performance.

Qualitative results showing the progressive improvement of images over multiple retouching iterations compared to the ground truth (GT).

Quantitative Performance

RetouchLLM significantly outperformed existing training-free baselines across metrics such as PSNR, SSIM, and LPIPS. More impressively, it achieved results competitive with state-of-the-art supervised models that were explicitly trained on thousands of paired images. In a user study involving 25 participants, RetouchLLM's outputs were preferred 71% of the time over other baseline methods.

Flexibility and Efficiency

Beyond style-based retouching, the framework easily adapts to direct natural language instructions (e.g., "make the sunset more vibrant"). While the iterative API calls make it slower than single-pass models, it eliminates the need for days of expensive GPU training, allowing for immediate deployment on new datasets or styles.

Conclusion and Future Work

RetouchLLM represents a shift toward interpretable and controllable AI in creative tools. By combining the visual perception of VLMs with the logical reasoning of LLMs, it provides a powerful, training-free alternative to traditional black-box models.

Future work may involve expanding the filter library to include local masking and object-specific adjustments, as well as optimizing inference latency. Ultimately, RetouchLLM points toward a future where AI photo editing is a collaborative, conversational process between the user and a machine that understands the language of photography.

Summary updated

BibTeX
@misc{yebin2025retouchllm,
  author = {Moon Ye-Bin and Roy Miles and Tae-Hyun Oh and Ismail Elezi and Jiankang Deng},
  title = {{RetouchLLM: Training-free Code-based Image Retouching with Vision Language Models}},
  year = {2025},
  eprint = {2510.08054},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.08054},
}
Figure