Abstract
Diffusion Direct Preference Optimization (DPO) provides a reward-free route for aligning text-to-image diffusion models with human preferences, but its supervision is commonly restricted to fixed winner–loser pairs. When dispreferred examples cover only a limited subset of failure modes, optimization can over-emphasize local dataset preferences and provide insufficient corrective contrasts. We present AdvDPO, an adversarial candidate-negative preference optimization framework for diffusion models. AdvDPO couples the policy with an auxiliary adversarial diffusion network that produces a local perturbation direction from the preferred diffusion state. The resulting candidate augments the original preference pair while preserving the prompt, timestep, and noise target. The policy learns from both real and synthesized preference pairs, whereas the adversarial network is alternately trained with reversed preference supervision and an attack objective that keeps synthesized candidates challenging for the current policy. On three test sets and two diffusion backbones, AdvDPO achieves the strongest automatic scores among the compared methods and the largest preference share in the anonymous user study.
1. Introduction
Text-to-image diffusion models have become a leading paradigm for high-fidelity and prompt-conditioned image generation [1,2]. Nevertheless, a pretrained denoising objective and textual conditioning do not fully encode subjective human judgments of visual quality, semantic faithfulness, and perceptual plausibility. Therefore, post-training alignment is required in order to adapt a pretrained generator to the preferences expressed by its users.
Direct Preference Optimization (DPO) is attractive for this purpose because it learns directly from pairwise comparisons without online reinforcement learning or explicit reward maximization [3]. Diffusion DPO transfers this principle to denoising models by comparing the reference-relative denoising errors of preferred and dispreferred images [4]. However, realistic preference datasets provide only a small number of labeled comparisons for each prompt; consequently, the loser side may expose only a narrow subset of possible failure modes, and training on fixed pairs can leave the policy without contrasts against other plausible but undesirable generations.
We address this limitation with AdvDPO, which augments diffusion DPO with adversarially synthesized candidate negatives. AdvDPO couples a diffusion policy with an auxiliary adversarial U-Net that predicts a local perturbation direction from the preferred noisy latent. The synthesized state retains the prompt, timestep, and noise target of the preferred state, which keeps the additional comparison controlled and locally coupled. The policy is optimized with both the original winner–loser pair and the synthesized winner–candidate pair. In alternating steps, the adversary is optimized with label-flipped supervision and an attack term that adapts the synthesized candidate to the current policy. The auxiliary branch is discarded after training, and does not add inference-time cost.
The main contributions of this work are as follows:
- We extend diffusion DPO with adaptive candidate negatives that supplement fixed winner–loser supervision without additional human annotations.
- We introduce a local adversarial perturbation strategy and an alternating objective that preserve diffusion-state comparability while adapting the candidate to the evolving policy.
- Experiments on SD1.5 and SDXL together with component ablations and an anonymous user study show that AdvDPO outperforms the compared baselines on the four preference metrics and receives the highest weighted preference share in the user study.
The remainder of this article is organized as follows: Section 2 reviews text-to-image diffusion and preference alignment methods; Section 3 introduces diffusion training and diffusion DPO; Section 4 presents AdvDPO; Section 5 reports the experiments; and Section 6 provides conclusions and discusses the paper’s limitations.
2. Related Work
2.1. Text-to-Image Diffusion Models
Modern text-to-image diffusion systems build on denoising diffusion probabilistic models [5] and classifier-free guidance [6]. Contrastive Language–Image Pre-training (CLIP) learns shared image–text representations [7]. Large-scale systems such as Imagen [8] have established strong text-conditioned synthesis, while latent diffusion models reduce computational cost by operating in a learned latent space [1]. SDXL subsequently strengthened the architecture and conditioning design for high-resolution generation [2]. Related advances in flow matching [9] and latent adversarial diffusion distillation [10] have further broadened the design space for efficient and high-quality generation.
A recent survey in Electronics identified controllability, semantic grounding, and human-centered quality assessment as central challenges for modern image generation systems [11]. Application-oriented work in the same journal has also shown that LoRA can specialize a pretrained text-to-image diffusion model under limited data and computational resources [12]. In addition, multiscale temporal modeling supports task-specific visual representation learning [13]. Despite these advances in fidelity, prompt understanding, and adaptation efficiency, the underlying generative objective does not clearly distinguish outputs preferred by users from outputs that are merely plausible. This gap motivates a preference-oriented post-training approach.
2.2. Preference Alignment for Diffusion Models
Early text-to-image alignment research developed both evaluation signals and optimization procedures. ImageReward [14] and HPSv2 [15] learn human judgments, while TIFA evaluates text–image faithfulness through question answering [16] and Pick-a-Pic provides large-scale pairwise preference data for direct supervision [17]. RichHF further collects fine-grained human feedback beyond a single scalar judgment [18]. Reward-based optimization includes reinforcement learning fine-tuning in DPOK [19] and direct fine-tuning on differentiable rewards [20], including reward backpropagation in AlignProp [21]. Other methods align semantic concepts or use image understanding feedback, as exemplified by CoMat [22] and DreamSync [23]. While these approaches demonstrate the value of feedback-driven post-training, reward optimization also adds modeling and optimization complexity, and can be sensitive to errors in the feedback signal.
Diffusion DPO avoids an explicit reward model by expressing the pairwise objective through reference-relative denoising errors [4]. Recent work in Electronics has proposed xDPO, which attenuates Kullback–Leibler (KL) regularization and introduces a higher-order divergence term to balance preference improvement against preservation of the pretrained distribution [24]. Subsequent methods improve the objective or the construction of diffusion comparisons. KTO adapts human utility optimization to diffusion alignment [25]; DSPO directly optimizes diffusion scores [26]; InPO [27] and Inversion-DPO [28] use inversion trajectories to improve preference comparisons; SmPO smooths the objective through ReNoise inversion [29]; and SPO targets aesthetic improvement through stepwise preference optimization [30]. Other variants explore noise-aware step level rewards [31], reference-free margin objectives [32], and negative-preference learning with conditional or self-generated supervision [33]. A broader survey discusses these approaches within the general design space of diffusion model alignment [34].
Diffusion-NPO uses a negative-preference model for sampling guidance, while InPO constructs comparisons through inversion and MaPO optimizes a reference-free preference margin. AdvDPO instead couples local candidate construction with online adversarial policy adaptation. Most pairwise approaches still rely on fixed dispreferred examples in which each fixed loser supplies only one observed contrast for a prompt, and may not represent other plausible failure modes; its usefulness can also diminish as the policy improves. AdvDPO supplements these fixed pairs by synthesizing an additional policy-aware candidate locally around the preferred diffusion state. This candidate augments the DPO comparison set during training, and the auxiliary branch is removed before inference.
3. Preliminaries
3.1. Diffusion Models
Let be a clean latent and let t denote a diffusion timestep. The forward process adds Gaussian noise according to
where and is determined by the noise schedule. A conditional denoising network predicts the injected noise under text condition c. Its per-sample training error is
The latent-space formulation makes this training procedure practical for high-resolution text-to-image generation [1].
3.2. Direct Preference Optimization for Diffusion Models
Let denote a preference triplet with prompt c, preferred image , and dispreferred image . For a sampled timestep and noise, the two images are noised under the same diffusion condition using Equation (1). Following diffusion DPO [4], their preference loss is computed relative to a frozen reference denoiser :
where is preferred over , abbreviates the denoising error for sample u, and controls preference strength. The reference-relative terms encourage a larger denoising improvement on the preferred image than on the dispreferred image. AdvDPO retains this reward-free objective and augments its comparison set with adaptive candidate negatives.
4. Method
AdvDPO keeps the standard winner–loser comparison, synthesizes an additional candidate negative from the preferred state, and alternates policy and adversary updates. As illustrated in Figure 1, the synthesized negative is designed so as to remain comparable to the preferred image while exposing a weakness of the current policy.
Figure 1.
Overview of AdvDPO. The adversarial U-Net produces a local perturbation from a preferred diffusion state, while the policy learns from both real and synthesized preference pairs. The displayed candidate is a DDIM-decoded visualization; construction and loss computation operate in latent space. Forward arrows show computations, return arrows indicate updates, and flames mark the network updated in each phase.
4.1. Local Adversarial Perturbation
Instead of independently sampling another negative, AdvDPO constructs a local candidate from the preferred sample. Given , the conditional adversarial network predicts a noise-space direction and forms
where controls the perturbation magnitude. Equation (4) can be obtained by replacing the winner noise with , reconstructing an estimate, and re-noising it with the original . The shared noise cancels across the reconstruction and re-noising operations, yielding the local update above. The synthesized state is evaluated with the same prompt c, timestep t, and target noise as , meaning that the construction is a local adversarial perturbation in diffusion-state space. The perturbation strength sampling rule used in the experiments is specified in the training details of Section 5.1.
In the upper panel of Figure 1, frozen VAE encoding and forward noising produce ; the adversary predicts and constructs through Equation (4). The predictions and are evaluated under the shared diffusion condition. The lower panel reverses the original preference labels for the adversarial branch, with its errors and reversed-preference loss defined in Equations (5) and (6); the dashed connectors link the synthesized-pair loss to both objectives in Equation (7).
4.2. Adversarial Preference Optimization
The policy and adversary are conditional diffusion U-Nets with different roles and trainable parameters. The policy and its frozen reference are initialized from the same generation backbone. The adversary is initialized from a pretrained negative-preference U-Net. SD1.5 fully fine-tunes this U-Net with a separate frozen copy as ; SDXL adapts it with trainable low-rank adapters, and disabling them gives the frozen adversarial reference. This construction supplies a fixed reference for each branch while allowing the policy and adversary to be optimized independently. The complete parameterization and freezing configuration is reported in the training details of Section 5.1.
For , define
The label-flipped term treats as preferred over for the adversarial branch:
The factor in Equations (3) and (6) uses the denoising error scaling convention of diffusion DPO. AdvDPO alternates between
On even optimization steps, is fixed andthe candidate is detached, with the policy updated using the real-pair and synthesized-pair losses. On odd steps, the policy weights are held fixed while gradients are propagated through its prediction on to update the trainable adversarial parameters. Minimizing the negative attack term maximizes the current policy’s DPO loss on the synthesized pair. The numerical loss weights and optimization settings are consolidated in the training details of Section 5.1.
Training algorithm.
- Step 1:
- Initialize the policy and its reference from the same backbone. Pretrain the adversary on reversed winner–loser labels and fix the branch references; select full adversarial parameters for SD1.5 or adversarial LoRA parameters for SDXL.
- Step 2:
- Sample a preference batch, shared t and within each pair, and one batch-wise ; form the noisy winner and loser states and construct with Equation (4).
- Step 3:
- On an even update, detach , hold fixed, and minimize over .
- Step 4:
- On an odd update, fix policy and reference weights while retaining the candidate-dependent computation graph, and minimize over .
- Step 5:
- Repeat Steps 2–4 for the configured schedule and retain only the policy for inference.
5. Experiments
We evaluate AdvDPO on SD1.5 and SDXL using three preference-oriented test sets. The experiments include automatic metrics, qualitative comparisons, an anonymous user study, component ablations, and sensitivity analyses of the attack loss weight and perturbation strength.
5.1. Experimental Setup
5.1.1. Base Models and Baselines
We instantiate AdvDPO with SD1.5 [1] and SDXL [2], which differ substantially in model capacity and native image resolution. For SD1.5, we compare against the pretrained backbone, diffusion DPO [4], KTO [25], InPO [27], and Diffusion-NPO [33]. For SDXL, the comparison includes the pretrained backbone, diffusion DPO, MaPO [32], InPO, and Diffusion-NPO. These baselines cover direct pairwise optimization, utility-based alignment, inversion-assisted preference learning, reference-free margin optimization, and negative-preference guidance. Their selection emphasizes representative mechanisms relevant to candidate augmentation rather than an exhaustive comparison with every related alignment method.
5.1.2. Datasets and Evaluation Metrics
Training uses the strict winner–loser pairs from Pick-a-Pic v2 [17]. From 959,040 released training comparisons, we exclude 107,747 ties () and retain 851,293 strict pairs (), containing 928,068 distinct image identifiers across both sides. Original preference labels and the released train/test partitioning are retained. Generation evaluation uses 500 unique Pick-a-Pic test prompts, 3200 HPD prompts, and all 1632 PartiPrompts. We evaluate on Pick-a-Pic [17], PartiPrompts [35], and HPD [15]. Pick-a-Pic represents the pairwise human preference domain used for training, HPD provides a separate preference-oriented benchmark, and PartiPrompts emphasizes broad and compositionally varied text prompts. For every method, one image is generated for each prompt under the same sampling protocol inthe main preference score comparisons. All methods use 50 sampling steps; SD1.5 uses images and guidance scale 7.5, while SDXL uses images and guidance scale 5.0. Training data preparation for AdvDPO follows DiffusionDPO and InPO, although their training budgets and hardware differ. PickScore (PS) [17] predicts pairwise choices learned from Pick-a-Pic, Human Preference Score (HPS) [15] estimates general human preference, Multi-dimensional Preference Score (MPS) [36] aggregates multiple preference dimensions, and ImageReward (IR) [14] provides a learned reward for text–image alignment and visual quality. We report both the mean and median of each metric; the mean summarizes aggregate performance, whereas the median reflects a typical sample and is less sensitive to extreme scores or a skewed score distribution.
5.1.3. Training Details
AdvDPO is trained on eight NVIDIA A100 GPUs (NVIDIA, Santa Clara, CA, USA). The main software environment comprised Python 3.12.0 and PyTorch 2.5.0 (CUDA 12.1). We use AdamW for SD1.5 and Adafactor for SDXL with a learning rate of , an effective batch size of 1024, and mixed-precision training. The policy U-Net is optimized in full forboth backbones. SD1.5 also fully fine-tunes the adversarial U-Net, while SDXL adapts the adversary with rank-64 LoRA modules using a scaling factor of 32; the reference networks, VAE, and text encoders remain frozen. The policy and adversary are updated alternately with and , while is sampled once per batch from . No separate validation set was used for hyperparameter selection. Negative-preference pretraining uses 400 updates with reversed preference labels, followed by 800 alternating steps comprising 400 updates for each branch. The auxiliary adversarial network and any LoRA parameters are removed after training; therefore, inference uses only the optimized policy, and has the same architecture and sampling cost as its backbone.
Computational cost. Table 1 reports resources for the respective training schedules. AdvDPO times include negative-preference pretraining and both alternating branches; GPU hours are time multiplied by GPU count. The policy/adversary trainable parameter counts are 859.52/859.52 million for SD1.5 and 2567.46/92.90 million for SDXL. The smaller overall training budget contributes to AdvDPO’s shorter time than the reported DiffusionDPO schedule, while its additional model, optimizer states, and candidate-dependent backpropagation increase memory use. InPO additionally uses iterative DDIM inversion. Hardware and schedules differ, so these totals do not establish equal per-update cost. In a separately retrained SD1.5 comparison at the same batch size and closely matched compute (55.06 versus approximately 55.20 A100 GPU-hours), AdvDPO improved PS/HPS/MPS/IR over DPO by 0.40/0.45/0.42/0.3004 on PartiPrompts. The complete budget comparison is provided in the Supplementary Materials (SA).
Table 1.
Training resources for the reported schedules. Time is estimated; memory is peak allocated memory per GPU.
5.2. Results and Analysis
5.2.1. Quantitative Results
Table 2 reports the SD1.5 comparison. AdvDPO ranks first in every average and median column. On Pick-a-Pic, its margins over the strongest competing averages are for PS, for HPS, for MPS, and for IR. The ordering is unchanged on the other test sets: the average PS and MPS margins on HPD are and , and the average HPS and IR margins on PartiPrompts are and .
Table 2.
SD1.5 comparison: avg./med. scores are reported; higher is better.
AdvDPO consistently achieves the highest average and median scores across all three test sets. These results demonstrate improvements in both aggregate performance and typical sample quality.
Table 3 gives the results for the larger backbone, with AdvDPO leading every average and median column. Its average score margins on Pick-a-Pic are for PS, for HPS, for MPS, and for IR. On HPD, the HPS and MPS margins are and . The differences are smaller on PartiPrompts, including for PS and for IR, but all four average metrics remain highest for AdvDPO.
Table 3.
SDXL comparison: avg./med. scores are reported; higher is better.
SD1.5 and SDXL give the same overall ranking despite their different capacities and native resolutions. The agreement among PS, HPS, MPS, and IR also makes the comparison less dependent on the behavior of any single evaluator. Across five independent SD1.5 training runs on Pick-a-Pic and PartiPrompts, AdvDPO has higher mean scores than DPO on all four metrics. A separate repeated-generation analysis uses five matched generation seeds per prompt and 10,000 paired prompt–text–cluster bootstrap resamples; all 95% intervals for AdvDPO-minus-DPO and AdvDPO-minus-InPO mean differences are above zero on both datasets. Full training seed and repeated-generation statistics are provided in the Supplementary Materials (SB).
5.2.2. Qualitative Results
Figure 2 presents prompts with progressively richer constraints, ranging from object depiction and motion to spatial composition and text rendering. For the first two prompts, AdvDPO produces a well-formed single balloon and a coherent pickup truck with clear motion cues. In the third prompt, which requires an Imari vase below a wooden chair, AdvDPO preserves both the object identity and the specified spatial relation. In the text rendering case, it generates a single legible “START”. DPO and InPO also produce coherent balloon depictions, and DPO renders readable “START” text. The four examples in Figure 2 were manually selected to illustrate object depiction, motion, spatial relations, and text rendering; they serve as qualitative illustrations, and are not intended as a statistically representative sample of generated outputs. All methods use seed 0, Euler sampling with 50 steps, guidance scale 5.0, and resolution. Across these examples, the observed counting, spatial, and textual accuracy qualitatively complements the quantitative results in Table 3.
Figure 2.
Qualitative comparison of SDXL-based methods. Columns (left to right): SDXL, DPO, MaPO, InPO, and AdvDPO; rows progress from object depiction to motion, spatial relations, and text rendering. Illustrative examples use identical generation settings and seed 0 across methods.
5.2.3. Compositional Evaluation
We evaluate SD1.5, SFT, DPO, InPO, and AdvDPO on all 553 GenEval prompts [37], with four images per prompt and method (2212 images per method). All use resolution, 50 PNDM steps, and guidance scale 9. For each prompt, a generator initialized with seed 42 produced four noise samples matched across methods. The overall score is the unweighted mean of six task accuracy results. Table 4 reports the results.
Table 4.
GenEval results under matched generation settings; higher is better.
AdvDPO achieves the highest overall score (0.4999, versus 0.4843 for InPO and 0.4494 for DPO) and leads in two-object composition, counting, position, and color binding. SFT is strongest on single-object generation and colors. Absolute position and color binding scores remain low even for AdvDPO (0.0900 and 0.1050); individual failures include incorrect object counts, omitted objects, and incorrect color assignment, which are sometimes handled better by DPO or InPO.
5.2.4. Synthesized Candidate Analysis
To examine the candidate-negative assumption, we analyze 200 preferred training images with distinct captions at and , yielding 3200 comparisons. Both states undergo the same DDIM reverse sampling and VAE decoding; the matched decoded winner is the baseline, since decoding at larger t can itself alter the source image.
Figure 3 quantifies relative latent displacement, CLIP image cosine similarity, and automatic preference ordering. From to , mean relative displacement increases from 0.0288 to 0.9256 and image similarity decreases from 0.9959 to 0.5487. Direct prompt alignment also changes, with the mean CLIP text–image cosine difference from the matched winner being and at these endpoints. These results indicate that stronger perturbations can reduce semantic consistency despite shared diffusion conditioning. Matched winners receive a higher PickScore in 85.4% of comparisons (2733/3200), ranging from 59.0% to 97.0% at the endpoints. The automatic preference rankings and matched visual comparisons support the use of synthesized samples as candidate negatives, while human preference annotations are associated with the original training pairs.
Figure 3.
SD1.5 winner–candidate analysis over 200 preferred images at each timestep–strength setting: (a) mean relative latent displacement , (b) mean CLIP image cosine similarity between candidate and matched decoded winner, and (c) percentage receiving higher PickScore for the matched winner; panel (c) reports automatic predictions.
Figure 4 shows that small perturbations remain close to this baseline, while larger strengths and timesteps reduce detail, sharpness, and structural fidelity. Additional matched visualizations are provided in the Supplementary Materials (SF).
Figure 4.
SD1.5 synthesized candidate visualizations: Pikachu with a small black dog (top) and an outdoor portrait (bottom). Rows show ; columns show the source winner, matched decoded winner, and candidates with . The matched winner and candidates use the same DDIM reverse sampling and VAE decoding.
5.2.5. User Study
We additionally conducted an anonymous user study over a pool of 128 image groups generated by SDXL, DPO, MaPO, InPO, and AdvDPO. Twenty-two participants were each randomly assigned up to 50 group views, yielding 603 completed group-level evaluations; completion counts varied by participant. Method identities were hidden as Images A–E, and display positions were randomized for each participant–group combination. For each displayed group, participants were instructed to select one best image, or two as jointly best when they considered them equally good and difficult to distinguish. Each completed evaluation contributed a single point, divided equally among all selected methods; consequently, each method receives 0.5 points in the case of an observed two-way tie. The weighted share is the method’s accumulated score divided by the sum of weighted scores over all methods. For each AdvDPO-versus-baseline comparison, W denotes selection of AdvDPO without the baseline, L selection of the baseline without AdvDPO, T denotes selection of both as jointly best, and U denotes selection of neither. Another method may be co-selected in W or L; only T denotes a tie, while U leaves the relative preference between the two unselected methods unobserved. The decisive win rate is and excludes both T and U. Table 5 summarizes the user study results.
Table 5.
Anonymous user study results: W/L/T/U is reported from the AdvDPO perspective, and the decisive win rate excludes both T and U.
AdvDPO receives the largest weighted share at 32.42%, compared with 23.05% for InPO and 22.89% for DPO. After excluding T and U, AdvDPO wins 58.38% of decisive comparisons against InPO and 58.82% against DPO; the corresponding rates against MaPO and the SDXL base model are 74.15% and 74.83%. Across the four pairwise comparisons, T and U together account for 42.62–51.24% of responses, whereas 119 of the 603 evaluations (19.73%) identify two joint-best outputs. The decisive win rate is conditional on selecting one compared method without the other, and should be interpreted together with the weighted share. The weighted share uses all sole and tied selections, while the decisive win rate uses only responses that distinguish AdvDPO from a given baseline. AdvDPO leads under both calculations, matching its ranking under the automatic metrics in Table 2 and Table 3. Additional agreement, confidence interval, and forced choice analyses are provided in the Supplementary Materials (SC).
5.3. Ablation Study
5.3.1. Component Analysis
Table 6 reports the SDXL ablation on PartiPrompts. The DPO row keeps only in and uses the same evaluation as Table 3, yielding identical mean scores. The fixed- variant uses synthesized pairs but freezes an adversarial network pretrained with , while the w/o variant removes label-flipped supervision and the w/o negative attack term variant removes policy-adaptive adversarial training. Relative to DPO, the fixed adversary improves PS, HPS, MPS, and IR by , , , and , respectively; thus, adding controlled synthesized comparisons is beneficial even before the adversary is adapted to the current policy.
Table 6.
SDXL ablation on PartiPrompts. Mean scores are reported.
Removing changes PS from 23.16 to 23.17 while reducing HPS from 29.15 to 29.13, MPS from 11.90 to 11.81, and IR from 1.1179 to 1.1043. Therefore, the complete objective achieves the best HPS, MPS, and IR along with the second-highest PS, with a difference of 0.01. We hypothesize that label-flipped supervision helps to retain loser-oriented denoising behavior instead of adapting exclusively to current policy weaknesses.
Removing the attack term reduces PS and HPS to 22.85 and 28.73, below the DPO values of 22.93 and 28.91; its MPS and IR gains over DPO are only and . Thus, after adversarial updating begins, alone does not preserve the gains obtained by the complete objective. The two terms serve different roles: label-flipped supervision maintains loser-oriented behavior, while the attack term directs the candidate toward errors of the current policy; the aggregate result favors retaining both. The random-candidate control replaces with in Equation (4) while retaining the same batch-wise , diffusion condition, and one additional pair; it uses 400 policy updates. Its scores are below policy-only DPO on all four metrics, showing that extra random negatives alone do not reproduce AdvDPO’s gains. The w/o variant uses attack-only adaptation, while the w/o attack variant retains reversed-preference synthesis.
5.3.2. Sensitivity to Attack Loss Weight
After fixing the reported configuration, we conducted a post hoc sensitivity analysis of the attack loss weight on PartiPrompts with the SDXL backbone while keeping all other settings fixed. As shown in Table 7, increasing from 0 to improves PS from to , HPS from to , MPS from to , and IR from to . The result at coincides with the w/o attack term variant in Table 6, while already recovers part of the performance gained by the complete objective.
Table 7.
SDXL attack loss weight ablation on PartiPrompts. Mean scores are reported; higher is better.
The prespecified setting achieves the highest PS, HPS, and IR and ties for the highest MPS. At , PS and HPS are lower by and , MPS remains tied, and IR decreases to . All four metrics decline further at .
5.3.3. Sensitivity to Perturbation Strength
After the reported configuration had been fixed, we similarly conducted a post hoc sensitivity analysis of the perturbation coefficient on PartiPrompts with the SDXL backbone while keeping the data, optimization schedule, and all other hyperparameters fixed. As shown in Table 8, increasing the fixed coefficient from to improves PS from to , HPS from to , MPS from to , and IR from to . At , PS and HPS are slightly lower than at , whereas MPS and IR are slightly higher. At , all four metrics decrease relative to the intermediate settings, showing a non-monotonic response to the fixed perturbation strength. The prespecified batch-wise sampling strategy achieves the best value on every metric, with PS, HPS, MPS, and IR. Thus, within the evaluated settings, sampling a range of perturbation magnitudes provides stronger aggregate performance than using a single fixed scale.
Table 8.
SDXL perturbation strength ablation on PartiPrompts. Mean scores are reported; higher is better.
6. Conclusions and Limitations
6.1. Conclusions
This paper has presented AdvDPO, a preference optimization framework that augments diffusion DPO with locally-perturbed adversarially synthesized candidate negatives. The perturbation preserves the prompt, timestep, and noise target while supplying adaptive comparisons beyond fixed winner–loser pairs. Alternating optimization updates the policy with both real and synthesized preference pairs while training an adversarial diffusion U-Net to generate informative directions. Across the evaluated datasets and the SD1.5 and SDXL backbones, AdvDPO outperforms the evaluated baselines on the four preference evaluation metrics and obtains the highest weighted preference share in the anonymous user study.
6.2. Limitations
AdvDPO trains both the policy and adversarial networks on offline preference data, so unsafe or biased patterns in those data can be inherited during alignment. Alongside the preference alignment evaluation, we report an exploratory SafetyChecker analysis in Supplementary Materials (SJ). Its findings motivate incorporating explicit safety-aware preference objectives and broader safety evaluation protocols.
AdvDPO requires an additional adversarial U-Net and optimizer states during training. Backpropagation through candidate-dependent policy predictions increases intermediate activations, leading to higher peak memory and limiting feasible batch sizes. Negative-preference pretraining and alternating optimization add training stages and model evaluations; only inference avoids the auxiliary branch.
Finally, the synthesized negative samples were evaluated using automatic preference predictions from PickScore rather than direct human preference judgments.
Supplementary Materials
The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/electronics15214927/s1, Figure S1: Matched GenEval positive and failure cases; Figure S2: Additional SD1.5 synthesized-candidate visualizations; Figure S3: PickScore dynamics on fixed training pairs; Table S1: SDXL candidate-source controls on PartiPrompts; Table S2: SD1.5 training-budget comparison on PartiPrompts; Table S3: Five-training-seed results; Table S4: Paired mean score differences and confidence intervals; Table S5: Five-generation means and within-prompt variances; Table S6: Original user-study coverage and agreement; Table S7: Weighted preference shares and confidence intervals; Table S8: Direct forced-choice comparisons; Table S9: PixArt-alpha-SAM-256 results on PartiPrompts; Table S10: SDXL adversarial-network initialization ablation; Table S11: SD1.5 joint preference-coefficient sensitivity; Table S12: SD1.5 candidate-source comparison; Table S13: SD1.5 text–image alignment and aesthetic scores; Table S14: Pick-a-Pic semantic-category results; Table S15: PartiPrompts content-category results; Table S16: HPD style results; Table S17: SDXL within-prompt diversity; Table S18: SafetyChecker results by prompt-text category. References [17,38] are cited in the Supplementary Materials.
Author Contributions
Conceptualization, Z.J. and H.H.; methodology, Z.J., P.W., and H.H.; software, Z.J.; validation and formal analysis, Z.J., P.W., and H.H.; writing—original draft preparation, Z.J.; writing—review and editing, all authors; visualization, Z.J.; supervision, project administration, and funding acquisition, H.H. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the National Natural Science Foundation of China, grant number 62576342, and by the Beijing Natural Science Foundation, grant number 4252054.
Data Availability Statement
The training preference pairs were obtained from Pick-a-Pic v2 (official project: https://github.com/yuvalkirstain/PickScore (accessed on January 2026)). Prompts for image generation evaluation were obtained from the Pick-a-Pic test split, the HPD/HPSv2 benchmark (https://github.com/tgxs002/HPSv2 (accessed on January 2026)), PartiPrompts (https://github.com/google-research/parti (accessed on January 2026)), and GenEval (https://github.com/djghosh13/geneval(accessed on October 2026)). The qualitative examples in Figure 2 also use prompts from PartiPrompts. All images of human faces shown in the manuscript and Supplementary Material are AI-generated or reconstructed from AI-generated images; no photographs of real individuals are included. The models used for image generation and reconstruction are described in the main text.
Acknowledgments
During the preparation of this manuscript, the authors used ChatGPT 5.6 Sol (OpenAI) for English language polishing and stylistic refinement. The authors reviewed and edited the output and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| CLIP | Contrastive Language–Image Pretraining |
| DPO | Direct Preference Optimization |
| HPD | Human Preference Dataset |
| HPS | Human Preference Score |
| IR | ImageReward |
| KL | Kullback–Leibler |
| LoRA | Low-Rank Adaptation |
| MPS | Multidimensional Preference Score |
| PS | PickScore |
| SD | Stable Diffusion |
| T2I | Text-to-Image |
| VAE | Variational Auto-Encoder |
References
- Rombach, R.; Blattmann, A.; Lorenz, D.; Esser, P.; Ommer, B. High-Resolution Image Synthesis with Latent Diffusion Models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 19–24 June 2022; pp. 10684–10695. [Google Scholar]
- Podell, D.; English, Z.; Lacey, K.; Blattmann, A.; Dockhorn, T.; Müller, J.; Penna, J.; Rombach, R. SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis. In Proceedings of the International Conference on Learning Representations, Vienna, Austria, 7–11 May 2024. [Google Scholar]
- Rafailov, R.; Sharma, A.; Mitchell, E.; Ermon, S.; Manning, C.D.; Finn, C. Direct Preference Optimization: Your Language Model Is Secretly a Reward Model. In Proceedings of the Advances in Neural Information Processing Systems, New Orleans, LA, USA, 10–16 December 2023; Volume 36, pp. 53728–53741. [Google Scholar]
- Wallace, B.; Dang, M.; Rafailov, R.; Zhou, L.; Lou, A.; Purushwalkam, S.; Ermon, S.; Xiong, C.; Joty, S.; Naik, N. Diffusion Model Alignment Using Direct Preference Optimization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 16–22 June 2024; pp. 8228–8238. [Google Scholar]
- Ho, J.; Jain, A.; Abbeel, P. Denoising Diffusion Probabilistic Models. In Proceedings of the Advances in Neural Information Processing Systems, Online, 6–12 December 2020. [Google Scholar]
- Ho, J.; Salimans, T. Classifier-Free Diffusion Guidance. In Proceedings of the NeurIPS 2021 Workshop on Deep Generative Models and Downstream Applications, Online, 14 December 2021. [Google Scholar]
- Radford, A.; Kim, J.W.; Hallacy, C.; Ramesh, A.; Goh, G.; Agarwal, S.; Sastry, G.; Askell, A.; Mishkin, P.; Clark, J.; et al. Learning transferable visual models from natural language supervision. In Proceedings of the International Conference on Machine Learning, Online, 18–24 July 2021; pp. 8748–8763. [Google Scholar]
- Saharia, C.; Chan, W.; Saxena, S.; Li, L.; Whang, J.; Denton, E.; Ghasemipour, S.K.S.; Ayan, B.K.; Mahdavi, S.S.; Lopes, R.G.; et al. Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding. In Proceedings of the Advances in Neural Information Processing Systems, New Orleans, LA, USA, 28 November–9 December 2022. [Google Scholar]
- Lipman, Y.; Chen, R.T.Q.; Ben-Hamu, H.; Nickel, M.; Le, M. Flow Matching for Generative Modeling. In Proceedings of the International Conference on Learning Representations, Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
- Sauer, A.; Boesel, F.; Dockhorn, T.; Blattmann, A.; Esser, P.; Rombach, R. Fast High-Resolution Image Synthesis with Latent Adversarial Diffusion Distillation. In Proceedings of the ACM SIGGRAPH Asia Conference Proceedings, Tokyo, Japan, 3–6 December 2024. [Google Scholar]
- Leszczuk, M.; Zhang, Y.; Farias, M.C.Q.; Chandler, D.M.; Kalola, R. AI-Driven Image Generation: Algorithms, Architectures, Quality Assessment, and Applications—A Structured Narrative Review. Electronics 2026, 15, 2891. [Google Scholar] [CrossRef] [Scilit]
- Kim, Y.; Park, H. Data-Centric LoRA Adaptation and Trustworthy Edge Deployment of a Text-to-Image Diffusion Model for a Rights-Constrained Heritage Domain. Electronics 2026, 15, 1685. [Google Scholar] [CrossRef] [Scilit]
- Zhang, B.; Li, Z.; Ma, Q.; Zhang, J.; Xiang, Z.; Jiang, D. Silhouette-Based Cross-View Motion Gait Recognition via a Multi-Scale Temporal Difference Unit. Electronics 2026, 15, 2512. [Google Scholar] [CrossRef] [Scilit]
- Xu, J.; Liu, X.; Wu, Y.; Tong, Y.; Li, Q.; Ding, M.; Tang, J.; Dong, Y. ImageReward: Learning and Evaluating Human Preferences for Text-to-Image Generation. In Proceedings of the Advances in Neural Information Processing Systems, New Orleans, LA, USA, 10–16 December 2023; Volume 36, pp. 15903–15935. [Google Scholar]
- Wu, X.; Hao, Y.; Sun, K.; Chen, Y.; Zhu, F.; Zhao, R.; Li, H. Human Preference Score v2: A Solid Benchmark for Evaluating Human Preferences of Text-to-Image Synthesis. arXiv 2023, arXiv:2306.09341. [Google Scholar]
- Hu, Y.; Liu, B.; Kasai, J.; Wang, Y.; Ostendorf, M.; Krishna, R.; Smith, N.A. TIFA: Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France, 2–6 October 2023. [Google Scholar]
- Kirstain, Y.; Polyak, A.; Singer, U.; Matiana, S.; Penna, J.; Levy, O. Pick-a-pic: An open dataset of user preferences for text-to-image generation. In Proceedings of the Advances in Neural Information Processing Systems, New Orleans, LA, USA, 10–16 December 2023; Volume 36, pp. 36652–36663. [Google Scholar]
- Liang, Y.; He, J.; Li, G.; Li, P.; Klimovskiy, A.; Carolan, N.; Sun, J.; Pont-Tuset, J.; Young, S.; Yang, F.; et al. Rich Human Feedback for Text-to-Image Generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 16–22 June 2024. [Google Scholar]
- Fan, Y.; Watkins, O.; Du, Y.; Liu, H.; Ryu, M.; Boutilier, C.; Abbeel, P.; Ghavamzadeh, M.; Lee, K.; Lee, K. DPOK: Reinforcement Learning for Fine-tuning Text-to-Image Diffusion Models. In Proceedings of the Advances in Neural Information Processing Systems, New Orleans, LA, USA, 10–16 December 2023; Volume 36, pp. 79858–79885. [Google Scholar]
- Clark, K.; Vicol, P.; Swersky, K.; Fleet, D.J. Directly Fine-Tuning Diffusion Models on Differentiable Rewards. In Proceedings of the International Conference on Learning Representations, Vienna, Austria, 7–11 May 2024. [Google Scholar]
- Prabhudesai, M.; Goyal, A.; Pathak, D.; Fragkiadaki, K. Aligning Text-to-Image Diffusion Models with Reward Backpropagation. arXiv 2023, arXiv:2310.03739. [Google Scholar]
- Jiang, D.; Song, G.; Wu, X.; Zhang, R.; Shen, D.; Zong, Z.; Liu, Y.; Li, H. CoMat: Aligning Text-to-Image Diffusion Model with Image-to-Text Concept Matching. In Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada, 10–15 December 2024. [Google Scholar]
- Sun, J.; Fu, D.; Hu, Y.; Wang, S.; Rassin, R.; Juan, D.C.; Alon, D.; Herrmann, C.; Van Steenkiste, S.; Krishna, R.; et al. DreamSync: Aligning Text-to-Image Generation with Image Understanding Feedback. In Proceedings of the Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics, Albuquerque, NM, USA, 29 April–4 May 2025. [Google Scholar]
- Zhang, X.; Xiang, W. Diffusion Preference Alignment via Attenuated Kullback–Leibler Regularization. Electronics 2025, 14, 2939. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Kallidromitis, K.; Gokul, A.; Kato, Y.; Kozuka, K. Aligning diffusion models by optimizing human utility. In Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada, 10–15 December 2024; Volume 37, pp. 24897–24925. [Google Scholar]
- Zhu, H.; Xiao, T.; Honavar, V.G. DSPO: Direct Score Preference Optimization for Diffusion Model Alignment. In Proceedings of the International Conference on Learning Representations, Singapore, 24–28 April 2025. [Google Scholar]
- Lu, Y.; Wang, Q.; Cao, H.; Wang, X.; Xu, X.; Zhang, M. InPO: Inversion Preference Optimization with Reparametrized DDIM for Efficient Diffusion Model Alignment. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 11–15 June 2025; pp. 28629–28639. [Google Scholar]
- Li, Z.; Li, Y.; Meng, C.; Liu, Z.; Ling, Y.; Zhang, S.; Yang, G.; Yang, C.; Yang, Z.; Sun, L. Inversion-DPO: Precise and Efficient Post-Training for Diffusion Models. In Proceedings of the ACM International Conference on Multimedia, Dublin, Ireland, 27–31 October 2025; pp. 9901–9910. [Google Scholar]
- Lu, Y.; Wang, Q.; Cao, H.; Xu, X.; Zhang, M. Smoothed Preference Optimization via ReNoise Inversion for Aligning Diffusion Models with Varied Human Preferences. In Proceedings of the International Conference on Machine Learning, Vancouver, BC, Canada, 13–19 July 2025; pp. 40709–40725. [Google Scholar]
- Liang, Z.; Yuan, Y.; Gu, S.; Chen, B.; Hang, T.; Cheng, M.; Li, J.; Zheng, L. Aesthetic post-training diffusion models from generic preferences with step-by-step preference optimization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 11–15 June 2025; pp. 13199–13208. [Google Scholar]
- Zhang, T.; Da, C.; Ding, K.; Yang, H.; Jin, K.; Li, Y.; Gao, T.; Zhang, D.; Xiang, S.; Pan, C. Diffusion Model as a Noise-Aware Latent Reward Model for Step-Level Preference Optimization. In Proceedings of the Advances in Neural Information Processing Systems, San Diego, CA, USA, 2–7 December 2025. [Google Scholar]
- Hong, J.; Paul, S.; Lee, N.; Rasul, K.; Thorne, J.; Jeong, J. Margin-aware preference optimization for aligning diffusion models without reference. In Proceedings of the AAAI Conference on Artificial Intelligence, Singapore, 20–27 January 2026; Volume 40, pp. 4744–4752. [Google Scholar]
- Wang, F.Y.; Shui, Y.; Piao, J.; Sun, K.; Li, H. Diffusion-NPO: Negative Preference Optimization for Better Preference Aligned Generation of Diffusion Models. In Proceedings of the International Conference on Learning Representations, Singapore, 24–28 April 2025. [Google Scholar]
- Liu, B.; Shao, S.; Li, B.; Bai, L.; Xu, Z.; Xiong, H.; Kwok, J.T.; Helal, S.; Xie, Z. Alignment of Diffusion Models: Fundamentals, Challenges, and Future. ACM Comput. Surv. 2026, 58, 244. [Google Scholar] [CrossRef] [Scilit]
- Yu, J.; Xu, Y.; Koh, J.Y.; Luong, T.; Baid, G.; Wang, Z.; Vasudevan, V.; Ku, A.; Yang, Y.; Ayan, B.K.; et al. Scaling Autoregressive Models for Content-Rich Text-to-Image Generation. Trans. Mach. Learn. Res. 2022, 2, 5. [Google Scholar]
- Zhang, S.; Wang, B.; Wu, J.; Li, Y.; Gao, T.; Zhang, D.; Wang, Z. Learning Multi-Dimensional Human Preference for Text-to-Image Generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 16–22 June 2024; pp. 8018–8027. [Google Scholar]
- Ghosh, D.; Hajishirzi, H.; Schmidt, L. GenEval: An Object-Focused Framework for Evaluating Text-to-Image Alignment. In Proceedings of the Advances in Neural Information Processing Systems, New Orleans, LA, USA, 10–16 December 2023; Volume 36, pp. 52132–52152. [Google Scholar]
- Schramowski, P.; Brack, M.; Deiseroth, B.; Kersting, K. Safe Latent Diffusion: Mitigating Inappropriate Degeneration in Diffusion Models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada, 18–22 June 2023; pp. 22522–22531. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.



