Source-linked AI summary

Exposure: A White-Box Photo Post-Processing Framework

Yuanming Hu, Hao He, Chenxi Xu, Baoyuan Wang, Stephen Lin

arXiv:1709.09602v2cs.GRcs.CV

TL;DR

The paper addresses automatic photo retouching when paired before-and-after examples of users’ preferred edits are difficult to collect. It learns from unpaired preference photos using differentiable filters, reinforcement learning, and a GAN, while exposing conventional editing steps. Quantitative comparisons and user studies show results consistent with the provided photo set.

  • Problem

    Paired before-and-after retouching data is difficult for users to acquire, while ordinary photographers need help producing appealing edits.

  • Method

    A deep CNN framework models retouching operations as resolution-independent differentiable filters and uses GAN-guided deep reinforcement learning to choose their sequence and parameters from unpaired preference photos.

  • Results

    Quantitative comparisons and user studies show that the system produces retouching results consistent with the provided photo collection.

  • Takeaways & Limitations

    The white-box system provides understandable conventional editing sequences for automatic retouching and can support ordinary users and style analysis.

  • Takeaways & Limitations

    The system is tailored to photo post-processing and cannot perform structural image transformations; low-level denoising may also fall outside its filter framework.

Abstract

from arXiv · show

Retouching can significantly elevate the visual appeal of photos, but many casual photographers lack the expertise to do this well. To address this problem, previous works have proposed automatic retouching systems based on supervised learning from paired training images acquired before and after manual editing. As it is difficult for users to acquire paired images that reflect their retouching preferences, we present in this paper a deep learning approach that is instead trained on unpaired data, namely a set of photographs that exhibits a retouching style the user likes, which is much easier to collect. Our system is formulated using deep convolutional neural networks that learn to apply different retouching operations on an input image. Network training with respect to various types of edits is enabled by modeling these retouching operations in a unified manner as resolution-independent differentiable filters. To apply the filters in a proper sequence and with suitable parameters, we employ a deep reinforcement learning approach that learns to make decisions on what action to take next, given the current state of the image. In contrast to many deep learning systems, ours provides users with an understandable solution in the form of conventional retouching edits, rather than just a "black-box" result. Through quantitative comparisons and user studies, we show that this technique generates retouching results consistent with the provided photo set.

1 INTRODUCTION

The paper introduces a white-box photo-retouching system that learns users’ preferred styles from unpaired photo collections and applies understandable conventional edits. It unifies differentiable filters with reinforcement learning to select editing sequences and parameters.

  • Retouching can improve photographs, but ordinary users often lack the expertise to manipulate images effectively.
  • Users’ preferred styles vary across color, contrast, tone, and semantic image content, motivating learning from appealing photo collections.
  • The system learns a wide range of post-processing operations from unpaired preference photos rather than before-and-after image pairs.
  • Resolution-independent differentiable filters provide a unified, jointly trainable representation of retouching operations.
  • Deep reinforcement learning selects the filter sequence and parameters, guided by a GAN modeling preferences from the photo collection.
  • The white-box network exposes editing steps corresponding to standard retouching operations, and experiments and user studies find results plausibly matching the preference collection.

2 RELATED WORK

Related work includes supervised automatic retouching, deep image-generation and enhancement methods, GAN-based unpaired translation, and transparent editing tools. The paper distinguishes its approach by learning understandable edit sequences and retouching styles from unpaired collections while preserving image content and supporting arbitrary resolutions.

  • Automatic retouching methods commonly learn editing parameters from paired before-and-after images, often using handcrafted image features for individual operations.
  • Deep CNN features encode semantic information that can support context-dependent edits, extending beyond low-level handcrafted image properties.
  • Unlike prior supervised approaches, this system learns a meaningful, reproducible edit sequence from unpaired photos representing a target style.
  • The approach addresses retouching as a one-to-many style-transformation problem rather than mapping each input to one specific target result.
  • Related systems include exemplar retrieval for compatible color and tone, broader colorization and adjustment tools, transparent multi-operation software, and RL-based sequential decision methods.
  • Its conditional GAN predicts content-preserving filter parameters instead of directly generating images, maintaining spatial structure and supporting arbitrary image sizes.

3 THE MODEL

The model treats photo retouching as sequential decision-making: an agent selects operations and parameters from the current image state, receiving rewards tied to image quality.

  • Post-processing as a decision-making sequence: Retouching is modeled as a sequence of editing steps chosen using feedback from intermediate image results.The formulation reflects how human editors adjust operations and parameters while viewing updated images.
  • Post-processing as a decision-making sequence: The framework requires less supervision than approaches trained on expert editing sequences because it learns from a set of retouched photos.The cited comparison contrasts the proposed setup with supervised sequence-learning methods.
  • Post-processing as a decision-making sequence: The reinforcement-learning state space contains the RAW input and intermediate images, while actions are filter operations that transition one image state to another.A stopping state terminates the filter trajectory.
  • Post-processing as a decision-making sequence: The agent maximizes expected discounted rewards over trajectories, with higher-quality image states receiving greater rewards.The objective evaluates the expected return induced by policy π over the input dataset.
  • Post-processing as a decision-making sequence: Each action combines discrete filter selection with continuous filter-parameter decisions, using separate policy components for the two parts.The filter-selection policy samples operations, while the parameter policy generates their values deterministically.

4 FILTER DESIGN

The filter design unifies common retouching operations as differentiable, resolution-independent, and understandable transformations, allowing CNN training while preserving editable operations.

  • Design Principles: Filters must be differentiable so CNN parameters can be optimized by backpropagation through the retouching operations.The framework uses differentiable approximations, including piecewise-linear functions for otherwise unsuitable filters.
  • Design Principles: Resolution-independent filters are estimated on 64 × 64 versions of RAW images and then applied to the original high-resolution images.This separates parameter estimation from full-resolution filter application to reduce computational cost.
  • Design Principles: Filters are designed to represent intuitive operations so users can understand the generated sequence and further adjust its parameters.This design avoids leaving users with an opaque transformation that may be difficult to undo or modify.
  • Filter Details: The system implements standard color and tone changes as pixel-wise mappings from input RGB values to output pixel values.Examples include exposure changes, white balancing, and color-curve adjustment.
  • Filter Details: Color curves are represented as monotonic piecewise-linear functions with differentiable parameters; eight linear segments suffice for typical curves.The representation maps normalized input intensity through parameterized curve points.

5 LEARNING

The system represents retouching with shared CNN-based networks and trains its policies to select filters and parameters through interleaved reinforcement learning. An actor-critic framework, adversarial quality scoring, and fixed-length trajectories support learning meaningful editing sequences.

  • 5.1 Function approximation using DNNs: The training cycle jointly uses deep neural networks for policy, value, and discriminator functions in the retouching process.The policy networks determine actions, the value network supports training, and the discriminator evaluates generated image quality.
  • 5.1 Function approximation using DNNs: All networks share a four-convolution-layer architecture followed by fully connected layers, while their output sizes differ according to their roles.The architecture uses 4 × 4 filters with stride 2, reduces features to 128 outputs, and applies 50% dropout after the first fully connected layer.
  • 5.1 Function approximation using DNNs: Additional constant feature planes provide global image statistics to the discriminator and process-history information to policy and value networks.The discriminator receives average luminance, contrast, and saturation, while policy and value networks receive filter-usage indicators and the elapsed-step count.
  • 5.2 Policy network training: The policy has separate filter-selection and parameter-selection stages, using stochastic policy gradients for discrete filters and deterministic policy gradients for continuous parameters.The two policy components are learned in an interleaved manner.
  • 5.2 Policy network training: The actor-critic framework uses a value network to approximate state values and derives action supervision from the action-value function and temporal-difference error.For filter selection, the action-value can be replaced by the advantage, computed as the temporal-difference error, reducing sample variance.
  • 5.2 Policy network training: The reward combines incremental discriminator-based quality improvement with penalties, while training uses a fixed five-edit trajectory for stability and concise sequences.The discriminator is trained adversarially against the target dataset, and the actor seeks outputs receiving larger discriminator scores.

6 RESULTS

The experiments evaluate unpaired retouching, style learning, generalization, user preference, and high-resolution processing. Results indicate strong perceptual quality, understandable operation sequences, and limitations in structural image transformations.

  • Efficiency and model size: 30ms inference and a model size below 30MB make the resolution-independent filter framework suitable for mobile applications or cameras.The authors suggest real-time retouching in a camera viewfinder.
  • Comparison with baselines: Pix2pix and CycleGAN generated vivid colors but introduced edge distortions and degraded image quality in high-quality post-processing comparisons.These artifacts made them unsuitable for the stated high-quality post-processing task.
  • Generalization: On another set of RAW photos, the model produced promising generalized results despite the small number of training images.The generalization experiment is illustrated in Figure 11.
  • User study: Higher user ratings than Pix2pix and weaker CycleGAN performance were observed in the user study.The study used images around 500 × 333px; higher-resolution comparisons further favored the proposed method.
  • Scope: The system is tailored to photo post-processing and cannot perform structural image transformations.The paper contrasts this scope with Pix2pix and CycleGAN, which can produce such transformations.
  • Reverse engineering black-box filters: The method reveals step-by-step edits and can generate explicit code for reproducing a black-box filter’s estimated operation sequence.The paper presents this capability as useful for advanced users studying photographers’ artistic styles.
  • Style learning: The learned operation sequence varies more for human artists than for the consistent Nashville filter, reflecting multimodal human retouching styles.Sequence consistency provides an indication of how consistent the target image style is.

7 CONCLUDING REMARKS

The framework combines reinforcement learning, GAN-based unpaired training, and differentiable resolution-independent filters for understandable automatic photo post-processing. The authors identify scope, data, and training-stability boundaries while noting opportunities for extension.

  • Framework: The framework combines reinforcement learning, GANs, and differentiable resolution-independent filters to support understandable post-processing from unpaired data.The design supports multiple editing operators on images of arbitrary resolution.
  • Limitations: Low-level filters such as pixel-level denoising may not fit the resolution-independent differentiable-filter framework.Without denoising, boosting brightness can make shadow noise more pronounced.
  • Future extensions: The framework could be extended from global to local operations using spatially varying masks.The paper gives gradient and luminance masks as examples that could be modeled analytically.
  • Data limitations: The retouching experiments use 2 × 10^3 training images, far fewer than the 1.4 × 10^7 images used for ImageNet classification.The authors propose larger RAW-photo datasets and transfer from ImageNet as future work.
  • Training limitations: Stabilizing training requires substantial human labor and expertise in setting hyperparameters for the reinforcement-learning and GAN components.The authors suggest more stable alternatives could simplify training and improve results.

8 FILTER DESIGN DETAILS

The framework represents common retouching operations as differentiable filters, including interpolation-based enhancement, grayscale conversion, and piecewise-linear tone and color curves. These designs provide trainable controls for diverse image adjustments.

  • Basic enhancement filters: Contrast, saturation, and black-and-white filters interpolate between the input image and an enhanced version using a single operation parameter.The formulation expresses the output as pO = (1 − p) · pI + p · Enhanced(pI).
  • Color enhancement: The enhanced color output preserves hue while modifying saturation and value in HSV space.The formulation converts the adjusted HSV channels back to RGB.
  • Black and White: The black-and-white filter constructs an RGB output whose three channels equal the input pixel’s luminance.Luminance is computed using the stated weighted RGB function.
  • Tone curves: Tone curves use one differentiable piecewise-linear curve with segment slopes from 0.5 to 2.0.The slope range permits stronger tone adjustments than the color-curve range.
  • Color curves: Color curves apply separate piecewise-linear mappings to the three channels, with slopes restricted to 0.9–1.1.The bounds reflect the observation that human artists generally avoid sharp color curves.

9 EXPERIMENTAL DETAILS

The experiments use AMT studies, histogram-based evaluation, and high-resolution comparisons across the proposed method, Pix2pix, and CycleGAN. The evaluation also specifies test-set sampling, human-study procedures, and data augmentation for noisy histograms.

  • Dataset partitions: The MIT-Adobe FiveK test set includes 100 randomly selected images used in the AMT user study.The dataset is partitioned into separate training and testing files.
  • Error metrics: Histogram evaluation measures luminance, contrast, and saturation in 32 equal bins over [0, 1].Luminance is mean pixel luminance, contrast is twice luminance variance, and saturation is mean HSL saturation.
  • Error metrics: Cropping 16 patches per image expands 1,000 images into 16,000 patches to reduce histogram measurement noise.The augmentation addresses the average of about 31.25 images per histogram bin.
  • Human performance: Human-performance studies take about three minutes per image, with ten users retouching ten images each without a time limit.The participants are highly educated and aged 20 to 30.
  • Scalability in Resolution: High-resolution comparisons show the proposed method producing the highest-quality images among the method, Pix2pix, and CycleGAN.The comparison is presented in Figures 21–23.
Loading 1709.09602v2…