Goal Conditioned Reinforcement Learning for Photo Finishing Tuning

Photo finishing tuning aims to automate the manual tuning process of the photo finishing pipeline, like Adobe Lightroom or Darktable. Previous works either use zeroth-order optimization, which is slow when the set of parameters increases, or rely on a differentiable proxy of the target finishing pipeline, which is hard to train. To overcome these challenges, we propose a novel goal-conditioned reinforcement learning framework for efficiently tuning parameters using a goal image as a condition. Unlike previous approaches, our tuning framework does not rely on any proxy and treats the photo finishing pipeline as a black box. Utilizing a trained reinforcement learning policy, it can efficiently find the desired set of parameters within just 10 queries, while optimization based approaches normally take 200 queries. Furthermore, our architecture utilizes a goal image to guide the iterative tuning of pipeline parameters, allowing for flexible conditioning on pixel-aligned target images, style images, or any other visually representable goals. We conduct detailed experiments on photo finishing tuning and photo stylization tuning tasks, demonstrating the advantages of our method. Project website: https://openimaginglab.github.io/RLPixTuner/.

Paper

References (37)

Scroll for more · 25 remaining

Similar papers

Peer review

Reviewer WirW6/10 · confidence 3/52024-07-09

Summary

This paper proposes a goal-conditioned reinforcement learning framework for photo finishing tuning. They introduce a novel state representation and treat the image processing pipeline as a black box, avoiding the need for differentiable proxies. The method can efficiently tune parameters to match various goals, including pixel-aligned target images and style images.

Strengths

1. The paper is well-written and easy to follow, clearly explaining the goal-conditioned reinforcement learning approach for photo finishing tuning. 2. The visualization in Figure 1 effectively demonstrates the superiority of the proposed method compared to existing approaches, showing rapid convergence and high-quality results.

Weaknesses

1. Compared to search-based methods, this proposed RL-based framework may not generalize well to unseen datasets. 2. The efficiency comparison in Table 2 may not be entirely fair. While the CMAES method runs on CPUs as required, the paper doesn't explore potential speed-ups through multi-processing.

Questions

Is the search-based method (CMAES) run on a single CPU core to obtain the inference time?

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

2

Limitations

The paper's proposed method may require training a new model for each new incoming dataset. This limitation could potentially impact the framework's adaptability and efficiency when applied to diverse or frequently changing data sources.

Authorsrebuttal2024-08-12

Dear Reviewer WirW, In our rebuttal, we test our model on an unseen dataset, HDR+. Results demonstrate that our method generalizes well to unseen datasets, outperforming all baselines by a large margin. We also explained that the CMAES baseline is implemented with a multi-core CPU with parallel acceleration. We want to follow up to see if our responses address your concerns. We would be very grateful to hear additional feedback from you and will provide further clarification if needed. Thank you again for your time and effort.

Reviewer kK875/10 · confidence 4/52024-07-12

Summary

This paper presents a method by which RL is used to drive the optimization of ISP hyperparameters for two tasks: (1) recovering photo finishing parameters and (2) mimicking reference style photo characteristics.

Strengths

Clearly written. Effective application of RL to photo finishing and stylization. Quantitative evaluation showing substantially improved results on photo finishing in terms of quality, number of queries, and run time. User study on photo stylization task. Ablation study on state representations.

Weaknesses

I'm a little skeptical of whether the baselines for [26] and [27] were implemented correctly. What I don't really understand is that [26] does not provide code, [27] does provide code, but there's no mention as to whether they used the code from [27] and why the errors in the two methods look similar (almost all examples have a hue shift in a seemingly weird direction). I also don't see the terms "monolithic proxy" or "cascaded proxy" in either of these two references. I think these details at least need clarification for reproducibility. I don't really understand how CMAES was implemented. The method is cited as being from [9][18], but then the appendix states that it was implemented from [26] using pymoo. Some examples like the green image in Figure 4 make me skeptical that this baseline was implemented correctly.

Questions

Can the authors provide full details on how the baselines were implemented? For me, acceptance is hinges on whether I can be convinced that the baselines were implemented correctly and are indeed that bad.

Rating

5

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

seems fine

Authorsrebuttal2024-08-12

Dear Reviewer kK87, In our rebuttal, we address the implementation details of three baselines, explain the code used, and clarify terms in the paper, along with citations of CMAES (`Q1`). We also point out that certain behaviors of the baselines (such as the similar hue shift and green image in Figure 4) are due to the inherent flaws of the baselines (`Q2` `Q3`). Additionally, we provide more detailed experiments of the baselines to prove the correctness of our reproduction (`Q4`). We want to follow up to see if our responses address your concerns. We would be very grateful to hear additional feedback from you and will provide further clarification if needed. Thank you again for your time and effort.

Reviewer kK872024-08-14

The rebuttal and implementation details are sufficient. I will raise my score to borderline accept.

Reviewer syDC4/10 · confidence 4/52024-07-13

Summary

Proposed Goal-Conditioned Reinforcement Learning for Photo Finishing Tuning. Specifically, the authors introduce a novel goal-conditioned reinforcement learning framework for parameter tuning in photo processing pipelines. Unlike existing methods, the proposed approach operates without relying on proxies and treats the pipeline as a black box. By leveraging a trained RL policy, it efficiently identifies optimal parameters in just 10 queries, contrasting with 500 queries typically required by zeroth-order methods. The proposed framework utilizes a goal image to guide iterative parameter tuning, allowing adaptation to diverse target images and styles. Experiments on photo finishing and stylization tasks validate the effectiveness and versatility of the proposed approach.

Strengths

The paper is well written. It is easy to follow. The proposed method is well-motivated. The proposed method seems intuitive and effective for photo-finishing tuning tasks. Empirical evaluations on image-based datasets show the efficacy of the proposed method.

Weaknesses

The motivations behind some algorithmic choices are not clear. Additional ablation studies would enhance the persuasiveness of the findings. It would be interesting to see the performance of the proposed method on other datasets.

Questions

(1) Why TD3? why not any other off-policy RL algorithm? Are there any specific reasons behind this choice? (2) Enhancing the paper with more ablation studies would elevate its quality. For instance, exploring the impact of RL versus a greedy algorithm on performance would provide valuable insights.

Rating

4

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

Yes, the authors adequately addressed the limitations.

Authorsrebuttal2024-08-12

Dear Reviewer syDC, In our rebuttal, we explain the reason for choosing TD3 and include further ablation studies to show that the choice of RL algorithm does not significantly impact performance. We also conduct more ablation over the greedy algorithm as suggested by the reviewer. Additionally, we test our method on the HDR+ dataset. Results demonstrate that our method generalizes well to unseen datasets. We want to follow up to see if our responses address your concerns. We would be very grateful to hear additional feedback from you and will provide further clarification if needed. Thank you again for your time and effort.

Authorsrebuttal2024-08-14

Dear Reviewer syDC, Thank you for your reply. We would like to further discuss the questions with you below: ### Q1. why TD3 performs better In our task, the RL algorithm is only a tool for optimizing the policy network. We analyze why TD3 performs better as follows: TD3 is an off-policy RL algorithm with a deterministic policy. The deterministic policy allows it to explore the entire action space, including actions near the boundary, which is crucial for recovering boundary ISP parameters in our photo finishing task. TD3 also employs tricks like target policy smoothing and delayed policy updates to enhance robustness. In our task, actions like significantly brightening an image can cause large changes in the reward function, so these robustness tricks are crucial to the stability of the RL algorithm. In contrast, SAC uses a stochastic policy, sampling actions from a Gaussian distribution, which reduces the likelihood of exploring boundary actions, impacting performance. PPO also faces this issue with its stochastic policy. Both SAC and PPO also lack robustness tricks like target policy smoothing. Moreover, PPO is an on-policy algorithm, making it less sample-efficient in our complex photo finishing environment, potentially leading to suboptimal results. | | deterministic policy | robustness tricks | off-policy | | ---- | -------------------- | ----------------- | ---------- | | TD3 | ✔ | ✔ | ✔ | | SAC | ✗ | ✗ | ✔ | | PPO | ✗ | ✗ | ✗ | These differences explain the variation in performance, but the effect of the RL algorithm is still minor compared to state representation. As shown in the first table of the rebuttal, TD3, SAC, and PPO all yield a PSNR of around 37 **with state representation**, whereas TD3 without state representation achieves only 32.17. ### Q2. multiple seeds We set the random seed to 1 in all our experiments in the paper and the rebuttal, ensuring fair comparison. In our main comparisons with all baselines, our method outperforms them by a large margin (over 4 dB in PSNR). Even in the ablation study over different RL algorithms, TD3 still outperforms SAC by 1.16 dB in PSNR. As discussed earlier, the RL algorithm is just a tool within our framework, and we are confident that we have selected the RL algorithm that best fits our task. Additionally, we plan to include the average scores over multiple seeds in the camera-ready version of this paper. ### Q3. greedy tuning performs well & stronger baseline with conditioning **There are no stronger baselines available.** We followed the setup from [27] for baselines in the photo finishing task. We compared our method to existing work in the field of photo finishing tuning, including CMAES [18] and proxy-based methods [26, 27]. Currently, there are no stronger baselines for the photo finishing tuning task. **Search-based methods (Greedy & CMAES) perform well because they optimize over more iterations.** Both the greedy tuning algorithm and CMAES are search-based methods. The search-based methods, including the greedy algorithm added in the rebuttal, only performs well when using 200 searching iterations, while our method can achieve better results with only 10 iterations. The main advantage of our RL method is its fast convergence speed, as shown in Table 2 in our paper. **Conditioning is not possible for greedy algorithm and is part of our contribution.** Traditional search-based methods, including greedy algorithms, are driven purely by the loss function's output relative to the parameters being adjusted. These methods lack the ability to condition on complex features like the characteristics of the input image, the target image, or prior processing operations. Such conditioning requires an understanding capability and the ability to generalize from past experiences, which is beyond the capabilities of traditional search-based algorithms. Developing a novel search algorithm conditioned on these complex characteristics is one of our contributions. Our proposed state representation encodes information about the input image, target image, and prior image processing operations. The policy network can then leverage this information to make decisions that are conditioned on these inputs, which leads to more efficient and effective optimization. ### Q4. why the proposed method generalizes well We have analyzed why our method generalizes better in Q1 (cross-dataset generalization) of the **To All** section in our rebuttal.

Reviewer ASBs5/10 · confidence 2/52024-07-15

Summary

This paper applies goal-conditioned reinforcement learning (RL) to photo finishing tuning. With only 10 queries, it demonstrates that goal-conditioned RL can achieve better performance than zeroth-order approaches that require 500 queries. Additionally, this method is non-differentiable, which might make it more suitable for commercial scenarios. Experiments show that this work can achieve better performance than previous efforts.

Strengths

+ The first great application to adapt goal-conditioned RL to the photo finishing tuning task. + A novel design for the photo finishing state representation. + Achieved good performance on the evaluation benchmark.

Weaknesses

- Some details are missing: The methods used in this work were trained on the training set, but it is unknown whether the compared methods also underwent the training stage. - More evaluation on additional datasets is preferred.

Questions

Please refer to the weakness section.

Rating

5

Confidence

2

Soundness

2

Presentation

3

Contribution

3

Limitations

Please refer to the weakness section.

Authorsrebuttal2024-08-12

Dear Reviewer ASBs, In our rebuttal, we explain whether each baseline requires training. We also provide more evaluation on the HDR+ dataset. Results demonstrate that our method generalizes well to unseen datasets, outperforming all baselines by a large margin. We want to follow up to see if our responses address your concerns. We would be very grateful to hear additional feedback from you and will provide further clarification if needed. Thank you again for your time and effort.

Reviewer syDC2024-08-13

I appreciate the authors' response and the additional results provided in the rebuttal. However, I remain unconvinced by the results presented in Table 1, which actually raise more concerns. 1. While I agree with the authors that state representation is crucial, the results showing variations with different RL algorithms suggest that the choice of RL algorithm is also important. It is unclear why TD3 performs better than the others. A stronger justification for the superiority of TD3 would be valuable.
 2. In RL experiments, it's essential to evaluate each method across multiple seeds since results can vary significantly. The table does not provide enough information to determine the best method conclusively. Reporting average results across multiple random seeds would be beneficial.
 3. The second table suggests that a naive greedy tuning algorithm performs well, though not as well as the RL-based method. It would be interesting to explore the possibility of developing a greedy tuning algorithm conditioned on the input image, target image, or prior image processing operations as a baseline. 4. Although the authors have added more ablation studies in the rebuttal, they remain insufficient. 5. While the authors have empirically demonstrated the method's generalization across different datasets, a detailed discussion on why the proposed method has superior generalization capability is necessary. In summary, the problem is intriguing, and the proposed method appears effective, but it requires more in-depth analysis, additional ablation studies, and comparisons against stronger baselines to validate its effectiveness. Consequently, I have updated my score to borderline reject.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC