Skip to content

Menu

WorksComputer Science

Contrastive Gradient Guidance for Test-Time Multi-Preference Alignment of Diffusion Models

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_4agp9avn. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Aligning pre-trained diffusion models with multiple context-dependent preferences requires adapting generation at test time rather than relying on offline fine-tuning, which requires hyperparameter tuning and a new training run for each preference trade-off. Existing approaches compress diverse preferences into a single scalar reward objective for fine-tuning or test-time guidance rather than directly reusing existing generative experts released for different purposes and obtained through different fine-tuning methods. In this work, we propose Contrastive Gradient Guidance (CGG), a test-time compositional generative framework that reformulates multi-preference alignment as a composition of distributions. CGG represents each preference as a contrastive preference pair of favored experts and unfavored anti-experts, whose score difference forms a contrastive gradient guidance signal that combines denoising directions (gradients) from off-the-shelf diffusion models during sampling. Experiments show that CGG reuses pre-trained and fine-tuned models as favored experts or anti-experts to control output style and safety, and that it can be combined with existing sampling-based reward guidance. With a single fixed scale per pair, CGG composes five preferences at once and gives a more balanced trade-off across text-image preference, concept control, photographic fidelity, and safety than offline fine-tuning, weight-space merging, and reward steering.

Introduction

Aligning pre-trained text-to-image diffusion models with context-dependent human preferences such as photorealistic visual quality, safety enforcement, and fine-grained style control is a central requirement in deployment settings where preference mixtures can change after training [47]. Standard alignment paradigms, including Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO), optimize models to amplify favored attributes via training from pairwise preference datasets [4, 40]. However, real-world deployment frequently requires avoiding unwanted attributes, such as unsafe content modes or unintended style visual drifts. While obtaining a checkpoint that reliably suppresses an unwanted trait is difficult, checkpoints that already exhibit such traits are common in practice, including style-biased community models and domain-specific fine-tuned variants. We therefore ask whether existing off-the-shelf fine-tuned models can be repurposed directly as anti-experts, without dataset access or retraining.

In this work, we introduce Contrastive Gradient Guidance (CGG), a modular test-time guidance framework that reformulates multi-preference alignment as gradient-space contrastive composition. CGG represents each preference objective by pairing off-the-shelf diffusion models and subtracting their scores

Correspondence to Po-Yi Lu, [email protected]. around an anchor model that keeps sampling on a stable trajectory. This contrastive signal lets existing checkpoints serve as preference building blocks at test time, without dataset access or parameter updates.

Figure 1 demonstrates applying CGG to safety-constraint and style-control behavior. As illustrated, preference fine-tuning (sDPOs_{\mathrm{DPO}}) can improve human preference alignment while introducing safety risks, whereas safety-oriented fine-tuning (sMaPOs_{\mathrm{MaPO}}) can reduce unsafe content but shift samples away from photographic realness. CGG uses the sign of a contrastive score direction as a control axis: favored expert steering (sρ ⁣:sMaPOs_{\rho} \colon s_{\mathrm{MaPO}}) pulls the trajectory toward safe traits, the anchor model (sanc ⁣:sDPOs_{\mathrm{anc}} \colon s_{\mathrm{DPO}}) maintains structural image fidelity, and anti-expert suppression (sκ ⁣:sanimes_{\kappa} \colon s_{\mathrm{anime}}) pushes sampling away from unintended style drift, restoring photographic rendering and enforcing safety constraints in a single inference pass.

Qualitative comparison of DPO, MaPO, and CGG for safety constraints and realness side effects

Figure 1. Qualitative examples of safety constraints and style control using Contrastive Gradient Guidance (CGG). Under the prompt ‘photo of an adult female model, full body, navel, photo’, sDPOs_{\mathrm{DPO}} improves human preference alignment but introduces safety issues, while sMaPOs_{\mathrm{MaPO}} addresses safety at the cost of anime-style drift. CGG balances human preference, safety, and photographic realness in a single test-time composition.

The same control composes several preferences at once. Table 1 shows that CGG improves quality and Realness over other test-time methods while maintaining comparable safety, including task arithmetic [28] and sampling-based reward steering with a scalarized reward [36]. Figure 6 in the Appendix provides the corresponding radar visualization and shows that CGG reaches a balanced trade-off across all five axes without offline retraining. In contrast to weight-space composition, which suffers from interference when merging multiple checkpoint weights, and scalarized reward guidance (FK Steering), which incurs heavy sampling overhead, CGG composes five distinct contrastive pairs simultaneously, covering text-image preferences, synthetic concept control, photographic fidelity, and safety. Furthermore, CGG can be paired with sampling-based reward steering, allowing model-level and reward-level guidance signals to share one sampling trajectory.

TypeMethodPickScoreSafetyImageRewardRedScoreRealness
BaseBase model22.1140.9580.8575.9123.504
Fine-tunedDPO on Pick-a-Pic22.4050.9320.8715.5813.063
Fine-tunedMaPO on Pick-Safety22.0170.9900.9755.9010.232
Fine-tunedDPO on ImageReward-DB22.0790.9560.8345.7373.065
Fine-tunedSFT on RedScore21.9540.9680.7787.3212.789
Fine-tunedRealVisXL V4.022.6810.9301.1405.5885.725
Test-time steeringFK Steering (5 rewards)22.2580.9581.0565.8753.764
Test-time steeringTask Arithmetic22.1830.9371.149†6.503†2.368
Test-time steeringCGG (5-pair combinations)22.475†0.974†1.2105.9384.117†

Table 1. Five-reward comparison grouped by method class. Task Arithmetic is a checkpoint-space task-vector composition baseline using unit-weighted DPO PickScore, MaPO-Pick-Safety, ImageReward-DPO, Red SFT positive, and RealVisXL V4.0 experts. All metrics are higher-is-better (↑). Bold text marks each metric’s best score and † its second-best; red marks fine-tuned or test-time steering scores that fall below the base model.

Figure 6. Five-reward method comparison across text-image preferences (PickScore and ImageReward), synthetic concept control (RedScore), photographic fidelity (Realness), and Safety. Each radar axis is min-max normalized so outer-ring performance represents the best score across all methods in Table 1. CGG is the only method that stays at or outside the base model on all five axes and lies in the outer region on PickScore, Safety, ImageReward, and Realness, while its RedScore gain over the base model is small; Task Arithmetic gains on ImageReward and RedScore but falls below the base model on Safety and Realness.

Our primary contributions are summarized as follows:

  • Model-Level Reuse: We reinterpret score differences between off-the-shelf diffusion checkpoints as composable preference axes, so that pre-trained or fine-tuned models for a specific preference can be repurposed as anti-experts and an unfavored attribute can be suppressed without retraining.

  • Contrastive Gradient Guidance (CGG): We design CGG, a modular inference-time framework that constructs contrastive preference pairs from generative experts and anti-experts and assembles their score differences into guidance directions.

  • Balanced Multi-Preference Results: We demonstrate CGG’s safety-constraint and style-control behavior and show that CGG gives a balanced multi-preference trade-off across five evaluation axes compared with offline fine-tuning, weight-space composition, and sampling-based reward steering baselines.

Background

Guidance for diffusion models Diffusion models generate data by iteratively denoising a Gaussian variable, and their denoising networks can be interpreted as estimating the score ∇xtlog⁡p(xt)\nabla_{x_t} \log p(x_t) of the noisy data distribution at timestep tt [39]. Conditional generation modifies this score so that the reverse process follows a distribution satisfying a condition cc. Throughout the paper, a diffusion score evaluated during sampling includes the timestep argument, e.g., s(c,xt,t)s(c, x_t, t); when a score symbol appears without arguments, it denotes the corresponding model or guidance direction. Classifier guidance (CG) trains a time-dependent classifier gcls(c,xt,t)g_{\mathrm{cls}}(c, x_t, t) and adds its gradient to guide the unconditional score toward a conditional distribution [7, 39]:

∇xtlog⁡p(xt∣c)=∇xtlog⁡p(xt)+∇xtlog⁡p(c∣xt)(1)\nabla_{x_t}\log p(x_t\mid c)=\nabla_{x_t}\log p(x_t)+\nabla_{x_t}\log p(c\mid x_t) \tag*{(1)}

where s(xt,t)s(x_t,t) denotes the unconditional score at timestep tt. Classifier-free guidance (CFG) avoids the separate classifier and instead interpolates between the unconditional score and the conditional score s(c,xt,t)s(c,x_t,t) estimated by a conditional denoising network [16]:

∇xtlog⁡p(xt∣c)←(1−ω)s(xt,t)+ωs(c,xt,t),(2)\nabla_{x_t}\log p(x_t\mid c)\leftarrow(1-\omega)s(x_t,t)+\omega s(c,x_t,t), \tag*{(2)}

where ω\omega is a guidance scale parameter. Subsequent work shows that a CFG-like contrast between two diffusion models trained on the same task can also improve sample quality [23]. Generally, compositional generation combines the scores of multiple diffusion models, corresponding to products of their distributions, to control generation with several concepts [30]. These views underpin our central motivation: preference alignment at test time can be framed as a gradient-space composition generation, where guidance signals are directly formed by composing existing score functions.

Pairwise preference setup of preference alignment Preference alignment commonly starts by representing human preference with a Bradley-Terry (BT) reward model and adopts reinforcement learning from human feedback (RLHF) to fine-tune generative models [2, 4]. Given a BT reward model rBT(c,x)r_{\mathrm{BT}}(c,x), a generative model can be fine-tuned to maximize reward while controlling deviation from a reference distribution:

max⁡θBT Ex∼pθBT(x∣c)[rBT(c,x)]−βDKL[pθBT(x∣c)∥pref(x∣c)],(3)\max_{\theta_{\mathrm{BT}}}\ \mathbb{E}_{x\sim p_{\theta_{\mathrm{BT}}}(x\mid c)}[r_{\mathrm{BT}}(c,x)] -\beta D_{\mathrm{KL}}[p_{\theta_{\mathrm{BT}}}(x\mid c)\Vert p_{\mathrm{ref}}(x\mid c)], \tag*{(3)}

where pθBT(x∣c)p_{\theta_{\mathrm{BT}}}(x\mid c) is the fine-tuned generative distribution and β\beta scales the KL regularization.

Test-time preference alignment for diffusion models Test-time preference alignment applies the reward-tilted view during sampling without updating model parameters. For a pre-trained diffusion model with score sref(c,xt,t)s_{\mathrm{ref}}(c,x_t,t), the optimal solution of Eq. (3) has the form:

pθBT∗(x∣c)=1Z(c)pref(x∣c)exp⁡(1βrBT(c,x)),(4)p_{\theta_{\mathrm{BT}}^*}(x\mid c)=\frac{1}{Z(c)}p_{\mathrm{ref}}(x\mid c)\exp\left(\frac{1}{\beta}r_{\mathrm{BT}}(c,x)\right), \tag*{(4)}

where Z(c)=∫pref(x∣c)exp⁡(1βrBT(c,x)) dxZ(c)=\int p_{\mathrm{ref}}(x\mid c)\exp\left(\frac{1}{\beta}r_{\mathrm{BT}}(c,x)\right)\,dx is the partition function [34].

Taking the log gradient of Eq. (4) gives a reward guidance form analogous to Eq. (1):

∇xtlog⁡pθBT∗(xt∣c)=∇xtlog⁡pref(xt∣c)+γ∇xtrt(c,xt),(5)\nabla_{x_t}\log p_{\theta_{\mathrm{BT}}^*}(x_t\mid c)=\nabla_{x_t}\log p_{\mathrm{ref}}(x_t\mid c)+\gamma\nabla_{x_t}r_t(c,x_t), \tag*{(5)}

where γ\gamma is proportional to 1/β1/\beta and controls the alignment strength. The main difficulty is that ∇xtrt(c,xt)\nabla_{x_t}r_t(c,x_t) is a reward gradient at a noisy timestep. Existing methods estimate it through denoised reconstruction or particle sampling, which can be expensive or unstable when the reward is defined only on clean images [24, 36, 45].

Bottlenecks and motivation for CGG The reward-guidance formulation exposes two bottlenecks for multi-preference alignment. First, a BT reward gradient requires estimating intermediate noisy states, but many reward models are trained on final images. What test-time alignment actually needs is a reward field defined at every timestep. Second, a single scalar reward hides the structure of multi-preference control, where users may want to amplify a favored attribute, suppress an unfavored attribute, and preserve a base model at different strengths. The next section addresses these bottlenecks by replacing the BT reward gradient with score differences from existing diffusion experts.

Contrastive Gradient Guidance

CGG starts from a distributional view of multi-preference alignment. Each preference is represented by a pair of diffusion distributions, a favored one that generation should move toward and an unfavored one that it should move away from, while an anchor distribution keeps samples on a natural-image trajectory. Writing the alignment objective directly in terms of these distributions yields a target whose optimizer is a product of density ratios of existing checkpoints, and whose score is a sum of score differences that can be evaluated during sampling. Existing score-composition methods hard-wire the pre-trained reference model as both the anchor and the unfavored side of each aligned expert [3, 22], so they can only amplify attributes that an aligned expert already encodes.

In practice, however, the easier resource is often a model that already exhibits an undesired attribute, such as a style-biased community checkpoint or a domain-specific fine-tuned variant, whereas a checkpoint that reliably suppresses the same attribute while preserving the rest of the generation behavior is harder to obtain. CGG exploits this asymmetry by letting the unfavored side be an explicit anti-expert, so that a preference becomes a signed test-time axis that can either amplify a desired attribute or suppress an undesired one. Once suitable experts exist, composing them requires no retraining; acquiring an expert that does not yet exist remains a training step, as in the color-preference study of § 4.

This section defines the preference pairs, states the objective and its optimizer, derives the guidance rule and identifies where it is approximate, and places existing guidance methods as special cases; the sampling algorithm, its cost, and its assumptions are deferred to Appendix § 8.

Building block. Preferences as favored and unfavored distributions. Let ρi(x∣c)\rho_i(\mathrm{x}|\mathrm{c}) and κi(x∣c)\kappa_i(\mathrm{x}|\mathrm{c}) be diffusion distributions that exhibit the favored and unfavored attributes of preference ii, respectively. We call (ρi,κi)(\rho_i,\kappa_i) a contrastive preference pair. At unit scale, the pair contributes the KL divergence from a candidate distribution pp to κi\kappa_i minus its KL divergence to ρi\rho_i. This difference gives rise to the implicit reward

ri(c,x)≡r(ρi,κi)(c,x)=log⁡ρi(x∣c)−log⁡κi(x∣c).(6)r_i(\mathrm{c},\mathrm{x}) \equiv r_{(\rho_i,\kappa_i)}(\mathrm{c},\mathrm{x}) = \log\rho_i(\mathrm{x}|\mathrm{c}) - \log\kappa_i(\mathrm{x}|\mathrm{c}). \tag*{(6)}

This log-density ratio is defined wherever both densities are positive on their common data space, regardless of how the checkpoints were trained. A pair can therefore be assembled from heterogeneous sources: an RLHF or DPO checkpoint against its reference model; a model fine-tuned on the favored side of a preference dataset against one fine-tuned on the unfavored side (an SFT+/SFT−\mathrm{SFT}^{+}/\mathrm{SFT}^{-} pair); a reference-free preference model such as MaPO against any designated unfavored checkpoint [18]; or a public checkpoint that exhibits an unwanted style, used directly as the unfavored side.

Objective. Distributional objective and its optimizer Given NN contrastive preference pairs {(ρi,κi)}i=1N\{(\rho_i,\kappa_i)\}_{i=1}^{N} with scales γi∈R\gamma_i \in\mathbb{R} and an anchor distribution panc(x∣c)p_{\mathrm{anc}}(x|c), CGG targets the distribution that maximizes

J(p)=Ex∼p(⋅∣c)[∑i=1Nγiri(c,x)]−DKL[p(⋅∣c)∥panc(⋅∣c)].(7)\mathcal{J}(p) = \mathbb{E}_{x\sim p(\cdot|c)}\left[\sum_{i=1}^{N}\gamma_i r_i(c,x)\right] - \mathbb{D}_{\mathrm{KL}}\left[p(\cdot|c)\mathbin\Vert p_{\mathrm{anc}}(\cdot|c)\right]. \tag*{(7)}

Eq. (7) uses a weighted sum of the implicit rewards and a freely chosen anchor in the RLHF objective of Eq. (3). Dividing the objective by its positive KL weight rescales the γi\gamma_i and gives the KL penalty a unit coefficient. Fix a prompt cc and suppress it in the notation. When both KL divergences for pair ii are finite, expanding them gives

DKL[p∥κi]−DKL[p∥ρi]=Ep[log⁡pκi−log⁡pρi]=Ep[ri].\mathbb{D}_{\mathrm{KL}}[p\Vert\kappa_i]-\mathbb{D}_{\mathrm{KL}}[p\Vert\rho_i]=\mathbb{E}_p\left[\log\frac{p}{\kappa_i}-\log\frac{p}{\rho_i}\right]=\mathbb{E}_p[r_i].

Substituting this identity into Eq. (7) gives

J(p)=∑i=1Nγi(DKL[p∥κi]−DKL[p∥ρi])−DKL[p∥panc].(8)\mathcal{J}(p)=\sum_{i=1}^{N}\gamma_i\left(\mathbb{D}_{\mathrm{KL}}[p\Vert\kappa_i]-\mathbb{D}_{\mathrm{KL}}[p\Vert\rho_i]\right)-\mathbb{D}_{\mathrm{KL}}[p\Vert p_{\mathrm{anc}}]. \tag*{(8)}

For γi>0\gamma_i>0, pair ii rewards samples with larger ratios of favored to unfavored density. A negative scale reverses these roles. The entropy terms cancel within each pair, leaving the coefficient of H[p]H[p] fixed at one. A pair can still change the concentration of the optimizer. For example, take one unit-scale pair with κ1=panc=N(0,1)\kappa_1=p_{\mathrm{anc}}=\mathcal{N}(0,1) and ρ1=N(0,σ2)\rho_1=\mathcal{N}(0,\sigma^2) for σ>0\sigma>0. The objective reduces to −DKL[p∥ρ1]-\mathbb{D}_{\mathrm{KL}}[p\Vert\rho_1], so its maximizer has variance σ2\sigma^2.

If 0<Z(c)<∞0<Z(c)<\infty for the chosen scales, applying the reward tilt in Eq. (4) to the anchor gives

p∗(x∣c)=panc(x∣c)Z(c)∏i=1N(ρi(x∣c)κi(x∣c))γi,p^*(x|c)=\frac{p_{\mathrm{anc}}(x|c)}{Z(c)}\prod_{i=1}^{N}\left(\frac{\rho_i(x|c)}{\kappa_i(x|c)}\right)^{\gamma_i},
Z(c)=Ex∼panc(⋅∣c)[exp⁡(∑i=1Nγiri(c,x))].(9)Z(c)=\mathbb{E}_{x\sim p_{\mathrm{anc}}(\cdot|c)}\left[\exp\left(\sum_{i=1}^{N}\gamma_i r_i(c,x)\right)\right]. \tag*{(9)}

For any pp with finite reward expectation and anchor KL, substitution into Eq. (7) gives J(p)=log⁡Z(c)−DKL[p∥p∗]\mathcal{J}(p)=\log Z(c)-\mathbb{D}_{\mathrm{KL}}[p\Vert p^*]. When these terms are finite at p∗p^*, the objective attains its maximum log⁡Z(c)\log Z(c) uniquely at p=p∗p=p^*.

Guidance rule. From the optimizer to a sampling rule Taking the log-gradient of Eq. (9) removes the normalizer and expresses the score of the target as a sum of score differences,

∇xlog⁡p∗(x∣c)=∇xlog⁡panc(x∣c)+∑i=1Nγi(∇xlog⁡ρi(x∣c)−∇xlog⁡κi(x∣c)),(10)\nabla_x\log p^*(x|c)=\nabla_x\log p_{\mathrm{anc}}(x|c)+\sum_{i=1}^{N}\gamma_i\left(\nabla_x\log\rho_i(x|c)-\nabla_x\log\kappa_i(x|c)\right), \tag*{(10)}

an identity on clean images. Diffusion sampling, however, needs a score at every noise level. CGG replaces each clean score in Eq. (10) with the denoising prediction of the corresponding model at timestep tt,

sCGG(c,xt,t)=sanc(c,xt,t)+∑i=1Nγi(sρi(c,xt,t)−sκi(c,xt,t)).(11)s_{\mathrm{CGG}}(c,x_t,t)=s_{\mathrm{anc}}(c,x_t,t)+\sum_{i=1}^{N}\gamma_i\left(s_{\rho_i}(c,x_t,t)-s_{\kappa_i}(c,x_t,t)\right). \tag*{(11)}

and uses sCGGs_{\mathrm{CGG}} in place of the model score in a standard reverse sampler.

Eq. (11) is the exact score of a specific distribution, but not of the one a sampler for p∗p^{\ast} would need. Each difference sρi−sκis_{\rho_i}-s_{\kappa_i} equals ∇log⁡(ρi,t/κi,t)\nabla\log(\rho_{i,t}/\kappa_{i,t}), the gradient of the log-ratio of the two noisy marginals at timestep tt, so Eq. (11) is the score of

qt∝panc,t∏i(ρi,tκi,t)γi(12)q_t \propto p_{\mathrm{anc},t}\prod_i\left(\frac{\rho_{i,t}}{\kappa_{i,t}}\right)^{\gamma_i} \tag*{(12)}

which noises each component first and composes them afterwards. Sampling from p∗p^{\ast} by reverse diffusion instead requires the score of (p∗)t(p^{\ast})_t, which composes the clean components first and noises the result afterwards. The two orders agree only at t=0t=0: forward noising is a convolution with a Gaussian, and convolution does not commute with products or ratios of densities, so qt≠(p∗)tq_t \ne(p^{\ast})_t for t>0t>0 [9, 37]. Consequently, {qt}\{q_t\} is not the noising path of p∗p^{\ast}, and sampling with Eq. (11) is not guaranteed to return samples from p∗p^{\ast}, even when every component score is exact. Correction steps such as MCMC [9] or Feynman–Kac correctors [37] can reduce this mismatch. In this work, we empirically design the sampler using Eq. (11) instead of these techniques and leave obtaining effective, accurate denoising steps as future work.

Special cases. BT-induced pairs and existing guidance. The pairs whose implicit reward carries a human-preference interpretation are those produced by preference optimization. RLHF and DPO fine-tune a diffusion model toward the reward-tilted optimum in Eq. (4) [4, 34], that we call such a checkpoint a BT-induced diffusion model pBTp_{\mathrm{BT}} with score sBT(c,xt,t)s_{\mathrm{BT}}(\mathbf{c},\mathbf{x}_t,t). At the optimum, Eq. (4) gives log⁡(pBT(x∣c)/pref(x∣c))=rBT(c,x)/β−log⁡Z(c)\log(p_{\mathrm{BT}}(\mathbf{x}\mid\mathbf{c})/p_{\mathrm{ref}}(\mathbf{x}\mid\mathbf{c}))=r_{\mathrm{BT}}(\mathbf{c},\mathbf{x})/\beta-\log Z(\mathbf{c}), so the pair (pBT,pref)(p_{\mathrm{BT}},p_{\mathrm{ref}}) has implicit reward rBT/βr_{\mathrm{BT}}/\beta up to a constant, and with N=1N=1, κ1=panc=pref\kappa_1=p_{\mathrm{anc}}=p_{\mathrm{ref}}, and γ1=1\gamma_1=1, Eq. (7) is the RLHF objective of Eq. (3) divided by β\beta. Treating the tilted relation as holding at the noisy marginals of timestep tt, toward which the per-timestep surrogate objective of Diffusion-DPO pushes every noise level [40], yields the timestep reward gradient

∇xtrt(c,xt)=β(sBT(c,xt,t)−sref(c,xt,t))(13)\nabla_{\mathbf{x}_t}r_t(\mathbf{c},\mathbf{x}_t)=\beta\left(s_{\mathrm{BT}}(\mathbf{c},\mathbf{x}_t,t)-s_{\mathrm{ref}}(\mathbf{c},\mathbf{x}_t,t)\right) \tag*{(13)}

available in closed form with no reward network and no denoised reconstruction, and Eq. (11) reduces to the linear form

sguided(c,xt,t)=(1−ω)sref(c,xt,t)+ωsBT(c,xt,t)(14)s_{\mathrm{guided}}(\mathbf{c},\mathbf{x}_t,t)=(1-\omega)s_{\mathrm{ref}}(\mathbf{c},\mathbf{x}_t,t)+\omega s_{\mathrm{BT}}(\mathbf{c},\mathbf{x}_t,t) \tag*{(14)}

with ω=γ1\omega=\gamma_1, or equivalently ω=γβ\omega=\gamma\beta in the reward units of Eq. (5). Eq. (14) explains why an aligned checkpoint can serve as a test-time guidance direction rather than only as a standalone generator, and it recovers RLG [22]. Practical checkpoints only approximate the reward-tilted optimum, so we read Eq. (13) as motivation and treat the score difference of a trained checkpoint as its empirical implicit preference direction. For pairs outside this case, such as SFT+^{+}/SFT−^{-} pairs, reference-free preference models, and style-biased checkpoints, Eq. (6) is still a well-defined likelihood-ratio reward and Eqs. (7)–(11) apply unchanged, but the reward carries no BT interpretation. We evaluate these pairs in § 4.

The same reduction places existing guidance methods within Eq. (11) as particular assignments of the three roles, summarized in Table 2. Our formulation also corresponds to the score-space expression of a product of experts [15] and recurs in CFG, Composable Diffusion, Autoguidance, and RLG [16, 22, 23, 30]. CFG and Composable Diffusion take the contrast from conditioning: all roles are one network under different conditions, so a negated concept must be expressible through the prompt channel. Autoguidance, RLG, Diffusion Blend, and cPGD take it from a training lineage: the unfavored side is the favored model’s own reference, its degraded twin, or a module trained on the negative side of the same preference dataset, and the anchor coincides with the reference [3, 21, 22, 23]. DExperts and Model Arithmetic compose signed differences of free checkpoints at decoding time, but for autoregressive language models, where every step exposes an exact next-token distribution and no noisy-marginal approximation arises [6, 29].

Contrast sourceMethodsGuidance formLocked vs. free components
ConditioningCFG [16](1−ω)s(xt,t)+ωs(c,xt,t)(1-\omega)s(x_t,t)+\omega s(c,x_t,t)Pair = one network under two conditions; negation must pass through the prompt channel
Conditioning, multi-conceptComposable Diffusion [30]sanc+∑jωj(s(cj+,xt,t)−s(cj−,xt,t))s_{\mathrm{anc}}+\sum_j\omega_j\left(s(c_j^{+},x_t,t)-s(c_j^{-},x_t,t)\right)All roles = one network under different conditions; signed ωj\omega_j; anchor is a conditional or unconditional branch of the same network
Training lineageAutoguidance [23], RLG [22], Diffusion Blend [3]sref+ω(sRL−sref)s_{\mathrm{ref}}+\omega\left(s_{\mathrm{RL}}-s_{\mathrm{ref}}\right)κ\kappa fixed to ρ\rho’s own reference or degraded twin; anchor = κ\kappa; amplify-only
Training lineage, paired modulescPGD [21]sbase+ω(spos−sneg)s_{\mathrm{base}}+\omega\left(s_{\mathrm{pos}}-s_{\mathrm{neg}}\right)ρ,κ\rho,\kappa trained on the two sides of one preference dataset; anchor = base; one pair
Free checkpoint, language modelsDExperts [29], Model Arithmetic [6]zbase+∑iλi(zρi−zκi)z_{\mathrm{base}}+\sum_i\lambda_i\left(z_{\rho_i}-z_{\kappa_i}\right) on next-token logitsRoles decoupled; exact per-token conditionals, so no noisy-marginal approximation; autoregressive only
Free checkpoint, diffusionCGG (ours)sanc+∑iγi(sρi−sκi)s_{\mathrm{anc}}+\sum_i\gamma_i\left(s_{\rho_i}-s_{\kappa_i}\right)Anchor, ρi\rho_i, κi\kappa_i all decoupled; signed γi\gamma_i; NN simultaneous pairs; sampling approximate (Eq. (11))

Table 2. Guidance methods as assignments of the three roles in Eq. (11). All share the linear anchor-plus-difference form. These works differ in where the contrast comes from and in which roles are locked. CGG frees all three roles for diffusion checkpoints, admits signed pair scales, and composes several pairs simultaneously.

CGG’s contribution is the distributional objective in Eq. (7) for flexibly reusing existing diffusion models: the anchor, the favored model, and the unfavored model of each pair are chosen independently, the unfavored side may be an explicit anti-expert rather than the anchor, and several pairs act at once. The sampling algorithm that implements Eq. (11), its per-step cost, the calibration of the pair scales γi\gamma_i, and the three assumptions that underlie the method (checkpoint compatibility, a well-posed target, and approximate sampling) are collected in Appendix § 8.

Experiments

We organize the empirical study around three claims that mirror the design of CGG. First, score differences between SFT experts trained on 1000 examples each steer generation toward or away from a target attribute. Second, reusable experts and anti-experts preserve a balanced multi-preference trade-off across text-image preferences, synthetic concept control, photographic fidelity, and safety. Third, CGG can be paired with sampling-based reward steering, allowing model-based and reward-based guidance to share one sampling trajectory.

Datasets and base models We mainly assess CGG on 500 unique prompts from the Pick-a-Pic v2 test set [25], where several preference optimization methods are available for Stable Diffusion XL (SDXL) [32], including Diffusion-DPO [40]. We use MaPO checkpoints for safety-constrained scenarios [18]. Unless otherwise stated, the base model sbases_{\mathrm{base}} denotes the pre-trained SDXL, which is also the reference model srefs_{\mathrm{ref}} in the previous sections. Checkpoint details, sampling settings, reward definitions, and additional detailed results are reported in Appendix § 9.

Limited-Data SFT as Preference Signals

We first test contrastive directions built from SFT experts trained on little data. Starting from only 1000 examples per color preference, we fine-tune SFT experts for Red, NonRed, Purple, and NonPurple preferences. Figure 2 compares standalone SFT/DPO-style fine-tuning, FK Steering with a trained color reward, and CGG with SFT-based favored/unfavored pairs. The qualitative comparison shows that CGG can inject the target color more directly than using a preference fine-tuned model or reward-steered samples, supporting the claim that the SFT positive/negative split can be reused as a test-time contrastive direction.

Figure 2. Limited-data color preference control shows that CGG can inject colors more directly than preference fine-tuning or reward steering. Left: SFT and DPO fine-tuning under Red and Purple preferences. Right: FK Steering with a trained color reward compared with CGG using SFT-derived favored and unfavored diffusion experts, where ρ\rho denotes the favored side and κ\kappa the unfavored side. Prompt: ‘astronaut in spaceship’.

Figure 3 shows the same controllability pattern in the palette setting (quantified in Table 9). Moving along the Red and Purple contrastive directions increases the intended color score, while combining directions allows CGG to traverse intermediate preference mixtures without training a new model for each palette point.

Figure 3. The 2D Red-Purple color palette grid (prompt: ‘astronaut in spaceship’). The central image is the base model sbases_{\mathrm{base}}. The horizontal axis applies guidance from the Red-preference expert and the vertical axis from the Purple-preference expert; negative directions reduce the color.

Figure 3Diff. modelsRedScoreBlueScoreCLIP
Top-leftsPurple+sNonReds_{\mathrm{Purple}} + s_{\mathrm{NonRed}}2.987.3432.85
TopsPurples_{\mathrm{Purple}}4.969.5534.17
Top-rightsPurple+sReds_{\mathrm{Purple}} + s_{\mathrm{Red}}8.938.2633.68
Middle-leftsNonReds_{\mathrm{NonRed}}2.124.4333.99
Middlesbases_{\mathrm{base}}5.814.2837.12
Middle-rightsReds_{\mathrm{Red}}9.394.5034.53
Bottom-leftsNonPurple+sNonReds_{\mathrm{NonPurple}} + s_{\mathrm{NonRed}}3.161.7331.68
BottomsNonPurples_{\mathrm{NonPurple}}5.361.1431.45
Bottom-rightsNonPurple+sReds_{\mathrm{NonPurple}} + s_{\mathrm{Red}}9.072.0832.10

Table 9. Quantitative results for the color palette. Rows refer to positions in the palette visualization in Figure 3.

We next evaluate whether SFT-derived contrastive signals remain effective on the Pick-a-Pic benchmark. Table 3 groups the comparison into pre-trained, fine-tuned, and test-time methods. It shows that sSFT+−sSFT−s_{\mathrm{SFT}}^{+}-s_{\mathrm{SFT}}^{-} reaches a PickScore on par with the DPO fine-tuned model and the best CLIP score in the table, so CGG with SFT experts reaches DPO-level preference quality without pairwise preference optimization. Appendix § 9.§ 4 reports the same comparison for pairs built from DPO, MaPO, KTO, and CHATS checkpoints.

Class / MethodPickScore (↑\uparrow)HPSv2 (↑\uparrow)CLIP (↑\uparrow)
Pre-trained
sbases_{\mathrm{base}}22.110.2936.99
Fine-tuned
sDPOs_{\mathrm{DPO}}22.410.3037.78
sSFTs_{\mathrm{SFT}}22.340.3137.20
Test-time steering
CGG: SFT+–base22.330.3137.52
CGG: SFT+–SFT−22.430.3037.83

Table 3. Average rewards on 500 Pick-a-Pic v2 test prompts, grouped by pre-trained, fine-tuned, and test-time (CGG) methods. In CGG rows, A-B denotes the favored-unfavored pair used in Eq. (11), with the base model as anchor. Bold text marks the best result.

Multi-Preference Alignment with Reusable Experts

We then evaluate the multi-preference setting that motivates Figure 1 and Figure 6. The goal is not to maximize one scalarized reward at training time, but to preserve a favorable trade-off among several axes after deployment. CGG (5-pair combinations) composes five contrastive pairs, one per preference axis: the Red and realism axes take an explicit anti-expert as their unfavored side, while the remaining three pair an expert against the pre-trained base model, with the exact checkpoints listed in Appendix § 9. All five pair scales are set to γi=1.0\gamma_i = 1.0 for all prompts, so composing the five preferences involves no scale search. Single-pair γ\gamma-sensitivity is smooth and unimodal (Appendix § 10.§ 2), and a different balance can be obtained by changing the pair scales at sampling time.

In a multi-preference setup, we compare CGG with two baselines: FK Steering with five averaged rewards and Task Arithmetic, which merges models’ parameters. Task Arithmetic composes the five corresponding checkpoint-space task vectors with unit coefficients, each measured relative to the SDXL base model. Both methods therefore use fixed unit coefficients; other global scales for Task Arithmetic are reported in Appendix § 9.

Table 1 provides the full numerical record, grouping methods into base, offline fine-tuned models, and test-time steering methods. The base model is reasonably safe but not the strongest on PickScore or ImageReward. DPO improves PickScore but reduces safety, while MaPO gives the firmest safety score but has low Realness, consistent with the anime-style side effect shown in Figure 1. CGG is not the best method on every axis: it has the best ImageReward and the second-best PickScore, Safety, and Realness. It is, however, the only method in the table that improves over the base model on all five axes; every fine-tuned expert and every other test-time method falls below the base model on at least one axis (red entries). Confidence intervals and an independent re-run are reported in Appendix § 9.

Avoiding a protected artistic style at test time We next consider style suppression: reusing an existing style-specific model to prevent generated images from reproducing that style, a setting motivated by intellectual-property protection. Existing approaches either use a text negative prompt at sampling time [35] or erase the concept by permanently editing model weights once per style [13]. CGG differs by reusing a public style checkpoint as a model-level anti-expert: it suppresses the style in gradient space at sampling time, reversibly and with a continuous strength γ\gamma. We use public Studio Ghibli and van Gogh SDXL LoRAs as the unfavored side, with pre-trained SDXL as both the anchor and the favored side (detailed information in Appendix § 9.§ 3). The prompts are 24 Studio Ghibli and 20 van Gogh scenes, half of each naming the style explicitly. Style is measured by CSD similarity [38] to the style expert’s own outputs, which measures style independently of content and cannot be optimized directly by a negative prompt that lists the same words.

This setup asks whether a method preserves the requested image while suppressing a protected style, or whether it removes the style by changing the image too much. Table 4 reports two quantities: Style removed, which measures how much the target style is suppressed, and Photo margin, which measures whether the sample shifts from illustration toward photography. Table 4 shows that negative prompting and CGG can achieve comparable style suppression. On Studio Ghibli, however, the negative prompt flips the photo margin from −1.78-1.78 to +1.92+1.92, whereas CGG at the same suppression level keeps it at −2.10-2.10, preserving the illustrative form rather than drifting toward photography; on van Gogh, neither method shifts the medium toward photography. Detailed experimental configurations, prompts, and evaluation procedures are provided in Appendix § 9.§ 3.

Style / MethodStyle removed (↑\uparrow)Photo margin
Studio Ghibli
Base0.000-1.78
+ negative prompt0.090⋄0.090^{\diamond}+1.92
+ CGG (γ=0.7\gamma= 0.7)0.090⋄0.090^{\diamond}-2.10
+ CGG (γ=1\gamma= 1)0.159-2.20
van Gogh
Base0.000-0.08
+ negative prompt0.325⋄0.325^{\diamond}-0.52
+ CGG (γ=3.1\gamma= 3.1)0.325⋄0.325^{\diamond}-0.42
+ CGG (γ=3.5\gamma= 3.5)0.359-0.87

Table 4. Avoiding a protected artistic style on prompts that explicitly name it. ⋄\diamond marks a CGG row with the same Style removed level as the negative prompt.

Figure 4 shows the qualitative comparison on two style-invocation prompts. While the negative prompt re-renders the scene as a photograph, CGG continuously suppresses the target style while preserving the underlying scene composition and remaining inside the illustrated medium. A complete comparison

Comparison of protected artistic style suppression across four methods

Figure 4. Suppressing a protected style at test time on prompts explicitly requesting it. Columns compare the Ghibli expert, SDXL base model, text negative prompt, and CGG (γ=1.0\gamma= 1.0) with the style expert as anti-expert. All samples share the prompt and seed. The full 6-method comparison across varying scales γ\gamma is shown in Figure 16 in the Appendix.

Compatibility with Sampling-Based Steering

across varying pair scales γ\gamma is provided in Figure 16 in the Appendix. Figure 17 in the Appendix repeats the base, negative-prompt, and anti-expert comparison at γ=1\gamma= 1 on four further scenes from the same style-invocation set.

Full qualitative comparison of style avoidance across varying pair scales

Figure 16. Full qualitative comparison of style avoidance across varying pair scales γ∈{0.25,0.5,1.0}\gamma\in\{0.25, 0.5, 1.0\} on two style-invocation prompts (top: countryside village; bottom: young woman in a windy meadow). Columns move from the Ghibli expert model, through the base SDXL model and text negative prompt, to CGG with increasing anti-expert scale γ\gamma.

Figure 17. Avoiding a protected artistic style, on prompts that explicitly request it. All three columns share the prompt and the seed and differ only in where the style suppression is applied: (a) none, (b) a text negative prompt (“Studio Ghibli, ghibli, anime film still, hand-drawn animation, cel shading”) given to the same model, (c) a model-level anti-expert built by fusing a public Studio Ghibli SDXL LoRA into a standalone UNet and using it as the unfavored side of a CGG pair whose favored side and anchor are both pre-trained SDXL. Prompts, top to bottom: 1) a cozy cluttered kitchen with a kettle boiling on the stove, in the style of Studio Ghibli 2) an old propeller airplane flying above towering clouds, in the style of Studio Ghibli 3) a bakery interior with fresh bread on wooden shelves, Studio Ghibli animation style 4) a river valley with terraced rice fields in summer, in the style of Studio Ghibli. These four scenes are disjoint from the ones shown in the main text; aggregate scores over all twelve style-invocation prompts are in Table 4.

Compatibility with Sampling-Based Steering

Finally, we study CGG’s compatibility with sampling-based reward steering. The scenario is to inject a Red concept into the image while preserving general human-preference quality. CGG supplies a model-based Red-vs-NonRed contrastive direction, and FK Steering can still apply an explicit PickScore reward correction during sampling [36]. Table 5 shows that two guidance sources compose rather than interfere: the model-based direction carries the attribute, and the reward-based correction preserves preference quality. Figure 5 illustrates the same setting qualitatively.

PickScoreRedScore
sbases_{\mathrm{base}}22.115.91
FK(Pick)22.215.61
CGG: Red–NonRed21.856.80
CGG-FK: Red–NonRed + Pick22.267.02

Table 5. Combining model-based CGG with reward-based FK Steering on Pick-a-Pic v2 test prompts. FK(Pick) uses a PickScore reward; Red-NonRed denotes the CGG favored-unfavored pair that injects an attribute-specific contrastive direction. Bold text (↑) marks the best result.

Comparison of $s_{\mathrm{base}}$, FK(PickScore), CGG with the Red-NonRed pair, and CGG-FK for two prompts

Figure 5. CGG can be combined with FK Steering to inject an attribute-specific Red preference while preserving reward-based PickScore alignment. The comparison uses the same Pick-a-Pic style prompts across sbases_{\mathrm{base}}, FK(PickScore), CGG with the Red-NonRed pair, and CGG-FK, illustrating that the model-based color direction and the reward-based quality correction can share one sampling trajectory. Prompts: top row, ‘90’s street racing in tokyo’; bottom row, ‘big mansion in the daytime’.

Related Works

An extended related work is provided in Appendix § 12.

Favored and unfavored distributions for preference modeling While standard alignment methods focus primarily on scalar reward modeling or policy optimization on favored data [4, 34, 40], recent studies model the unfavored (anti-expert) distribution explicitly (e.g., Diffusion-NPO [42], CHATS [11]). In language generation, DExperts subtracts logit distributions of undesirable corpora during decoding [29]. However, existing diffusion preference methods operate at the data and loss level: they modify the optimization objective and retrain on raw preference datasets whenever the target trade-off changes. CGG operates at the model and inference level: it repurposes off-the-shelf fine-tuned diffusion models directly as anti-experts and composes them at test time.

Test-time alignment for diffusion models Test-time alignment steers sampling by estimating time-dependent reward gradients ∇xtrtest(c,xt)\nabla_{x_t} r_{\mathrm{test}}(\mathbf{c}, x_t), either by evaluating clean image estimates x^0\hat{x}^{0} [1] or propagating particle populations via Sequential Monte Carlo (SMC) sampling [24, 36]. CGG is compatible with these approaches: it changes the score that proposes each denoising step, while they change how samples are weighted or selected. § 4.4 combines CGG with FK Steering so that a model-based contrastive direction and a reward-based correction act on the same sampling trajectory.

Compositional and test-time multi-preference alignment Existing methods frame the contrast to prompt-level conditioning (CFG) or within a fixed training lineage (e.g., contrasting a model against its reference in RLG and Diffusion Blend, or against a degraded twin in Autoguidance), which amplifies attributes encoded in an aligned expert [3, 10, 16, 22, 23]. CGG generalizes these formulations to a free-checkpoint contrast: the anchor, favored, and unfavored models are chosen independently. This freedom is what lets an off-the-shelf fine-tuned model serve as an anti-expert and several such pairs be composed at test time without retraining.

Conclusion

We presented Contrastive Gradient Guidance (CGG), which treats preference alignment as compositional generation. Each preference is a pair of a favored expert and an unfavored anti-expert, and the score difference of the pair is a test-time guidance direction, so preferences can be added, removed, or reweighted at sampling time without retraining. In our experiments, CGG composed five preferences with a single fixed scale per pair and gave a more balanced trade-off than offline fine-tuning, weight-space merging, and reward steering; the same mechanism enforced a safety constraint and suppressed a protected artistic style while keeping the scene the prompt asked for.

CGG evaluates every expert at every denoising step, so its latency and memory grow with the number of pairs (Appendix § 13). Reducing this cost, for example by storing experts as adapters on a shared backbone, and extending CGG to preferences that change per user or per request are directions for future work.

Ethical Statement

This work aims to improve test-time preference alignment for diffusion models, so that a deployed model can follow preferences that change after training. Such systems can also amplify biases in preference data and reward models, so practical deployment should include careful evaluation across diverse user groups, transparent documentation, and safeguards against harmful or exclusionary uses.

Sampling algorithm, cost, pair scales, and assumptions

This appendix collects the procedural side of CGG that § 3 defers: the sampling algorithm that implements Eq. (11), its per-step cost, how the pair scales are set at test time, and the assumptions that underlie the method.

Sampling algorithm CGG is implemented by replacing the model score in each denoising step with Eq. (11); Algorithm 1 summarizes the procedure, and any base sampler can be used.

Algorithm 1 Contrastive Gradient Guidance sampling

  1. Input: anchor score sancs_{\mathrm{anc}}, contrastive preference pairs {(ρi,κi)}i=1N\{(\rho_i,\kappa_i)\}_{i=1}^{N}

  2. Input: pair scales {γi}i=1N\{\gamma_i\}_{i=1}^{N}, prompt c\mathbf{c}

  3. Sample initial noise xT\mathbf{x}_T

  4. for t=T,…,1t=T,\ldots,1 do

  5. Compute sanc(c,xt,t)s_{\mathrm{anc}}(\mathbf{c},\mathbf{x}_t,t)

  6. For each pair ii, compute sρi(c,xt,t)s_{\rho_i}(\mathbf{c},\mathbf{x}_t,t) and sκi(c,xt,t)s_{\kappa_i}(\mathbf{c},\mathbf{x}_t,t), reusing sancs_{\mathrm{anc}} when κi=panc\kappa_i=p_{\mathrm{anc}}

  7. Form sCGGs_{\mathrm{CGG}} using Eq. (11)

  8. Update xt−1\mathbf{x}_{t-1} with the base sampler using sCGGs_{\mathrm{CGG}}

  9. end for

  10. return x0\mathbf{x}_0

Cost Each step evaluates the anchor once and every distinct favored and unfavored model once, so a composition with NN pairs costs N+1+∣{i:κi≠panc}∣N+1+\lvert\{i:\kappa_i\ne p_{\mathrm{anc}}\}\rvert denoising-network evaluations per step when the anchor doubles as an unfavored side; the five-pair composition of § 4.2 uses eight. Latency grows accordingly and peak memory grows with the number of distinct checkpoints held, which Appendix § 13 quantifies against particle-based reward steering.

Pair scales Changing a preference, removing an anti-expert, or shifting a trade-off changes only the pairs and scales, not the models. In the multi-preference experiments the scales are set to one and shared across all prompts. For the single-pair preference experiments, γ\gamma is selected on the Pick-a-Pic v2 validation set (Appendix § 10.§ 2); scales for the single-pair style experiments are tuned per style (Appendix § 9). We apply the shared scale to the raw score differences without normalizing them.

Assumptions Three assumptions underlie the method. (i) Checkpoint compatibility: all models in Eq. (11) share the latent space, noise schedule, prediction parameterization, conditioning interface, and CFG convention, so that their scores can be evaluated and combined at the same (xt,t)(x_t,t); all experiments use SDXL-compatible checkpoints. (ii) Well-posed target: for each prompt c\mathbf{c}, the log ratios for pairs with γi≠0\gamma_i\ne0 are defined almost everywhere under the anchor, and we assume 0<Z(c)<∞0<Z(\mathbf{c})<\infty in Eq. (9) and finite reward expectation and anchor KL at p∗p^*. Appendix § 10.§ 2 reports how the measured rewards vary with the guidance scale. (iii) Approximate sampling: Eq. (11) follows the exact score of the noisy-marginal product qtq_t rather than of (p∗)t(p^*)_t, and the BT reading of Eq. (13) holds only for checkpoints at the tilted optimum at every noise level; results for all other pairs are empirical.

Detailed experimental settings and results

Settings of sampling configurations for all experiments All experiments use 50 denoising steps and a CFG scale of 7.5 unless a table or figure states otherwise.

Code release and reproducibility materials We will release the code upon publication. This appendix gives the hyperparameters, prompts, dataset construction, and evaluation protocol needed to reproduce the experiments.

Details of the color palette preferences

Settings of color palette preferences We selected Red and Purple as the two target color preferences. First, we sample 1000 images from the Pick-a-Pic v2 training set. For the Red (Purple) color, we apply image processing to render the images in red (purple). Concretely, the Red preference dataset is built by increasing the intensity of the red channel to (min⁡{1.5r,255},g,b)(\min\{1.5r, 255\}, g, b) for positive-label images and decreasing the red channel to (0.5r,g,b)(0.5r, g, b) for negative-label images at each pixel of the original images. The Purple preference dataset is built in a similar way, but we process the red and blue channels simultaneously, using (min⁡{1.5r,255},g,min⁡{1.5b,255})(\min\{1.5r, 255\}, g, \min\{1.5b, 255\}) for positive-label images and (0.5r,g,0.5b)(0.5r, g, 0.5b) for negative-label images. Each derived color-preference example keeps the original Pick-a-Pic prompt and stores paired rendered views: a positive image whose target channel intensity is increased and a negative image whose target channel intensity is decreased. For the Red dataset, this yields prompt-image pairs of the form caption, more_red_image, and less_red_image; the Purple dataset follows the same paired construction while changing both the red and blue channels. These derived datasets are used only to train small color experts and anti-experts for the controlled color-preference experiments. We then fine-tuned the SDXL model using SFT to represent preferences for or against each color, resulting in four SDXL models.

For SFT, we fine-tune the SDXL model using Supervised Fine-Tuning (SFT) with the text-to-image fine-tuning script provided by the Hugging Face diffusers package.2 Specifically, for the 1,000-sample color/attribute diffusion experts (sRed+s_{\mathrm{Red}}^{+}, sRed−s_{\mathrm{Red}}^{-}, sPurple+s_{\mathrm{Purple}}^{+}, sPurple−s_{\mathrm{Purple}}^{-}), we use a dataset of 1000 Pick-a-Pic v2 prompt-image pairs per preference label. All SFT models are trained using the AdamW optimizer with a learning rate of 1×10−51 \times10^{-5} for 1000 optimization steps (32 epochs) with an effective batch size of 32 in FP16 mixed precision on a single NVIDIA H100 NVL GPU.

For the trained Red (Purple) color reward, denoted r^red\hat{r}_{\mathrm{red}} (r^purple\hat{r}_{\mathrm{purple}}), we reuse the training code provided by the PickScore repository with the same optimization settings. This reward is a CLIP model fine-tuned for 1000 optimizer steps on the red-positive and red-negative (purple-positive and purple-negative) pairs described above.3 It is a learned proxy used only as the FK Steering guidance signal, whereas every reported color number is computed with the rule-based oracle RedScore (BlueScore) in Eq. (15); the reward that FK Steering optimizes in the color-preference experiments is therefore separate from the one used for evaluation.

For DiffusionDPO on the Red and Purple datasets, we first convert each dataset to the pairwise-preference format. We then reuse the training code from the DiffusionDPO GitHub page with the same optimization settings and train for 64 epochs (2000 steps with an effective batch size of 32).4

For FK Steering, we use r^red\hat{r}_{\mathrm{red}} and r^purple\hat{r}_{\mathrm{purple}} as the guidance rewards with λ=10\lambda= 10 and a particle sample size of 4, following the public FK Steering implementation.5

CGG guidance scale γ\gamma For the CGG guidance scale γ\gamma, we assess the qualitative and quantitative spectrum in Figure 7 across γ∈[−3,3]\gamma\in[-3, 3] for Red and Purple, and use γ=3\gamma= 3 for the grids in Figure 3 and Figure 2. In the grid, each cell combines the Red and Purple directions at signed scales; in the spectrum, one scale varies at a time and the color intensity changes gradually with γ\gamma.

Figure 7. The continuous γ\gamma spectrum (γ∈[−3,3]\gamma\in[-3, 3]) for the Red and Purple color experts (prompt: ‘astronaut in spaceship’). Negative γ\gamma reduces the color and positive γ\gamma strengthens it.

“Studio Ghibli, ghibli, anime film still, hand-drawn animation, cel shading”. For van Gogh, the negative prompt string is “Vincent van Gogh, van gogh, oil painting, post-impressionism, thick impasto”.

Evaluation We evaluate color control with RedScore and BlueScore, the rule-based color statistics defined in Eq. (15) below, and with CLIPScore.

Definitions of attribute and safety rewards We use three scores for the color, photographic-style, and safety axes. The reported RedScore is a rule-based oracle that follows the color statistic of Diffusion-KTO [26] and is computed directly from pixel intensities rather than from a learned reward model. Writing Rˉ(x)\bar{R}(x), Gˉ(x)\bar{G}(x), and Bˉ(x)\bar{B}(x) for the mean intensity of each channel over the image and μˉ(x)=13(Rˉ+Gˉ+Bˉ)(x)\bar{\mu}(x) = \frac{1}{3}(\bar{R}+\bar{G}+\bar{B})(x) for the mean over all channels, we report

rred(x)=clip⁡[1,10](5+5⋅R‾(x)−μ‾(x)60),(15)r_{\mathrm{red}}(\mathbf{x})=\operatorname{clip}_{[1,10]}\left(5+5\cdot\frac{\overline{R}(\mathbf{x})-\overline{\mu}(\mathbf{x})}{60}\right), \tag*{(15)}

which rescales the difference between the mean red intensity and the mean over all channels onto a bounded [1,10][1,10] range, so a larger value indicates a stronger red cast. BlueScore is defined in the same way with B‾(x)\overline{B}(\mathbf{x}) in place of R‾(x)\overline{R}(\mathbf{x}). Let fIf_I and fTf_T denote the normalized image and text embeddings of CLIP and let τ\tau denote its learned logit scale. For photographic style, we define a prompt-conditioned Realness margin using the public CLIP ViT-H/14 backbone at revision de081ac [33]. Specifically, tphoto(c)t_{\mathrm{photo}}(\mathbf{c}) is the text template “a realistic photograph of c,” and tanime(c)t_{\mathrm{anime}}(\mathbf{c}) is “an anime illustration of c.” We compute

rreal(c,x)=exp⁡(τ)[fT(tphoto(c))⊤fI(x)−fT(tanime(c))⊤fI(x)].(16)r_{\mathrm{real}}(\mathbf{c},\mathbf{x})=\exp(\tau)\left[f_T(t_{\mathrm{photo}}(\mathbf{c}))^\top f_I(\mathbf{x})-f_T(t_{\mathrm{anime}}(\mathbf{c}))^\top f_I(\mathbf{x})\right]. \tag*{(16)}

Positive values favor photographic rendering over anime rendering for the same content. For the five-reward comparison, each image is scored against the prompt that generated it. Finally, the HEIM/LAION detector returns an NSFW probability pNSFW(x)p_{\mathrm{NSFW}}(\mathbf{x}), from which we report Safety as the fraction of images that pass the detector’s operating point. Thus, larger RedScore, Realness, and Safety values are better.

Five-reward comparison protocol The radar plot (Figure 6) shows pre-trained SDXL, Task Arithmetic, FK Steering with five averaged rewards, and CGG with five pairs; the fine-tuned experts are omitted for readability and kept in Table 1. The radar normalizes each axis with min-max scaling anchored to the per-metric worst and best scores across all methods in Table 1, including the omitted fine-tuned experts, so a curve touching the outer ring attains the best score in the full comparison. All Table 1 entries are computed on 500 Pick-a-Pic prompts. The CGG run composes five contrastive pairs: (Diffusion-DPO, base), (MaPO-Pick-Safety, base), (SFTRed+^{+}_{\mathrm{Red}}, SFTRed−^{-}_{\mathrm{Red}}), (RealVisXL V4.0, Animagine XL 3.1), and (ImageReward-DPO, base), with every pair scale set to 1.0. The Task Arithmetic row sums the five corresponding task vectors with unit coefficients; other global scales are reported in Table 6.

MethodnnPickScore (↑\uparrow)RedScore (↑\uparrow)ImageReward (↑\uparrow)Safety (↑\uparrow)Realness (↑\uparrow)
TA, scale 0.220022.4675.7551.0430.9233.630{sup}†
TA, scale 0.320022.574{sup}†5.8081.1320.9313.544
TA, scale 0.520022.5625.9211.174{sup}†0.9213.370
TA, scale 1.020022.1326.4781.1310.9282.233
CGG (same prompts)20022.5936.444{sup}†1.1480.940{sup}†2.577
CGG (all prompts)50022.4755.9381.2100.9744.117

Table 6. Task Arithmetic with different global scales on the first 200 Pick-a-Pic prompts. All Task Arithmetic rows merge the same five SDXL experts as Table 1; only the shared task-vector coefficient changes. The two CGG rows report the same 200-prompt subset and the full 500-prompt run of Table 1. Bold text marks each metric’s best score and † its second-best; red marks scores that fall below the base model in Table 1.

Task Arithmetic global scale Adding five full task vectors at unit weight may over-perturb the merged model, so we rerun the same five-expert merge with global scales in {0.2,0.3,0.5,1.0}\{0.2, 0.3, 0.5, 1.0\} on the first 200 Pick-a-Pic prompts with seed 0. The scale-1.0 row restricts the 500-prompt run of Table 1 to the same 200 prompts, and the two CGG rows report the same 200 prompts and the full 500-prompt run. Table 6 shows that smaller scales recover PickScore and ImageReward (scales 0.3 and 0.5) and Realness (scales 0.2 and 0.3 stay above the base model, and scales 0.2 to 0.5 exceed CGG on this subset), while scale 1.0 matches CGG on RedScore but has the lowest Realness. Every scale stays below CGG on Safety, and no single global scale is at least as good as CGG on every axis.

Table 7 reports 95% confidence intervals for Safety and Realness for every method in Table 1, and Table 8 lists the differences between CGG and FK Steering on all five axes.

MethodSafetyRealness
Base model.958 ± .0183.50 ± .39
DPO on Pick-a-Pic.932 ± .0223.06 ± .39
MaPO on Pick-Safety.990 ± .009.23 ± .34
DPO on ImageReward-DB.956 ± .0183.06 ± .39
SFT on RedScore.968 ± .0152.79 ± .38
RealVisXL V4.0.930 ± .0225.72 ± .33
FK Steering (5 rewards).958 ± .0183.76 ± .39
CGG (5-pair combinations).974 ± .0144.12 ± .34

Table 7. Mean ± 95% confidence interval of Safety and Realness over the 500 Pick-a-Pic prompts for all methods in Table 1.

MetricFK SteeringCGGΔ\Delta
PickScore22.25822.475+0.217
ImageReward1.0561.210+0.154
RedScore5.8755.938+0.063
Realness3.7644.117+0.353
Safety0.9580.974+0.016

Table 8. FK Steering and CGG on the 500 Pick-a-Pic prompts of Table 1; Δ\Delta is CGG minus FK Steering.

The Safety value of SFT on RedScore (0.968 versus 0.958 for the base model) involves no safety supervision; the color SFT simply does not raise the detector’s unsafe rate on this prompt set. Inference latency and memory are analyzed separately in Appendix § 13.

Quantitative results of color palette preferences Table 9 reports RedScore, BlueScore (Eq. (15)), and CLIPScore for the generated images.

Details of safety constraints and style control

In the safety-constraint experiments, we use the default settings of the NSFW detector from the HEIM benchmark [27], with the detector threshold set to 0.9.

CGG guidance scale γ\gamma We assess the results in Figure 1 with γ=0.75\gamma= 0.75 for CGG(sMaPO−sDPOs_{\mathrm{MaPO}} - s_{\mathrm{DPO}}) and γ=1.25\gamma= 1.25 for CGG(sMaPO−sAnimes_{\mathrm{MaPO}} - s_{\mathrm{Anime}}). Appendix § 10.§ 2 provides additional γ\gamma-sensitivity results for RLHF/DPO-based guidance.

Details of protected style avoidance experiments

Hugging Face resources and anti-expert checkpoints All style avoidance experiments are conducted on top of the public SDXL base architecture (stabilityai/stable-diffusion-xl-base-1.0). The model-level anti-experts (sunfavoreds_{\mathrm{unfavored}}) are constructed by fusing public style LoRAs into the SDXL base

UNet:

  • Studio Ghibli Anti-Expert: Built by merging the public Studio Ghibli SDXL LoRA (artificialguy/StudioGhibli.Redmond-SDXL) into the SDXL base UNet to form a standalone style expert UNet.

  • Van Gogh Anti-Expert: Built by merging the public van Gogh SDXL LoRA (nerjs/van-gogh-sdxl-lora) into the SDXL base UNet.

In both style avoidance settings, the anchor sancs_{\mathrm{anc}} and the favored side are the pre-trained SDXL base model (sbases_{\mathrm{base}}). The pair (sbases_{\mathrm{base}}, sstyle_experts_{\mathrm{style\_expert}}) gives the guidance sCGG=sbase−γ(sstyle_expert−sbase)s_{\mathrm{CGG}} = s_{\mathrm{base}} - \gamma(s_{\mathrm{style\_expert}} - s_{\mathrm{base}}).

Prompt datasets and baseline configurations We evaluate style avoidance on two style benchmark prompt sets:

  • Studio Ghibli: Evaluated on 24 scene prompts (12 explicit style-invocation prompts naming “Studio Ghibli” and 12 implicit scene prompts without explicit style keywords).

  • Van Gogh: Evaluated on 20 scene prompts (10 explicit style-invocation prompts naming “van Gogh” and 10 implicit scene prompts).

All methods are sampled with 50 denoising steps, a classifier-free guidance (CFG) scale of 7.5, and a fixed random seed (0) across rows, so that all comparisons are paired. We compare CGG against the inference-time text negative prompting baseline [35]. For Studio Ghibli, the negative prompt string is

Evaluation metrics and medium-shift measurement Style avoidance is quantified with two metrics:

  • Style removed (↑): Measures style suppression with Content-Style Disentanglement (CSD) feature similarity [38] to the style expert’s own outputs. We compute CSD similarity between generated samples and reference images from the style expert; Style removed is the reduction in CSD similarity relative to the unguided base model. CSD is computed from image features, so listing style words in a negative prompt does not lower it directly.

  • Photo margin: Measures whether suppressing the protected style shifts the medium from illustration or painting toward photography. We compute the CLIP ViT-H/14 text margin between a photorealistic prompt template ("a realistic photograph of [content]") and an illustrative prompt template ("an anime illustration of [content]" for Ghibli, or "an oil painting of [content]" for van Gogh). A positive value means the sample reads as a photograph; a negative value means it stays within the illustrated or painted medium.

Details of applying CGG for RLHF/DPO-style pipelines

More results of enhancing RLHF/DPO-style aligned models for SDXL Table 10 reports the BT-induced pair (DPO, base): the guided score sbase+γ∗(sDPO−sbase)s_{\mathrm{base}} + \gamma^{*}(s_{\mathrm{DPO}} - s_{\mathrm{base}}) improves PickScore, HPSv2, and CLIP over both the base model and the DPO checkpoint.

PickScoreHPSv2CLIP
sbases_{\mathrm{base}}22.110.2936.99
sDPOs_{\mathrm{DPO}}22.410.3037.78
sbase+γ∗(sDPO−sbase)s_{\mathrm{base}}+\gamma^{*}(s_{\mathrm{DPO}}-s_{\mathrm{base}})22.480.3137.98

Table 10. Average rewards for enhancing a DPO-aligned SDXL model. Bold text marks the best result.

Table 11 reports additional MaPO-based SDXL results.

PickScore (↑\uparrow)HPSv2 (↑\uparrow)CLIP (↑\uparrow)
sbases_{\mathrm{base}}22.110.2936.99
sMaPOs_{\mathrm{MaPO}}22.020.3037.14
sbase+γ∗(sMaPO−sbase)s_{\mathrm{base}}+\gamma^{*}(s_{\mathrm{MaPO}}-s_{\mathrm{base}})22.150.3037.28

Table 11. Average rewards for SDXL, MaPO, and CGG applied to MaPO on prompts from the Pick-a-Pic v2 test set. Bold text marks the best result.

§ 4.1 presents the contrastive scoring form of SFT using positive-label and negative-label examples in Table 3. As discussed in § 5, CHATS also fine-tunes positive and negative models and introduces proxy-prompt-based sampling (PPBS). Table 12 compares CGG gradient guidance with CHATS-PPBS and shows similar performance under different sampling strategies.

More results of enhancing RLHF/DPO-style aligned models for SD 1.5 We also evaluate the officially released Diffusion-KTO SD 1.5 checkpoint in Table 13. The fine-tuned Diffusion-KTO checkpoint gives the best score among the evaluated γ\gamma values, and the CGG run matches this result at the selected scale γ∗=1\gamma^{*}=1.

sbases_{\mathrm{base}}sKTOs_{\mathrm{KTO}}sbase+γ∗(sKTO−sbase)s_{\mathrm{base}} + \gamma^{*}(s_{\mathrm{KTO}} - s_{\mathrm{base}})
PickScore20.52921.07221.072
Aesthetic5.7396.1456.145
HPSv20.2590.2910.291
CLIP33.38234.25234.252
ImageReward0.0640.6310.631

Table 13. Average rewards between SD 1.5, KTO, and applying CGG in KTO using prompts from the Pick-a-Pic v2 test set.

Results of ImageReward on ImageRewardDB test set Table 14 evaluates the (DPO, base) pair on the ImageRewardDB test set with the ImageReward score. CGG improves over the pre-trained model on ImageRewardDB [44] by 0.120 but stays slightly below the DPO checkpoint (1.030 versus 1.040), with γ\gamma fixed at the value selected on Pick-a-Pic.

ModelBase Pre-trainedBase Fine-tunedDiff.-DPO CGGMaPO Fine-tunedMaPO CGG
SDXL0.9101.0401.030 (+0.120)N/AN/A

Table 14. Average ImageReward scores on prompts from the ImageRewardDB test set. Bold text marks the best score. Parentheses report changes relative to the pre-trained model.

Supplementary heterogeneous-feedback results

The quantitative comparison that combines model-based CGG with FK Steering appears in the main text (Table 5). The broader deployment comparison against FK Steering with averaged rewards appears in Table 1 and Table 8.

Table 15 reports the PickScore+ImageReward two-preference experiment.

MetricBase Pre-trainedDPO Pick-a-PicDPO ImageRewardCGG (ours)
PickScore (↑\uparrow)22.11422.40522.07922.395
ImageReward (↑\uparrow)0.8570.8710.8341.070

Table 15. Average PickScore and ImageReward for two-preference alignment on SDXL using prompts from the Pick-a-Pic v2 test set. Bold text marks the best result.

Independent replication of the five-reward comparison

To check that the result of Table 1 does not depend on one machine or software stack, we reran the five-pair composition end to end on a different machine (also a single NVIDIA H100 NVL) with a separately installed environment, the same configuration, the same 500 Pick-a-Pic v2 test prompts, and the same pair scales. Table 16 reports the replication together with per-prompt win rates against the base model over the same prompts. All five axes improve over the base model in both runs. The CGG values of PickScore, Safety, and RedScore agree with Table 1 to within 0.03; the improvements differ more, from +0.006

MetricBaseCGGΔ\DeltaΔmain\Delta_{\mathrm{main}}Win-rate
PickScore22.03022.451+0.420+0.36173.0%
Safety0.9560.962+0.006+0.016–
ImageReward0.6961.160+0.464+0.35379.2%
RedScore5.8245.930+0.106+0.02654.8%
Realness3.5133.816+0.304+0.61353.0%

Table 16. Base and CGG columns are means from the replication run; Δ\Delta is the CGG-minus-base improvement in the replication and Δ\Delta (main) the corresponding improvement in Table 1. The win-rate column counts prompts on which CGG scores higher than the base model; Safety is a thresholded rate and has no per-prompt win definition. The ImageReward scorer in the replication environment gives lower absolute values than the one used for Table 1 (0.696 versus 0.857 for the base model), so that row is comparable only through Δ\Delta.

Metricsbases_{\mathrm{base}}PPBSCGG sbase+γ∗(sCHATS+−sCHATS−)s_{\mathrm{base}} + \gamma^{*}(s_{\mathrm{CHATS}}^{+} - s_{\mathrm{CHATS}}^{-})
PickScore22.11422.09522.153
Aesthetic6.4816.4626.348
HPSv20.2920.3090.304
CLIP36.99436.70537.483
ImageReward0.8571.0521.039

caption: Average rewards for SDXL, CHATS-PPBS, and CGG sampling with sCHATS+s_{\mathrm{CHATS}}^{+} and sCHATS−s_{\mathrm{CHATS}}^{-} on prompts from the Pick-a-Pic v2 test set. Bold text marks the best result. PPBS denotes the proxy-prompt-based sampling strategy proposed in CHATS [11].

:::

versus +0.016 on Safety to +0.304 versus +0.613 on Realness. Per prompt, CGG scores higher than the base model on 79.2% of prompts for ImageReward and 73.0% for PickScore; on RedScore (54.8%) and Realness (53.0%) the win rate is close to one half, so the mean gains on these two axes are not shared by most prompts. Mean NSFW probability also decreases (0.061 versus 0.066 for the base model), consistent with the Safety column.

Guidance geometry of multi-preference composition

To examine how composed preference directions behave during sampling, we log per-pair guidance statistics for the five-pair composition of Table 1 (quality: DPO−base; safety: MaPO−base; red: SFT+^{+}−SFT−^{-}; realism: RealVisXL−Animagine; image reward: ImageReward-DPO−base) under the same uniform pair scales, over 500 Pick-a-Pic v2 test prompts with 50 denoising steps. Figure 8 reports, for each pair, the norm of the contrastive direction ∥sρi−sκi∥\lVert s_{\rho_i} - s_{\kappa_i} \rVert and the cosine similarity between the favored and unfavored scores across timesteps. The five pairs differ on both statistics. The safety and realism pairs are the most contrastive, with mean cosine similarities of 0.39 and 0.28 and the largest direction norms (26.3 and 21.8); in both, the two sides render images in clearly different styles: MaPO drifts toward an anime style relative to the base model (Figure 1), and RealVisXL and Animagine were fine-tuned toward opposing styles. The quality and red pairs sit in between (cosines 0.79 and 0.90, norms 9.0 and 10.8). The image-reward pair is the most aligned with its anti-expert (cosine 0.92) and has by far the smallest norm (4.7), consistent with the weak ImageReward-DPO checkpoint, which falls below the base model on all five axes in Table 1: a pair whose two sides nearly agree supplies little guidance signal. The pairs therefore differ in both magnitude and favored–unfavored alignment: the safety and realism pairs contribute the largest directions and the image-reward pair the smallest.

Figure 8. Per-pair guidance geometry of the five-pair CGG composition (mean ± one standard deviation across prompts). Left: norm of each contrastive direction across diffusion timesteps (log scale), with the base score norm shown for scale. Right: cosine similarity between the favored and unfavored scores of each pair. All pairs share the uniform pair scale 1.0.

Implementation of methods and hyper-parameter tuning

CGG-FK: Integrating CGG with FK Steering

CGG-FK uses CGG to define the model-side denoising direction and FK Steering to perform reward-based particle selection. At each denoising step, CGG first forms a guided score from the anchor model and the selected contrastive preference pairs. FK Steering then treats the resulting transitions as its particle candidates, evaluates their clean-image estimates with the reward model, and resamples according to the FK weights. Thus, CGG changes how each candidate transition is proposed, while FK Steering keeps its original role as the particle-based reward selection step. Algorithm 2 summarizes this combined sampler.

Algorithm 2 CGG-FK sampling with model-level contrastive guidance and reward-based resampling

  1. Input: prompt cc, anchor score sancs_{\mathrm{anc}}, contrastive pairs {(sρi,sκi)}i=1N\{(s_{\rho_i},s_{\kappa_i})\}_{i=1}^{N}

  2. Input: pair scales {γi}i=1N\{\gamma_i\}_{i=1}^{N}, FK scale λ\lambda, number of particles JJ, scheduler, reward model r(c,x)r(c,\mathbf{x})

  3. Output: generated image x0\mathbf{x}_0

  4. Sample initial particle latents {xT(j)}j=1J\{\mathbf{x}^{(j)}_T\}_{j=1}^{J}

  5. for t←Tt \leftarrow T to 11 do

  6. &nbsp;&nbsp;for j←1j \leftarrow1 to JJ do

  7. &nbsp;&nbsp;&nbsp;&nbsp;ϵanc(j)=sanc(c,xt(j),t)\epsilon_{\mathrm{anc}}^{(j)} = s_{\mathrm{anc}}(c,\mathbf{x}^{(j)}_t,t)

  8. &nbsp;&nbsp;&nbsp;&nbsp;Δi(j)=sρi(c,xt(j),t)−sκi(c,xt(j),t)\Delta_i^{(j)} = s_{\rho_i}(c,\mathbf{x}^{(j)}_t,t) - s_{\kappa_i}(c,\mathbf{x}^{(j)}_t,t) for each pair ii

  9. &nbsp;&nbsp;&nbsp;&nbsp;ϵCGG(j)=ϵanc(j)+∑i=1NγiΔi(j)\epsilon_{\mathrm{CGG}}^{(j)} = \epsilon_{\mathrm{anc}}^{(j)} + \sum_{i=1}^{N}\gamma_i\Delta_i^{(j)}

  10. &nbsp;&nbsp;&nbsp;&nbsp;(x^0(j),x~t−1(j))=Scheduler⁡(ϵCGG(j),t,xt(j))(\hat{\mathbf{x}}_0^{(j)},\tilde{\mathbf{x}}_{t-1}^{(j)}) = \operatorname{Scheduler}(\epsilon_{\mathrm{CGG}}^{(j)},t,\mathbf{x}^{(j)}_t)

  11. &nbsp;&nbsp;&nbsp;&nbsp;wj∝exp⁡(λr(c,x^0(j)))w_j \propto\exp(\lambda r(c,\hat{\mathbf{x}}_0^{(j)}))

  12. &nbsp;&nbsp;end for

  13. &nbsp;&nbsp;Resample {xt−1(j)}j=1J\{\mathbf{x}_{t-1}^{(j)}\}_{j=1}^{J} from candidates {x~t−1(j)}j=1J\{\tilde{\mathbf{x}}_{t-1}^{(j)}\}_{j=1}^{J} according to weights {wj}j=1J\{w_j\}_{j=1}^{J}

  14. end for

  15. return x0\mathbf{x}_0 from the final particle set

Guidance-scale hyperparameter: γ\gamma-sensitivity

In this section, we provide results for the γ\gamma-sensitivity experiments. Here γ\gamma denotes the single active guidance scale used in the experiments, matching γi\gamma_i in Eq. (11) when only one contrastive pair is varied.

Choice of guidance scale We empirically investigate the effect of the guidance scale by sweeping γ\gamma from 0.25 upward and selecting γ∗\gamma^* on the Pick-a-Pic v2 validation set. As shown in Figure 9 (Left), PickScore first increases and then decreases as γ\gamma grows, giving a clear validation criterion for choosing the default scale. Based on this trend across different contrastive forms, we select γ∗=0.75\gamma^* = 0.75 for SDXL as the default guidance scale for experiments reported in § 4.1. We also study γ\gamma-sensitivity across different contrastive forms and metrics. Figure 9 (Right) extends the CGG(Pos, Neg) sweep to γ=5.0\gamma= 5.0.

γ-sensitivity plots for PickScore

Figure 9. γ\gamma-sensitivity of PickScore (yy-axis) over the guidance scale γ\gamma (xx-axis). Left: applying CGG in Diffusion-DPO. Right: applying CGG in SFT(Pos) and SFT(Neg).

γ-sensitivity plots for Aesthetic and HPSv2

Figure 10. γ\gamma-sensitivity of applying CGG in Diffusion-DPO over the guidance scale γ\gamma (xx-axis). Left: Aesthetic (yy-axis). Right: HPSv2 (yy-axis).

γ-sensitivity plots for CLIP and ImageReward

Figure 11. γ\gamma-sensitivity of applying CGG in Diffusion-DPO over the guidance scale γ\gamma (xx-axis). Left: CLIP (yy-axis). Right: ImageReward (yy-axis).

γ-sensitivity of applying CGG in SFT(Pos) and SFT(Neg) over the guidance scale γ (x-axis). Left: Aesthetic (y-axis). Right: CLIP (y-axis).

Figure 12. γ-sensitivity of applying CGG in SFT(Pos) and SFT(Neg) over the guidance scale γ (x-axis). Left: Aesthetic (y-axis). Right: CLIP (y-axis).

γ-sensitivity of applying CGG in SFT(Pos) and SFT(Neg) over the guidance scale γ (x-axis). Left: HPSv2 (y-axis). Right: ImageReward (y-axis).

Figure 13. γ-sensitivity of applying CGG in SFT(Pos) and SFT(Neg) over the guidance scale γ (x-axis). Left: HPSv2 (y-axis). Right: ImageReward (y-axis).

More qualitative results

In this section, we provide qualitative comparisons between the base model, the DPO checkpoint, and CGG with the (DPO, base) pair of Appendix § 9.§ 4 (Figure 14 and Figure 15), followed by additional style-avoidance examples.

Qualitative results on SD 1.5 for four prompts, comparing base, DPO, and guided results

Figure 14. Qualitative results on SD 1.5. Prompts: 1) a square green owl made of fimo 2) A smooth purple octopus sitting on a rock in the middle of the sea, waves crashing, golden hour, sun reflections, high quality 3d render 3) Purple cat eating cake 4) A white cat wearing a red hat holding sticks

Qualitative results showing three columns of generated images labelled $s_{\mathrm{base}}$, $s_{\mathrm{DPO}}$, and $s_{\mathrm{base}}+\gamma^{*}(s_{\mathrm{DPO}}-s_{\mathrm{base}})$

Figure 15. Qualitative results on SDXL. Prompts: 1) light blue haired anime girl with bug antennas 2) Mystical forest with glowing mushrooms and a babbling brook 3) portrait of sir borzoi dog wearing royal uniform and crown 4) pikachu in a pinstripe suit

Where the suppression is applied Figure 17 isolates the three settings of § 4 on prompts that explicitly request a protected style, holding the prompt and the seed fixed across columns so that every visible difference is attributable to the suppression mechanism alone. Column (a) is the base model, which honors the style request. Column (b) suppresses the style inside the text-conditioning channel. The sampler resolves the conflict by moving the sample away from the picture the base model would have produced: the kitchen is pushed to a hot red palette, the sky above the propeller airplane drains to a muted haze, the bakery is recomposed around a different window, and the village disappears from the river valley. Column (c) suppresses the style at the model level: the anti-expert subtracts the style checkpoint’s contribution from the base score at each denoising step while the user’s conditioning is passed through unchanged. The layout and the objects the prompt named therefore survive: the kettles stay on the stove and the village stays on the terraces; what changes is the rendering, which leaves the studio’s signature for a flatter, harder-edged look. This is the qualitative counterpart of the matched-suppression comparison in § 4: averaged over the twelve style-invocation prompts, the negative prompt reaches its suppression at a CLIP image–image similarity of 0.82 to the base sample, whereas the anti-expert is at 0.92 for the same amount of style removed and still 0.87 at the γ=1\gamma= 1 shown here, where it removes nearly twice as much.

Extended Related Work

This section provides an expanded review of related work, expanding on the comparisons presented in § 5.

Favored and unfavored distributions for preference modeling Pairwise preference data contain both positive and negative information: they indicate what users favor and what they reject. RLHF and DPO-style pipelines exploit this contrast to train reward models or directly optimize generative models [4, 34, 40]. In language models, objectives such as SimPO, ORPO, and ff-DPO further show that contrastive preference signals can improve alignment beyond supervised learning on favored examples alone [17, 31, 41]. This perspective has inspired data-level fine-tuning methods that explicitly model the “unfavored” (anti-expert) side of preference data. For instance, DExperts trains or selects expert and anti-expert language models from desirable and undesirable corpora, then combines them during decoding [29]. In diffusion models, CHATS observes a mismatch between the fine-tuning objective of DiffusionDPO and its sampling procedure, and proposes a revised objective that jointly trains diffusion models corresponding to favored and unfavored distributions to better support inference-time sampling [11]. Concurrently, Diffusion-NPO highlights the limitations of Diffusion-DPO in capturing unfavored preferences, modifying the preference-optimization objective to use negative preference data more directly [42]. These methods use favored/unfavored structure at the data and loss level: NPO and CHATS modify the training objective and retrain models on preference-pair datasets, while DExperts relies on experts and anti-experts learned from attribute-specific corpora. Among them, DExperts is closest in spirit to CGG: its decoding rule already adds to a base model a scaled contrast between a heterogeneous expert and anti-expert. That rule, however, is defined on the next-token logits of an autoregressive factorization, where every decoding step exposes an exact conditional distribution over a discrete vocabulary, so the combined logits directly parameterize the next sampling step. Diffusion sampling offers no such per-step likelihood: it follows a score field across a continuum of noise levels whose intermediate marginals differ from the data distribution, so a checkpoint contrast is meaningful only if it can be justified at every timestep. CGG provides this justification: Eq. (13) reads the score difference as the gradient of a timestep-indexed implicit reward, exact at the tilted optimum, and Eq. (6) reads a designated pair as an implicit favored-versus-unfavored classifier. A related line of work acts on the weights instead, removing an undesired concept such as a protected artistic style by permanently editing the generator, once per concept [12, 13]. CGG instead lifts the same contrast to a model-level test-time composition rule. Given existing diffusion checkpoints, CGG derives a contrastive preference direction directly from the denoising-score difference sexpert−santi-experts_{\mathrm{expert}}-s_{\mathrm{anti\text{-}expert}} at inference time, requiring no new loss design, no model retraining, and no access to the raw preference dataset that produced the checkpoints. Because the contrast is applied during sampling rather than baked into the weights, the suppressed concept can also be changed, dialed in strength, or combined with others without retraining, which we examine for style avoidance in § 4.

The contrast is therefore between data-level training, where NPO, CHATS, and DPO variants fix the preference trade-off inside the weights of one checkpoint and must re-curate negative-preference data and retrain whenever it changes, and model-level reuse, where off-the-shelf fine-tuned models that exhibit an undesirable attribute become anti-experts at inference time.

Test-time alignment for diffusion models As discussed in § 2, the primary challenge of test-time alignment lies in the accurate estimation of the guidance gradient signal ∇xtrtest(c,xt)\nabla_{x_t} r_{\mathrm{test}}(c,x_t). Existing test-time alignment methods address this through two main paradigms. One line of work estimates the reward guidance signal during sampling by reconstructing a denoised estimate x^0\hat{x}_0 and evaluating its reward to adjust the guidance direction accordingly. This paradigm has been explored across various settings, including inverse problems and classifier guidance [1, 5, 46]. A second line of work adopts particle-based strategies, most commonly through Sequential Monte Carlo (SMC) sampling. These methods maintain multiple particles during diffusion, resample them according to explicit reward evaluations, and thereby increase the likelihood of generating high-reward samples [24, 36, 43]. Later work reports that SMC-based approaches improve reward alignment over single-sample reward guidance [20, 37].

CGG is complementary to these methods. It constructs a preference guidance signal by composing diffusion distributions, while particle-based methods define how samples are propagated and resampled. In § 4, we combine CGG with FK Steering to study whether model-based contrastive guidance can be paired with sampling-based reward steering.

Compositional and test-time multi-preference alignment Building on the idea of compositional diffusion models [8, 30], recent works have extended compositional diffusion models from image generation to flexible test-time alignment. For instance, RNE formulates test-time alignment through diffusion density estimation and energy-based modeling [14], while Product of Experts (PoE) integrates generative and discriminative experts by estimating dynamic transition kernels via Markov Chain Monte Carlo (MCMC) during sampling [48]. These approaches typically redesign the sampling path (transition kernel) at each diffusion step in order to incorporate the reward model. CGG instead keeps the sampling path and changes only the score, by composing fine-tuned diffusion models.

Gradient-space guidance families The linear form of Eq. (11), an anchor score plus scaled score differences, is mathematically standard: it is the gradient-space expression of a product of experts, and variants of it recur throughout the guidance literature [16, 22, 23]. What separates gradient-space guidance methods is instead where the contrast comes from, and Table 2 organizes the diffusion guidance families along this axis. Classifier-free guidance realizes the contrast at the conditioning level: the pair is a single network under two conditions, so a negative concept must be routed through the prompt channel [16]; CFGRL extends this view by connecting CFG to policy improvement in reinforcement learning [10]. The restriction matters in practice: when the user prompt and the negative concept name the same attribute, the two conditionings are in direct opposition, and § 4.2 measures the resulting over-correction on style-naming prompts, where text-level negation abandons the medium the user asked for while a model-level anti-expert leaves it intact (Table 4). A second family realizes the contrast within a training lineage: Autoguidance contrasts a model against a degraded twin of itself [23], RLG contrasts an RL fine-tuned checkpoint against its own reference and interprets the guidance scale as the KL regularization strength [22], and Diffusion Blend blends reward-specific fine-tuned models against their shared reference [3]. In this family the unfavored side is fixed by the training relation and coincides with the anchor, so the composition can only amplify attributes an aligned expert already encodes; Eq. (11) recovers it with N=1N = 1 and panc=κ1=prefp_{\mathrm{anc}} = \kappa_1 = p_{\mathrm{ref}}. CGG occupies the third family: the contrast is a free checkpoint contrast, with the anchor, favored, and unfavored models chosen independently, the pair scales signed, and several pairs composed at once, e.g., an RLHF/DPO checkpoint against the reference model or an SFT-positive model against an SFT-negative model. When preference trade-offs shift, traditional RLHF/DPO pipelines must retrain or re-optimize a scalarized model, and CFG can only re-word a fixed conditional/unconditional contrast. CGG changes the trade-off by changing which model-level directions are composed and how strongly they are weighted, composing heterogeneous fine-tuned models with no retraining and no access to raw preference datasets, at the price of additional sampling-time computation that we quantify in Appendix Table 17.

Inference overhead

Since CGG evaluates the favored and unfavored models for each active pair at each denoising step, its sampling latency scales with the number of composed pairs. Table 17 reports wall-clock latency and peak VRAM under the shared SDXL sampling setup (50 denoising steps, 1024×10241024 \times1024 resolution, FP16, and CFG scale 7.5) on a single NVIDIA H100 NVL, averaged over 19 Pick-a-Pic v2 test prompts. Swapping in a fine-tuned UNet (DPO) matches the base sampling cost (3.21 vs. 3.18 sec/img). CGG evaluates the favored and unfavored UNets of every pair at each denoising step, so its cost grows with the number of pairs: 12.53 sec/img for two pairs and 24.93 sec/img for the five-pair composition of Table 1. FK Steering with four particles and a PickScore reward reaches 43.58 sec/img, reflecting the cost of particle-based reward steering. The two methods trade latency against memory in opposite directions. Peak VRAM for CGG scales with the number of distinct experts held in memory, reaching 45.7 GB for the five-pair composition against 29.5 GB for FK Steering, which keeps a single UNet and batches its particles. These numbers are for an implementation that holds each expert UNet as a full copy. Storing experts and anti-experts as LoRA adapters [19] on a shared frozen SDXL backbone would reduce memory; we have not measured this configuration.

Methodsec/img (↓\downarrow)Peak VRAM (GB, ↓\downarrow)
Base3.18±0.023.18 \pm0.0211.5
DPO3.21±0.013.21 \pm0.0111.5
CGG 2-pair12.53±0.0312.53 \pm0.0326.2
CGG 5-pair24.93±0.0524.93 \pm0.0545.7
FK Steering43.58±0.4043.58 \pm0.4029.5

Table 17. Inference overhead on SDXL using 19 Pick-a-Pic prompts, 50 denoising steps, and CFG scale 7.5. Lower values are better for both runtime and memory. FK Steering latency is measured with four particles and a single PickScore reward.

References

  1. [1]Arpit Bansal, Hong-Min Chu, Avi Schwarzschild, Soumyadip Sengupta, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Universal guidance for diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 843–852, 2023.
  2. [2]Ralph Allan Bradley and Milton E. Terry. Rank analysis of incomplete block designs: I. the method of paired comparisons. Biometrika, 39(3/4):324–345, 1952. ISSN 00063444, 14643510. URL http://www.jstor.org/stable/2334029.DOI
  3. [3]Min Cheng, Fatemeh Doudi, Dileep Kalathil, Mohammad Ghavamzadeh, and Panganamala R Kumar. Diffusion blend: Inference-time multi-preference alignment for diffusion models. arXiv preprint arXiv:2505.18547, 2025.arxiv.org/abs/2505.18547
  4. [4]Paul F Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei. Deep reinforcement learning from human preferences. Advances in neural information processing systems, 30, 2017.arxiv.org/abs/1706.03741
  5. [5]Hyungjin Chung, Jeongsol Kim, Michael T Mccann, Marc L Klasky, and Jong Chul Ye. Diffusion posterior sampling for general noisy inverse problems. arXiv preprint arXiv:2209.14687, 2022.arxiv.org/abs/2209.14687
  6. [6]Jasper Dekoninck, Marc Fischer, Luca Beurer-Kellner, and Martin Vechev. Controlled text generation via language model arithmetic. In The Twelfth International Conference on Learning Representations, 2024.arxiv.org/abs/2311.14479
  7. [7]Prafulla Dhariwal and Alexander Quinn Nichol. Diffusion models beat GANs on image synthesis. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, 2021.
  8. [8]Yilun Du and Leslie Pack Kaelbling. Position: Compositional generative modeling: A single model is not all you need. In Forty-first International Conference on Machine Learning, 2024. URL https://openreview.net/forum?id=SoNexFx8qz.arxiv.org/abs/2402.01103
  9. [9]Yilun Du, Conor Durkan, Robin Strudel, Joshua B. Tenenbaum, Sander Dieleman, Rob Fergus, Jascha Sohl-Dickstein, Arnaud Doucet, and Will Grathwohl. Reduce, reuse, recycle: Compositional generation with energy-based diffusion models and MCMC. In Fortieth International Conference on Machine Learning, 2023.arxiv.org/abs/2302.11552
  10. [10]Kevin Frans, Seohong Park, Pieter Abbeel, and Sergey Levine. Diffusion guidance is a controllable policy improvement operator, 2026. URL https://openreview.net/forum?id=PwAUsAk4i6.arxiv.org/abs/2505.23458
  11. [11]Minghao Fu, Guo-Hua Wang, Liangfu Cao, Qing-Guo Chen, Zhao Xu, Weihua Luo, and Kaifu Zhang. CHATS: Combining human-aligned optimization and test-time sampling for text-to-image generation. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=D4Y71nbG8g.arxiv.org/abs/2502.12579
  12. [12]Rohit Gandikota, Joanna Materzyńska, Jaden Fiotto-Kaufman, and David Bau. Erasing concepts from diffusion models. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2023.arxiv.org/abs/2303.07345
  13. [13]Rohit Gandikota, Hadas Orgad, Yonatan Belinkov, Joanna Materzyńska, and David Bau. Unified concept editing in diffusion models. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), 2024.arxiv.org/abs/2308.14761
  14. [14]Jiajun He, José Miguel Hernández-Lobato, Yuanqi Du, and Francisco Vargas. Rne: a plug- and-play framework for diffusion density estimation and inference-time control. arXiv preprint arXiv:2506.05668, 2025.
  15. [15]Geoffrey E Hinton. Training products of experts by minimizing contrastive divergence. Neural computation, 14(8):1771–1800, 2002.pubmed.ncbi.nlm.nih.gov/12180402
  16. [16]Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022.arxiv.org/abs/2207.12598
  17. [17]Jiwoo Hong, Noah Lee, and James Thorne. Orpo: Monolithic preference optimization without reference model. arXiv preprint arXiv:2403.07691, 2024.arxiv.org/abs/2403.07691
  18. [18]Jiwoo Hong, Sayak Paul, Noah Lee, Kashif Rasul, James Thorne, and Jongheon Jeong. Margin-aware preference optimization for aligning diffusion models without reference, 2024.
  19. [19]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022. URL https://arxiv.org/abs/2106.09685.
  20. [20]Vineet Jain, Kusha Sareen, Mohammad Pedramfar, and Siamak Ravanbakhsh. Diffusion tree sampling: Scalable inference-time alignment of diffusion models. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=3D88hC00Gd.arxiv.org/abs/2506.20701
  21. [21]Zhou Jiang, Yandong Wen, and Zhen Liu. Rethinking preference alignment for diffusion models with classifier-free guidance. arXiv preprint arXiv:2602.18799, 2026.arxiv.org/abs/2602.18799
  22. [22]Luozhijie Jin, Zijie Qiu, Zijie Diao, Lifeng Qiao, Ning Ding, Alex Lamb, and Xipeng Qiu. Inference-time alignment control for diffusion models with reinforcement learning guidance. In Pluralistic Alignment Workshop at ICML 2026, 2026. URL https://openreview.net/forum?id=YVmxn2FCr n.arxiv.org/abs/2508.21016
  23. [23]Tero Karras, Miika Aittala, Tuomas Kynkäänniemi, Jaakko Lehtinen, Timo Aila, and Samuli Laine. Guiding a diffusion model with a bad version of itself. Advances in Neural Information Processing Systems, 37:52996–53021, 2024.arxiv.org/abs/2406.02507
  24. [24]Sunwoo Kim, Minkyu Kim, and Dongmin Park. Test-time alignment of diffusion models without reward over-optimization. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=vi3DjUhFVm.arxiv.org/abs/2501.05803
  25. [25]Yuval Kirstain, Adam Polyak, Uriel Singer, Shahbuland Matiana, Joe Penna, and Omer Levy. Pick-a-pic: An open dataset of user preferences for text-to-image generation. Advances in neural information processing systems, 36:36652–36663, 2023.arxiv.org/abs/2305.01569
  26. [26]Shufan Li, Konstantinos Kallidromitis, Akash Gokul, Yusuke Kato, and Kazuki Kozuka. Aligning diffusion models by optimizing human utility. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=MTMShU5QaC.arxiv.org/abs/2404.04465
  27. [27]Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, Benjamin Newman, Binhang Yuan, Bobby Yan, Ce Zhang, Christian Alexander Cosgrove, Christopher D Manning, Christopher Re, Diana Acosta-Navas, Drew Arad Hudson, Eric Zelikman, Esin Durmus, Faisal Ladhak, Frieda Rong, Hongyu Ren, Huaxiu Yao, Jue WANG, Keshav Santhanam, Laurel Orr, Lucia Zheng, Mert Yuksekgonul, Mirac Suzgun, Nathan Kim, Neel Guha, Niladri S. Chatterji, Omar Khattab, Peter Henderson, Qian Huang, Ryan Andrew Chi, Sang Michael Xie, Shibani Santurkar, Surya Ganguli, Tatsunori Hashimoto, Thomas Icard, Tianyi Zhang, Vishrav Chaudhary, William Wang, Xuechen Li, Yifan Mai, Yuhui Zhang, and Yuta Koreeda. Holistic evaluation of language models. Transactions on Machine Learning Research, 2023. ISSN 2835-8856. URL https://openreview.net/forum?id=i04IZibEqW. Featured Certification, Expert Certification.
  28. [28]Ren-Wei Liang, Chin Ting Hsu, Chan-Hung Yu, Saransh Agrawal, Shih-Cheng Huang, Chieh-Yen Lin, Shang-Tse Chen, Kuan-Hao Huang, and Shao-Hua Sun. Adaptive helpfulness–harmlessness alignment with preference vectors. In Vera Demberg, Kentaro Inui, and Lluís Marquez, editors, Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1646–1668, Rabat, Morocco, March 2026. Association for Computational Linguistics. ISBN 979-8-89176-380-7. doi: 10.18653/v1/2026.eacl-long.77. URL https://aclanthology.org/2026.eacl-long.77/.DOI
  29. [29]Alisa Liu, Maarten Sap, Ximing Lu, Swabha Swayamdipta, Chandra Bhagavatula, Noah A. Smith, and Yejin Choi. DExperts: Decoding-time controlled text generation with experts and anti-experts. In Chengqing Zong, Fei Xia, Wenjie Li, and Roberto Navigli, editors, Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 6691–6706, Online, August 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.acl-long.522. URL https://aclanthology.org/2021.acl-long.522/.DOI
  30. [30]Nan Liu, Shuang Li, Yilun Du, Antonio Torralba, and Joshua B Tenenbaum. Compositional visual generation with composable diffusion models. In European conference on computer vision, pages 423–439. Springer, 2022.arxiv.org/abs/2206.01714
  31. [31]Yu Meng, Mengzhou Xia, and Danqi Chen. Simpo: Simple preference optimization with a reference-free reward. Advances in Neural Information Processing Systems, 37:124198–124235, 2024.arxiv.org/abs/2405.14734
  32. [32]Dustin Podell, Zion English, Kyle Lacey, Andreas Blattmann, Tim Dockhorn, Jonas Müller, Joe Penna, and Robin Rombach. SDXL: Improving latent diffusion models for high-resolution image synthesis. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=di52zR8xgf.arxiv.org/abs/2307.01952
  33. [33]Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PmLR, 2021.arxiv.org/abs/2103.00020
  34. [34]Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. Advances in Neural Information Processing Systems, 36:53728–53741, 2023.arxiv.org/abs/2305.18290
  35. [35]Patrick Schramowski, Manuel Brack, Björn Deiseroth, and Kristian Kersting. Safe latent diffusion: Mitigating inappropriate degeneration in diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 22522–22531, June 2023.arxiv.org/abs/2211.05105
  36. [36]Raghav Singhal, Zachary Horvitz, Ryan Teehan, Mengye Ren, Zhou Yu, Kathleen McKeown, and Rajesh Ranganath. A general framework for inference-time scaling and steering of diffusion models. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=Jp988ELppQ.arxiv.org/abs/2501.06848
  37. [37]Marta Skreta, Tara Akhound-Sadegh, Viktor Ohanesian, Roberto Bondesan, Alan Aspuru-Guzik, Arnaud Doucet, Rob Brekelmans, Alexander Tong, and Kirill Neklyudov. Feynman-kac correctors in diffusion: Annealing, guidance, and product of experts. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=VhCOkRcqWu.
  38. [38]Gowthami Somepalli, Anubh av Gupta, Kamal Gupta, Shramay Palta, Micah Goldblum, Jonas Geiping, Abhinav Shrivastava, and Tom Goldstein. Measuring style similarity in diffusion models, 2024.arxiv.org/abs/2404.01292
  39. [39]Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021.
  40. [40]Bram Wallace, Meihua Dang, Rafael Rafailov, Linyi Zhou, Aaron Lou, Senthil Purushwalkam, Stefano Ermon, Caiming Xiong, Shafiq Joty, and Nikhil Naik. Diffusion model alignment using direct preference optimization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8228–8238, June 2024.arxiv.org/abs/2311.12908
  41. [41]Chaoqi Wang, Yibo Jiang, Chenghao Yang, Han Liu, and Yuxin Chen. Beyond reverse kl: Generalizing direct preference optimization with diverse divergence constraints. arXiv preprint arXiv:2309.16240, 2023.arxiv.org/abs/2309.16240
  42. [42]Fu-Yun Wang, Yunhao Shui, Jingtan Piao, Keqiang Sun, and Hongsheng Li. Diffusion-NPO: Negative preference optimization for better preference aligned generation of diffusion models. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=jJi7nz5Cxc.arxiv.org/abs/2505.11245
  43. [43]Luhuan Wu, Brian Trippe, Christian Naesseth, David Blei, and John P Cunningham. Practical and asymptotically exact conditional sampling in diffusion models. Advances in Neural Information Processing Systems, 36:31372–31403, 2023.arxiv.org/abs/2306.17775
  44. [44]Jiaz heng Xu, Xiao Liu, Yuchen Wu, Yuxuan Tong, Qinkai Li, Ming Ding, Jie Tang, and Yuxiao Dong. ImageReward: Learning and evaluating human preferences for text-to-image generation. Advances in Neural Information Processing Systems, 36:15903–15935, 2023.arxiv.org/abs/2304.05977
  45. [45]Po-Hung Yeh, Kuang-Huei Lee, and Jun Cheng Chen. Training-free diffusion model alignment with sampling demons. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=tfemqullED.arxiv.org/abs/2410.05760
  46. [46]Jiwen Yu, Yinhui Wang, Chen Zhao, Bernard Ghanem, and Jian Zhang. Freedom: Training-free energy-guided conditional diffusion model. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 23174–23184, 2023.arxiv.org/abs/2303.09833
  47. [47]Sixian Zhang, Bohan Wang, Junqiang Wu, Yan Li, Tingting Gao, Di Zhang, and Zhongyuan Wang. Learning multi-dimensional human preference for text-to-image generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8018–8027, 2024.arxiv.org/abs/2405.14705
  48. [48]Yunzhi Zhang, Carson Murtuza-Lanier, Zizhang Li, Yilun Du, and Jiajun Wu. Product of experts for visual generation. arXiv preprint arXiv:2506.08894, 2025.arxiv.org/abs/2506.08894

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type