SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.12120 · ICLR · 2025

Adding Conditional Control to Diffusion Models with Reinforcement Learning

Sergey Levine, Masatoshi Uehara, Ehsan Hajiramezanali, Yulai Zhao, Tommaso Biancalani, Gabriele Scalia, Sunyuan Kung

arXiv · PDF · Open in the Atlas

Code that ran

4 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 5 no recorded run), measured 2026-11-23; 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/2406.12120.json · badge: /api/ran/2406.12120.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
zhaoyl18/CTRL community
Papers with Code archive
4 ran · 5 no recorded run
FunctionStatusWhere it lives
MLPDiff_class Ran
ran on a synthesized input
zhaoyl18/CTRL/condition_main.py
pointer only (licence: NOASSERTION) · get_code("72d310c425a7148c")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, zhaoyl18/CTRL (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ResidualBlock Ran
ran on a synthesized input
zhaoyl18/CTRL/condition_main.py
pointer only (licence: NOASSERTION) · get_code("8b9ee4524a67745d")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, zhaoyl18/CTRL (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

TemperatureScaler Ran
ran on a synthesized input
zhaoyl18/CTRL/condition_main.py
pointer only (licence: NOASSERTION) · get_code("45c9c8b6addda684")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, zhaoyl18/CTRL (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ThreeLayerConvNet Ran
ran on a synthesized input
zhaoyl18/CTRL/condition_main.py
pointer only (licence: NOASSERTION) · get_code("3379e9ac5c94ea0b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, zhaoyl18/CTRL (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

condition_AestheticScorerDiff Not yet run
unverified (harvested, no recorded run)
zhaoyl18/CTRL/condition_main.py
pointer only (licence: NOASSERTION) · get_code("b3e82c8411307ba6")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, zhaoyl18/CTRL (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

condition_CompressibilityScorerDiff Not yet run
unverified (harvested, no recorded run)
zhaoyl18/CTRL/condition_main.py
pointer only (licence: NOASSERTION) · get_code("1992dadaf00954ff")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, zhaoyl18/CTRL (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

condition_aesthetic_loss_fn Not yet run
unverified (harvested, no recorded run)
zhaoyl18/CTRL/condition_main.py
pointer only (licence: NOASSERTION) · get_code("a949161676497e63")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, zhaoyl18/CTRL (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

condition_compressibility_loss_fn Not yet run
unverified (harvested, no recorded run)
zhaoyl18/CTRL/condition_main.py
pointer only (licence: NOASSERTION) · get_code("a7e8abe24d6b3f60")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, zhaoyl18/CTRL (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

multitask_loss_fn Not yet run
unverified (harvested, no recorded run)
zhaoyl18/CTRL/condition_main.py
pointer only (licence: NOASSERTION) · get_code("87f15babe5022bcc")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, zhaoyl18/CTRL (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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.

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-23.

Repositories linked to this paper

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

Abstract

Diffusion models are powerful generative models that allow for precise control over the characteristics of the generated samples. While these diffusion models trained on large datasets have achieved success, there is often a need to introduce additional controls in downstream fine-tuning processes, treating these powerful models as pre-trained diffusion models. This work presents a novel method based on reinforcement learning (RL) to add such controls using an offline dataset comprising inputs and labels. We formulate this task as an RL problem, with the classifier learned from the offline dataset and the KL divergence against pre-trained models serving as the reward functions. Our method, CTRL (Conditioning pre-Trained diffusion models with Reinforcement Learning), produces soft-optimal policies that maximize the abovementioned reward functions. We formally demonstrate that our method enables sampling from the conditional distribution with additional controls during inference. Our RL-based approach offers several advantages over existing methods. Compared to classifier-free guidance, it improves sample efficiency and can greatly simplify dataset construction by leveraging conditional independence between the inputs and additional controls. Additionally, unlike classifier guidance, it eliminates the need to train classifiers from intermediate states to additional controls. The code is available at https://github.com/zhaoyl18/CTRL.

For agents

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

get_harvested_code_for_paper("2406.12120")
get_code_for_paper("2406.12120")
have("2406.12120")

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

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

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

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

Connect an agent — have() is free.