nielsr HF Staff commited on
Commit
0f91c4c
·
verified ·
1 Parent(s): 179a052

Add dataset card, link to paper and code

Browse files

Hi! I'm Niels, part of the community science team at Hugging Face. I'm opening this PR to improve the dataset card for RealAlign.

This PR adds:
- Relevant metadata (`task_categories: text-to-image`).
- Links to the associated paper, project page, and GitHub repository.
- A summary of the dataset's purpose and the curation pipeline used to generate the preference pairs.

Files changed (1) hide show
  1. README.md +38 -0
README.md CHANGED
@@ -1,3 +1,41 @@
1
  ---
2
  license: cc-by-4.0
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
+ task_categories:
4
+ - text-to-image
5
  ---
6
+
7
+ # RealAlign Dataset
8
+
9
+ [**Project Page**](https://cwyxx.github.io/RealAlign) | [**Paper**](https://huggingface.co/papers/2605.19839) | [**Code**](https://github.com/Cwyxx/RealAlign)
10
+
11
+ This dataset is part of the **RealAlign** project, introduced in the paper "[When Preference Labels Fall Short: Aligning Diffusion Models from Real Data](https://huggingface.co/papers/2605.19839)".
12
+
13
+ ## Dataset Summary
14
+
15
+ RealAlign investigates whether real data can serve as an alternative source of supervision for preference alignment in diffusion models. Instead of relying on manually annotated preference pairs from model-generated images, this dataset treats real images as reference points and constructs preference signals by contrasting them with generated or perturbed samples.
16
+
17
+ The repository contains curated `(real, fake)` preference pairs derived from:
18
+ - **HPDv3**
19
+ - **Pick-a-Pic v2**
20
+ - **Civitai-top**
21
+
22
+ ## Data Curation Pipeline
23
+
24
+ The dataset was built using a four-stage curation pipeline:
25
+ 1. **Extract**: Initial data collection from source distributions.
26
+ 2. **Construct Pairs**: Creating pairings between real images and model-generated or perturbed samples.
27
+ 3. **Score**: Applying automated scoring to evaluate the pairs.
28
+ 4. **Filter**: Final selection of high-quality preference signals to produce the training CSV.
29
+
30
+ These curated pairs are used to align diffusion models like Stable Diffusion 1.5 and Stable Diffusion 3.5 Medium through a two-stage training process involving Diffusion-DRO (Inverse RL) and Diffusion-DPO.
31
+
32
+ ## Citation
33
+
34
+ ```bibtex
35
+ @article{realalign2024,
36
+ title={When Preference Labels Fall Short: Aligning Diffusion Models from Real Data},
37
+ author={Zhou, Yifan and others},
38
+ journal={arXiv preprint arXiv:2605.19839},
39
+ year={2024}
40
+ }
41
+ ```