huggingface.co
Total runs: 372
24-hour runs: 0
7-day runs: 0
30-day runs: -3.0K
Model's Last Updated: September 15 2025
text-to-image

Introduction of SRPO

Model Details of SRPO

Directly Aligning the Full Diffusion Trajectory with Fine-Grained Human Preference

Xiangwei Shen 1,2* , Zhimin Li 1* , Zhantao Yang 1 , Shiyi Zhang 3 , Yingfang Zhang 1 , Donghao Li 1 ,
Chunyu Wang 1 , Qinglin Lu 1 , Yansong Tang 3,✝
1 Hunyuan, Tencent
2 School of Science and Engineering, The Chinese University of Hong Kong, Shenzhen
3 Shenzhen International Graduate School, Tsinghua University
* Equal contribution Corresponding author
Abstract

Recent studies have demonstrated the effectiveness of directly aligning diffusion models with human preferences using differentiable reward. However, they exhibit two primary challenges: (1) they rely on multistep denoising with gradient computation for reward scoring, which is computationally expensive, thus restricting optimization to only a few diffusion steps; (2) they often need continuous offline adaptation of reward models in order to achieve desired aesthetic quality, such as photorealism or precise lighting effects. To address the limitation of multistep denoising, we propose Direct-Align, a method that predefines a noise prior to effectively recover original images from any time steps via interpolation, leveraging the equation that diffusion states are interpolations between noise and target images, which effectively avoids over-optimization in late timesteps. Furthermore, we introduce Semantic Relative Preference Optimization (SRPO), in which rewards are formulated as text-conditioned signals. This approach enables online adjustment of rewards in response to positive and negative prompt augmentation, thereby reducing the reliance on offline reward fine-tuning. By fine-tuning the FLUX.1.dev model with optimized denoising and online reward adjustment, we improve its human-evaluated realism and aesthetic quality by over 3x.

Quick Started
Checkpoints

The diffusion_pytorch_model.safetensors is online version of SRPO based on FLUX.1 Dev , trained on HPD dataset with HPSv2

Inference

Replace the diffusion_pytorch_model.safetensors of FLUX

from diffusers import FluxPipeline
prompt='The Death of Ophelia by John Everett Millais, Pre-Raphaelite painting, Ophelia floating in a river surrounded by flowers, detailed natural elements, melancholic and tragic atmosphere'
pipe = FluxPipeline.from_pretrained('./data/flux',
        torch_dtype=torch.bfloat16,
        use_safetensors=True
    ).to("cuda")
state_dict = load_file("./srpo/diffusion_pytorch_model.safetensors")
pipe.transformer.load_state_dict(state_dict)
image = pipe(
    prompt,
    guidance_scale=3.5,
    height=1024,
    width=1024,
    num_inference_steps=infer_step,
    max_sequence_length=512,
    generator=generator
).images[0]
License

SRPO is licensed under the License Terms of SRPO. See ./License.txt for more details.

Citation

If you use SRPO for your research, please cite our paper:

@misc{shen2025directlyaligningdiffusiontrajectory,
      title={Directly Aligning the Full Diffusion Trajectory with Fine-Grained Human Preference}, 
      author={Xiangwei Shen and Zhimin Li and Zhantao Yang and Shiyi Zhang and Yingfang Zhang and Donghao Li and Chunyu Wang and Qinglin Lu and Yansong Tang},
      year={2025},
      eprint={2509.06942},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2509.06942}, 
}

Runs of tencent SRPO on huggingface.co

372
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-3.0K
30-day runs

More Information About SRPO huggingface.co Model

SRPO huggingface.co

SRPO huggingface.co is an AI model on huggingface.co that provides SRPO's model effect (), which can be used instantly with this tencent SRPO model. huggingface.co supports a free trial of the SRPO model, and also provides paid use of the SRPO. Support call SRPO model through api, including Node.js, Python, http.

tencent SRPO online free

SRPO huggingface.co is an online trial and call api platform, which integrates SRPO's modeling effects, including api services, and provides a free online trial of SRPO, you can try SRPO online for free by clicking the link below.

tencent SRPO online free url in huggingface.co:

https://huggingface.co/tencent/SRPO

SRPO install

SRPO is an open source model from GitHub that offers a free installation service, and any user can find SRPO on GitHub to install. At the same time, huggingface.co provides the effect of SRPO install, users can directly use SRPO installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

SRPO install url in huggingface.co:

https://huggingface.co/tencent/SRPO

Url of SRPO

Provider of SRPO huggingface.co

tencent
ORGANIZATIONS

Other API from tencent

huggingface.co

Total runs: 652.5K
Run Growth: 60.0K
Growth Rate: 9.30%
Updated:August 29 2026
huggingface.co

Total runs: 100.2K
Run Growth: -25.8K
Growth Rate: -25.60%
Updated:October 17 2025
huggingface.co

Total runs: 90.7K
Run Growth: -582.4K
Growth Rate: -642.43%
Updated:September 12 2025
huggingface.co

Total runs: 54.8K
Run Growth: -3.8K
Growth Rate: -6.85%
Updated:October 17 2025
huggingface.co

Total runs: 29.6K
Run Growth: -2.1K
Growth Rate: -7.37%
Updated:May 26 2026
huggingface.co

Total runs: 13.1K
Run Growth: -861
Growth Rate: -6.48%
Updated:May 26 2026
huggingface.co

Total runs: 12.3K
Run Growth: -190
Growth Rate: -1.54%
Updated:July 30 2025
huggingface.co

Total runs: 9.6K
Run Growth: 2.5K
Growth Rate: 26.31%
Updated:October 17 2025
huggingface.co

Total runs: 7.4K
Run Growth: -997
Growth Rate: -13.30%
Updated:January 01 2026
huggingface.co

Total runs: 3.7K
Run Growth: 1.1K
Growth Rate: 29.76%
Updated:May 21 2026
huggingface.co

Total runs: 3.0K
Run Growth: 3.0K
Growth Rate: 99.01%
Updated:September 10 2026
huggingface.co

Total runs: 2.9K
Run Growth: 115
Growth Rate: 3.95%
Updated:February 24 2026
huggingface.co

Total runs: 2.8K
Run Growth: -333
Growth Rate: -10.87%
Updated:December 30 2025
huggingface.co

Total runs: 2.2K
Run Growth: 2.1K
Growth Rate: 98.62%
Updated:September 09 2026
huggingface.co

Total runs: 1.5K
Run Growth: 1.5K
Growth Rate: 100.00%
Updated:September 17 2026
huggingface.co

Total runs: 1.2K
Run Growth: -292
Growth Rate: -24.27%
Updated:October 17 2025
huggingface.co

Total runs: 1.0K
Run Growth: -3.5K
Growth Rate: -340.08%
Updated:June 01 2026
huggingface.co

Total runs: 825
Run Growth: -100
Growth Rate: -12.22%
Updated:March 06 2025
huggingface.co

Total runs: 730
Run Growth: 730
Growth Rate: 100.00%
Updated:September 17 2026
huggingface.co

Total runs: 374
Run Growth: -10
Growth Rate: -2.70%
Updated:March 06 2026
huggingface.co

Total runs: 317
Run Growth: -135
Growth Rate: -43.41%
Updated:March 11 2026
huggingface.co

Total runs: 181
Run Growth: 149
Growth Rate: 82.32%
Updated:February 04 2026