SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.11727 · 2024

Aligning Few-Step Diffusion Models with Dense Reward Difference Learning

arXiv · PDF · Open in the Atlas

Code that ran

None of the 4 samples (functions and classes) lifted from this paper's linked repositories has a recorded run on a synthesized input (4 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2411.11727.json · badge: /api/ran/2411.11727.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ziyizhang27/sdpo canonical (classifier label)
classifier basis: classifier_2025
0 ran · 4 no recorded run
FunctionStatusWhere it lives
ImageReward Not yet run
unverified (harvested, no recorded run)
ziyizhang27/sdpo/sdpo_pytorch/rewards.py
code served (permissive licence) · get_code("b47084c4522e837b")
How it ran

no invocation recorded.

aesthetic_score Not yet run
unverified (harvested, no recorded run)
ziyizhang27/sdpo/sdpo_pytorch/rewards.py
code served (permissive licence) · get_code("d0dd9ffc825abaee")
How it ran

no invocation recorded.

get_config Not yet run
unverified (harvested, no recorded run)
ziyizhang27/sdpo/config/config_sdpo.py
code served (permissive licence) · get_code("b6e22297f43ef430")
How it ran

no invocation recorded.

hpsv2 Not yet run
unverified (harvested, no recorded run)
ziyizhang27/sdpo/sdpo_pytorch/rewards.py
code served (permissive licence) · get_code("e1a404ba4ab6e57a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_config 6 other papers
3 dated earlier, 3 later
2305.13301 (2023-05)
Training Diffusion Models with Reinforcement Learning
2310.10639 (2023-10)
Zero-Shot Robotic Manipulation with Pretrained Image-Editing Diffusion Models
2402.08552 (2024-02)
Confronting Reward Overoptimization for Diffusion Models: A Perspective of Inductive and Primacy Biases
and 3 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Few-step diffusion models enable efficient high-resolution image synthesis but struggle to align with specific downstream objectives due to limitations of existing reinforcement learning (RL) methods in low-step regimes with limited state spaces and suboptimal sample quality. To address this, we propose Stepwise Diffusion Policy Optimization (SDPO), a novel RL framework tailored for few-step diffusion models. SDPO introduces a dual-state trajectory sampling mechanism, tracking both noisy and predicted clean states at each step to provide dense reward feedback and enable low-variance, mixed-step optimization. For further efficiency, we develop a latent similarity-based dense reward prediction strategy to minimize costly dense reward queries. Leveraging these dense rewards, SDPO optimizes a dense reward difference learning objective that enables more frequent and granular policy updates. Additional refinements, including stepwise advantage estimates, temporal importance weighting, and step-shuffled gradient updates, further enhance long-term dependency, low-step priority, and gradient stability. Our experiments demonstrate that SDPO consistently delivers superior reward-aligned results across diverse few-step settings and tasks. Code is available at https://github.com/ZiyiZhang27/sdpo.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2411.11727")
get_code_for_paper("2411.11727")
have("2411.11727")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2411.11727.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2411.11727.svg)](https://syntology.ai/paper/2411.11727)

Connect an agent — have() is free.