PromptFix: You Prompt and We Fix the Photo

Diffusion models equipped with language models demonstrate excellent controllability in image generation tasks, allowing image processing to adhere to human instructions. However, the lack of diverse instruction-following data hampers the development of models that effectively recognize and execute user-customized instructions, particularly in low-level tasks. Moreover, the stochastic nature of the diffusion process leads to deficiencies in image generation or editing tasks that require the detailed preservation of the generated images. To address these limitations, we propose PromptFix, a comprehensive framework that enables diffusion models to follow human instructions to perform a wide variety of image-processing tasks. First, we construct a large-scale instruction-following dataset that covers comprehensive image-processing tasks, including low-level tasks, image editing, and object creation. Next, we propose a high-frequency guidance sampling method to explicitly control the denoising process and preserve high-frequency details in unprocessed areas. Finally, we design an auxiliary prompting adapter, utilizing Vision-Language Models (VLMs) to enhance text prompts and improve the model's task generalization. Experimental results show that PromptFix outperforms previous methods in various image-processing tasks. Our proposed model also achieves comparable inference efficiency with these baseline models and exhibits superior zero-shot capabilities in blind restoration and combination tasks. The dataset and code are available at https://www.yongshengyu.com/PromptFix-Page.

Paper

References (85)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer 6nKQ6/10 · confidence 4/52024-07-01

Summary

The paper introduces PromptFix, a novel framework that significantly enhances the capability of diffusion models in following human instructions for a wide range of image-processing tasks. The authors propose a comprehensive multi-modal dataset and further design a frequency-based diffusion model trained on this dataset. Experiments show competitive performance on various restoration tasks.

Strengths

1. The large-scale, instruction-following dataset that covers comprehensive image-processing tasks could be helpful in the field of low-level image processing. 2. Integrating a high-frequency guidance sampling method and an auxiliary prompting adapter shows reasonable problem-solving capability.

Weaknesses

1. While instructions are necessary for users, the types of degradation tasks (such as snow removal and low-light enhancement) are clearly defined. In other words, for images with the same type of degradation (such as foggy images), how to choose different instructions to achieve the best results remains to be clarified. Additionally, it should be considered whether users can use instructions other than the task-specific prompts provided by the authors. 2. The modules used are relatively common. The AuxiliaryPrompt, serving as an information cue derived from the image itself, has been utilized in the literature as referenced in [1,2]. And High-frequency Guidance is also a commonly used method [3,4], albeit in this paper, it is constrained in the form of a loss. Ref: [1] Lin J, Zhang Z, Wei Y, et al. Improving image restoration through removing degradations in textual representations. CVPR 2024. [2] Chiu M T, Zhou Y, Zhang L, et al. Brush2Prompt: Contextual Prompt Generator for Object Inpainting. CVPR 2024. [3] Miao Y, Deng J, Han J. WaveFace: Authentic Face Restoration with Efficient Frequency Recovery. CVPR 2024. [4] Zhao C, Cai W, Dong C, et al. Wavelet-based Fourier information interaction with frequency diffusion adjustment for underwater image restoration. CVPR 2024.

Questions

1. It is important to consider whether the comparative methods have been retrained or fine-tuned on the same dataset. If not, the fairness of the comparison is questionable. 2. In line 205 of the paper, "low-pass operators" might be incorrect; it should probably be "high-pass operators". 3. The test set was randomly selected, and its domain is similar to that of the training set. It is necessary to supplement the comparison with untrained standard datasets. 4. The paper lacks ablation experiments for auxiliary prompts. Additionally, the High-frequency Guidance method lacks numerical metrics and only presents visual results. 5. In Table 1, for the unified restoration task, both PromptIR and AirNet, despite not incorporating instructions, demonstrate good performance, with half of the metrics surpassing those of PromptFix. This seemingly limits the perceived superiority of the proposed method's performance. 6. In line 228, The MGIE[19] was published in ICLR 2024. It has been incorrectly marked in the references.

Rating

6

Confidence

4

Soundness

3

Presentation

3

Contribution

2

Limitations

As shown in the Weaknesses and Questions.

Authorsrebuttal2024-08-13

Thank you sincerely for your engaged and increased score! Your constructive feedback has been instrumental in enhancing the clarity and contribution of our paper. The positive discussions we've had and the recognition of our efforts truly encapsulate the essence of the OpenReview process. Your time and efforts are immensely appreciated.

Reviewer sDoY6/10 · confidence 4/52024-07-05

Summary

This paper introduces PromptFix, a unified model designed to intelligently interpret and execute customized human instructions across a variety of low-level image tasks. To address the issue of spatial information loss in stable diffusion, PromptFix introduces a high-frequency guidance sampling strategy. Additionally, to tackle the degradation adaptation problem, PromptFix incorporates an auxiliary prompt module, providing models with more descriptive text prompts to enhance controllability in image generation.

Strengths

1. The authors construct a comprehensive dataset tailored for low-level image processing tasks. 2. The proposed PromptFix presents a user interactive image processing method, exhibiting superior zero-shot capabilities in blind restoration and hybrid degradation tasks. 3. Both the visual and quantitative results demonstrate the effectiveness of PromptFix. 4. The paper is well-written, with the motivation, method, and experiments clearly explained.

Weaknesses

1. The authors claim that when user-input instructions are discarded, PromptFix occasionally performs text-to-image generation based on the auxiliary prompt rather than image processing tasks. It is recommended that authors provide examples of these failed cases and evaluate whether the generated images can preserve the layout and structure of the input images. 2. There is a concern that PromptFix might learn a mistaken shortcut by memorizing the degradation type of the input image. Therefore, authors are encouraged to demonstrate PromptFix's ability to correctly execute tasks, such as coloring a snowy image while preserving the snow. 3. Authors assert the superior generalization and zero-shot capabilities in blind restoration and combination tasks. Therefore, it is suggested that authors evaluate the model on out-of-distribution and real-world datasets to substantiate these claims.

Questions

The authors claim that the HGS strategy has the potential to introduce spatial information loss. However, the visual results in Figure 5 are insufficient to prove HGS's effectiveness in maintaining image fidelity. Quantitative results should be presented to demonstrate that the proposed HGS module is indispensable to PromptFix.

Rating

6

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

Authors claimed the limitations in the Appendix.

Authorsrebuttal2024-08-12

A friendly reminder

Dear Reviewer, I would like to send a kind reminder. Has our response addressed your concerns? The reviewer discussion period is nearing its end, and we eagerly await your reply. Your suggestions and comments are invaluable to the community. Thank you! Best, The authors

Reviewer sDoY2024-08-13

Thanks to the authors for their detailed responses. After considering the other reviews and the replies provided, I can confirm that the authors have addressed all my concerns. I raised my final rating to weak accept.

Authorsrebuttal2024-08-13

As the phase of author-reviewer discussions draws to a close, we are so pleased to note your recognition of our efforts and the raised score. We are grateful for the valuable suggestions you posed and appreciate the time and effort you devoted to the review process.

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

Summary

This paper employs prompts to perform low-level image restoration tasks using pretrained diffusion models. To facilitate this, a substantial paired dataset with image restoration instructions was collected. The proposed method relies on latent diffusion models, incorporating the input low-quality image as an additional input and using a VLM to generate auxiliary prompts, serving as another text condition for the network. During sampling, the paper introduces High-frequency Guidance Sampling, wherein the VAE decoder is optimized to better capture the high-frequency details of the input images.

Strengths

1. This paper studies an interesting problem, utilizing instructions to do low-level image restoration tasks. 2. The qualitative results look promising on various image restoration tasks.

Weaknesses

1. The dataset is collected by manually performing the degradation which has a distribution gap with the real-world low-quality images. How will the method perform for the real-world image degradation task, for example, motion blur captured by the phone camera? 2. Regarding the comparison, since the baselines are not trained on the collected dataset, it might be a bit unfair as they aren't aware of the low-level restoration tasks. It would be better to compare the methods under a similar setting.

Questions

1. Regarding the additional cross-attention layers, do you simply add another cross-attention layer after all the existing cross-attention layers and do the two cross-attention sequentially or parallel? And do you clone the weights as well? 2. In Alg 1, it seems that the decoder is updated during the testing time for each input? Since the loss is based on the input (low-quality image), will it affect the output image quality? 3. I'm also curious about how robust the method is for different instructions. For example, if we use different text prompts as instructions, how will the image quality change?

Rating

5

Confidence

4

Soundness

3

Presentation

2

Contribution

3

Limitations

Yes.

Authorsrebuttal2024-08-12

A friendly reminder

Dear Reviewer, I would like to send a kind reminder. Has our response addressed your concerns? The reviewer discussion period is nearing its end, and we eagerly await your reply. Your suggestions and comments are invaluable to the community. Thank you! Best, The authors

Area Chair fWx72024-08-13

Dear Reviewer, The authors have posted an author response here. Could you go through the rebuttal and update your opinion and rating as soon as possible? Your AC

Reviewer uR5Y2024-08-13

Thanks for the response. After reading the rebuttal and other reviews, I believe my concerns have been resolved and thus would like to increase my initial score to 5.

Reviewer gUoB4/10 · confidence 4/52024-07-22

Summary

This paper addresses low-level image processing tasks using a unified, Diffusion-based method. The key idea is to construct a dataset comprising pairs of editing instructions and targets for a variety of tasks and fine-tune a pre-trained text-to-image Diffusion Model on this dataset. Further innovations include augmenting editing instructions with text descriptions from a Vision Language Model (VLM) and a training loss that penalizes difference in high-frequency image components to facilitate detail preservation. The paper presents qualitative and quantitative results on a selected set of low-level image processing tasks, where the proposed method outperforms instruction-based Diffusion baselines and sometimes other task-specific models.

Strengths

- The method addresses low-level image processing tasks in a unified framework. Specifically, the model is conditioned on text-based instructions that specify the tasks to solve. This formulation avoids training one model per task and allows knowledge (captured by model weights) to be shared among tasks. - Low-level image processing tasks often require precise alignment of input and output pixels, yet pre-trained Diffusion models exhibit distortion as a result of lossy VAE encoding. To this end, the proposed method borrows ideas from UNet and introduces skip connections to pass along image textures that might have lost due to encoding. It further introduces a loss term to facilitate the transfer of high-frequency details. This is a sensible design that might be applicable to problem domains with similar requirements on input-output alignment. - Strong experiment results. As the model naturally benefits from strong Diffusion priors, it performs well on tasks such as dehazing and low-light enhancement where the collection of paired training data is challenging.

Weaknesses

- Lack of novelty. Instruction-based image editing using Diffusion models dates back to InstructPix2Pix, which similarly utilizes text conditioning to unify arbitrary image processing tasks. Further, I don't think it is fair to sell the dataset as a main contribution of the paper. Instruction generation using GPT-4 is not new (Both InstructionPix2Pix and LLaVA did that). The pipeline for corrupting GT images also follows standard practice. The auxiliary prompts are new but are specific to the the proposed approach. The techniques for enhancing spatial alignment are also new and seem effective, but they alone cannot justify the broad claim of the paper. - Regarding the two proposed techniques (auxiliary prompts and loss on high-frequency components), there is no ablation study showing they are absolutely needed for the method to succeed. Qualitative and quantitative experiments are needed to show that auxiliary prompts can help in the case where input images are corrupted. Similarly, ablation experiments are needed to show how precisely the F(.) and S(.) terms in Equation 6 affects output quality. - Some model details are lacking. For example, I am not sure I fully understand how auxiliary prompts are incorporated into the Diffusion UNet. If the cross-attention layers are replicated, are they fine-turned during training? The paper leaves me with the impression that only the LoRA convolutions are learned.

Questions

- Are the experiments on low-light enhancement, dehazing, desnowing, etc. performed on simulated data? The artifacts look unrealistic to me. How does the model perform on real data? I am concerned about generalization on real data since the model is exclusively trained on simulated data. - The paper claims in the abstract that the method "achieves comparable inference efficiency" with the baselines. Please provide concrete numbers to prove this claim.

Rating

4

Confidence

4

Soundness

2

Presentation

2

Contribution

2

Limitations

Limitations are discussed in A.2. The model performance might be sensitive to user-provided instructions. Additionally, passing along high-frequency textures from the input image inevitably copies some artifacts to the output.

Authorsrebuttal2024-08-12

A friendly reminder

Dear Reviewer, I would like to send a kind reminder. Has our response addressed your concerns? The reviewer discussion period is nearing its end, and we eagerly await your reply. Your suggestions and comments are invaluable to the community. Thank you! Best, The authors

Area Chair fWx72024-08-13

Dear Reviewer, The authors have posted an author response here. Could you go through the rebuttal and update your opinion and rating as soon as possible? Your AC

Reviewer 6nKQ2024-08-11

Thanks for the response. The explanation is generally reasonable. For General Response-II, the results show that HGS and Auxiliary Prompting are effective. For General Response-IV, the fine-tuning of InstructDiff demonstrates the effectiveness of the proposed method. But I still have some concerns and will keep my score. For General Response-I, please confirm that test results on untrained real-world data have been provided. This will demonstrate the method's generalization performance. For General Response-III, it is recommended to provide examples of the instructions designed in B & C settings, and explain how the GPT-4 generated instructions are guided by the prompts. For Q2, HGS is a loss that does not require training, and each input image needs to fine-tune the decoder during the sampling process. Is this design reasonable? Please explain why the decoder is updated instead of updating xt or the U-Net. For Q7, AuxiliaryPrompt provides supplementary information about the image, which is also input through the image encoder, although it is not displayed in text form. As for High-frequency Guidance, some high-frequency information in real-world degraded images contains noise, making this guidance somewhat rough. Additionally, in the final steps of the diffusion model, it could have a negative impact. Therefore, these two contributions are somewhat common.

Authorsrebuttal2024-08-11

We sincerely appreciate your feedback and acknowledgment of the validity of our experiments in General Responses II and IV, which demonstrate the effectiveness of our proposed method. We would also like to address the concerns raised in your comments: 1. **Regarding the Concern on General Response - I Data** We confirm that none of the data used originates from the training set. The data sources include online platforms, such as watermarked images from Adobe Stock and Shutterstock, black-and-white photography from Pexels, dark scenes from films, and personal mobile photography. This approach aims to validate the generalization capability of our method using real-world data, rather than relying on simulated data created by degrading specific images. 2. **On Providing Examples for General Response - III's Instructions** We show some examples of instructions from General Response III. Due to space constraints, we provide one example for each task: | | $\mathbb{B}$ | $\mathbb{C}$ | |:---:| :---| :---| | *Watermark Removal* | Would you mind giving the image a fresh start by removing the watermark? | Could you perform a bit of digital alchemy and transform the image by removing that watermark? The picture deserves to be seen in its most pristine form, free from any distractions. Let the original artwork emerge unblemished, allowing every detail to shine through. Your skill in making such transformations would be greatly appreciated. | | *Colorization* | Could you breathe life into this image by adding vibrant colors that capture its essence? | Would you be able to transform this image by imbuing it with a rich palette of colors? Imagine each stroke of color enhancing the depth and emotion within the scene, turning the monochrome into a vivid masterpiece. Your artistic touch could reveal hidden layers, adding warmth and character to every detail. The final creation will undoubtedly captivate the eye. | | *Dehazing* | Please lift the fog from this image, revealing its crisp and vibrant essence. | Imagine peeling back a veil to reveal the true clarity beneath—could you do the same for this image by removing the haze? The picture deserves to be seen in all its vivid glory, free from any clouding effects. Your skill in restoring sharpness would transform this image into something truly striking, with every detail standing out beautifully. | | *Snow Removal* | Please sweep away the snowy blanket covering this image. | Could you bring the image back to its original state by removing the snow that currently veils it? The scene underneath holds a story waiting to be told, free from the cold layer above. Allow the true colors and details to shine through, unmasked by the wintry cover. Your expertise in restoring this image to its pristine form would be invaluable. | | *Super Resolution* | Could you work your digital magic to sharpen this image and enhance its resolution? | Would you kindly apply your expertise to refine this image by eliminating the blur and boosting its resolution? The goal is to reveal the full clarity and sharpness hidden within, making every detail stand out. By enhancing its quality, you’ll allow the image to achieve its true potential, presenting it with the vividness and precision it merits. | | *Low-light Enhancement* | Could you boost the low light in this image to reveal more detail and clarity? | Could you work your magic on this image by subtly enhancing its low-light areas? The goal is to brighten up the dim portions without altering the overall mood, allowing the hidden details to emerge while maintaining the original tone. A careful balance in lighting adjustment will ensure the image remains true to its essence, while also improving visibility and depth. Your expertise in making this enhancement would be greatly appreciated. |

Authorsrebuttal2024-08-11

3. **Explanation of the HGS Design** The HGS is designed to preserve crucial structures from the original image and avoid the distortion of high-frequency details, such as the text shown in Figure 5. Traditional low-level processing methods address this effectively by employing skip-connection layers in the pixel space, ensuring these details remain intact. However, in Diffusion-based methods, skip-connections are only implemented in the latent space within the U-Net. Consequently, baseline methods like Diff-Plugin and MGIE, which focus solely on training the U-Net, can only retain details at a downsampled spatial dimension. When these methods perform upsampling using a frozen VAE decoder, the absence of skip-connections in the VAE leads to the distortions. To address this issue, updating the U-Net alone does not work; it is essential to update the decoder as well. Additionally, Stable Diffusion operates at the latent level ($z_t$), so directly accessing pixel-level noised map ($x_t$) is not feasible. 4. **Clarification of the Auxiliary Prompt** We would like to gently point out that the Auxiliary Prompt *is displayed in text form*, as illustrated by the blue and yellow prompts in Figure 4. Specifically, the text-based auxiliary prompt provides supplementary information through the U-Net's cross-attention layers, rather than the image encoder, as depicted in Figure 2. The proposed HGS enhances image quality in most cases, as demonstrated by the improvement in LPIPS from 0.2068 to 0.1600, as shown in the General Response II table. We observed that HGS does not consistently improve performance in all scenarios, as noted in the limitations section. We will make further improvements in this direction in future work. However, preserving the details of the original image remains an unresolved issue for all diffusion baselines. Our HGS method is effective in addressing this problem, as noted in your comments. We are among the first to make significant progress in tackling this issue. Therefore, we believe that our two proposed modules are both effective and distinct. We sincerely hope this response addresses your concerns. Please let us know if you have any further questions. Thank you again!

Reviewer 6nKQ2024-08-13

Thanks for the responses. I believe my previous concerns have mostly been addressed and have changed my score.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC