rockeycoss
commited on
Commit
•
ab5641a
1
Parent(s):
d544c41
Update README.md
Browse files
README.md
CHANGED
@@ -6,7 +6,7 @@ language:
|
|
6 |
- en
|
7 |
pipeline_tag: text-to-image
|
8 |
---
|
9 |
-
#
|
10 |
|
11 |
<a href="https://arxiv.org/abs/2406.04314"><img src="https://img.shields.io/badge/Paper-arXiv-red?style=for-the-badge" height=22.5></a>
|
12 |
<a href="https://github.com/RockeyCoss/SPO"><img src="https://img.shields.io/badge/Gihub-Code-succees?style=for-the-badge&logo=GitHub" height=22.5></a>
|
@@ -23,15 +23,28 @@ pipeline_tag: text-to-image
|
|
23 |
|
24 |
## Abstract
|
25 |
<p>
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
28 |
</p>
|
29 |
-
<p>
|
30 |
-
To address this limitation, we propose Step-aware Preference Optimization (SPO), a novel post-training approach that independently evaluates and adjusts the denoising performance at each step, using a <em>step-aware preference model</em> and a <em>step-wise resampler</em> to ensure accurate step-aware supervision.
|
31 |
-
Specifically, at each denoising step, we sample a pool of images, find a suitable win-lose pair, and, most importantly, randomly select a single image from the pool to initialize the next denoising step. This step-wise resampler process ensures the next win-lose image pair comes from the same image, making the win-lose comparison independent of the previous step. To assess the preferences at each step, we train a separate step-aware preference model that can be applied to both noisy and clean images.
|
32 |
-
</p>
|
33 |
<p>
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
</p>
|
36 |
|
37 |
## Model Description
|
@@ -75,8 +88,8 @@ image.save('moon.png')
|
|
75 |
If you find our work or codebase useful, please consider giving us a star and citing our work.
|
76 |
```
|
77 |
@article{liang2024step,
|
78 |
-
title={
|
79 |
-
author={Liang, Zhanhao and Yuan, Yuhui and Gu, Shuyang and Chen, Bohan and Hang, Tiankai and Li, Ji and Zheng, Liang},
|
80 |
journal={arXiv preprint arXiv:2406.04314},
|
81 |
year={2024}
|
82 |
}
|
|
|
6 |
- en
|
7 |
pipeline_tag: text-to-image
|
8 |
---
|
9 |
+
# Aesthetic Post-Training Diffusion Models from Generic Preferences with Step-by-step Preference
|
10 |
|
11 |
<a href="https://arxiv.org/abs/2406.04314"><img src="https://img.shields.io/badge/Paper-arXiv-red?style=for-the-badge" height=22.5></a>
|
12 |
<a href="https://github.com/RockeyCoss/SPO"><img src="https://img.shields.io/badge/Gihub-Code-succees?style=for-the-badge&logo=GitHub" height=22.5></a>
|
|
|
23 |
|
24 |
## Abstract
|
25 |
<p>
|
26 |
+
Generating visually appealing images is fundamental to modern text-to-image generation models.
|
27 |
+
A potential solution to better aesthetics is direct preference optimization (DPO),
|
28 |
+
which has been applied to diffusion models to improve general image quality including prompt alignment and aesthetics.
|
29 |
+
Popular DPO methods propagate preference labels from clean image pairs to all the intermediate steps along the two generation trajectories.
|
30 |
+
However, preference labels provided in existing datasets are blended with layout and aesthetic opinions, which would disagree with aesthetic preference.
|
31 |
+
Even if aesthetic labels were provided (at substantial cost), it would be hard for the two-trajectory methods to capture nuanced visual differences at different steps.
|
32 |
</p>
|
|
|
|
|
|
|
|
|
33 |
<p>
|
34 |
+
To improve aesthetics economically, this paper uses existing generic preference data and introduces step-by-step preference optimization
|
35 |
+
(SPO) that discards the propagation strategy and allows fine-grained image details to be assessed. Specifically,
|
36 |
+
at each denoising step, we 1) sample a pool of candidates by denoising from a shared noise latent,
|
37 |
+
2) use a step-aware preference model to find a suitable win-lose pair to supervise the diffusion model, and
|
38 |
+
3) randomly select one from the pool to initialize the next denoising step.
|
39 |
+
This strategy ensures that diffusion models focus on the subtle, fine-grained visual differences
|
40 |
+
instead of layout aspect. We find that aesthetic can be significantly enhanced by accumulating these
|
41 |
+
improved minor differences.
|
42 |
+
</p>
|
43 |
+
<p>
|
44 |
+
When fine-tuning Stable Diffusion v1.5 and SDXL, SPO yields significant
|
45 |
+
improvements in aesthetics compared with existing DPO methods while not sacrificing image-text alignment
|
46 |
+
compared with vanilla models. Moreover, SPO converges much faster than DPO methods due to the step-by-step
|
47 |
+
alignment of fine-grained visual details.
|
48 |
</p>
|
49 |
|
50 |
## Model Description
|
|
|
88 |
If you find our work or codebase useful, please consider giving us a star and citing our work.
|
89 |
```
|
90 |
@article{liang2024step,
|
91 |
+
title={Aesthetic Post-Training Diffusion Models from Generic Preferences with Step-by-step Preference Optimization},
|
92 |
+
author={Liang, Zhanhao and Yuan, Yuhui and Gu, Shuyang and Chen, Bohan and Hang, Tiankai and Cheng, Mingxi and Li, Ji and Zheng, Liang},
|
93 |
journal={arXiv preprint arXiv:2406.04314},
|
94 |
year={2024}
|
95 |
}
|