Manuscript Offprint
arXiv:2609.03688ToPO: Token-Conditioned Preference Routing for Attention-Based Latent Diffusion Models
Juntao Xu Shihong Li Hoi Fan Au Ning Zhu
Tsinghua University University of Electronic Science and Technology of China Stanford University
$Equal contribution.
| SDXL Base | Diffusion-DPO | InPO | MaPO | ToPO (ours) | |
|---|---|---|---|---|---|
| A pirate is using a black dragon to light his cigar. Digital art, trending on ArtStation. | |||||
| A single chocolate cereal ball serving as an astronaut's head. | |||||
| A robot with black visor and number 42 on its chest, proudly standing before an F1 race car. Sunset cityscape, comic style. | |||||
| Phoenix rising from stone altar. Ashes swirling around glowing bird. |
Figure 1: Illustrative SDXL examples on four fixed prompts, spanning rich visual-detail and compositional requests. Bold prompt terms identify the target constraints in each case. ToPO is shown beside SDXL Base, Diffusion-DPO, InPO, and MaPO; quantitative comparisons are reported separately in Section 5.
Abstract
Pairwise preference labels rank complete images, yet Diffusion-DPO applies their effect over many spatial and denoising-time coordinates. For attention-based, noise-prediction latent diffusion, ToPO (Token-Oriented Preference Optimization) constructs a per-minibatch, detached, separable spatial–temporal route from branchwise squared-residual contrast in a frozen reference denoiser. Preferred-branch cross-attention uses content tokens to modulate the spatial factor, and an auxiliary pixel-midpoint ordering term is added without local labels or a learned reward model. In matched three-seed retrainings with a shared update schedule, ToPO has higher endpoint estimates than Diffusion-DPO on all five reported SD-1.5 metrics and on HPSv2, ImageReward, and CLIP for SDXL. It also receives larger raw win shares in an aggregate blind SDXL A/B study. These findings are scoped to the reported equal-update U-Net protocols rather than an equal-compute comparison.
1 Introduction
Preference optimization directly adapts diffusion models to comparisons between generated images (Rafailov et al., 2023; Wallace et al., 2024; Xu et al., 2024). A pairwise label ranks whole images, whereas diffusion training resolves through many spatial–temporal noise-prediction coordinates. Recent work addresses complementary limitations by improving the score-preference objective (Zhu et al., 2025), handling conflicting or noisy pairs (Li et al., 2026b; Liu et al., 2026a), constructing instance-level supervision (Huang et al., 2025; Sun et al., 2026), or learning trajectory rewards (Liang et al., 2025; Zhang et al., 2025; Xian et al., 2026). We study a narrower allocation problem: with a fixed offline winner–loser pair, how can its image-level preference signal induce a sample-dependent local update route without constructing external local labels or learning a separate reward model?
The allocation is under-specified: the pair fixes the image-level preference orientation but not how an update should be distributed over local prediction coordinates. We refer to this as the route-allocation problem. Spatial position and denoising time are native noise-prediction indices; a prompt token becomes actionable only after cross-attention maps its influence back to the spatial–temporal field (Rombach et al., 2022). ToPO is therefore token-oriented rather than token-only: tokens condition a route over diffusion-native coordinates.
ToPO implements this view with a branchwise residual-contrast route. At shared-noise denoising anchors, the route contrasts local squared residual magnitudes of the preferred and dispreferred branches. This observable contrast supplies the spatial and temporal factors, while the signed DPO logit retains the winner–loser orientation. Preferred-branch cross-attention reads the spatial factor into a token-conditioned modulation weight and folds it back into a separable spatial–temporal field . A content-token prior excludes padding, SOS, and EOS positions before normalization; a pixel-midpoint triplet term supplies an auxiliary symmetric ordering constraint rather than a source of token-level supervision.
Figure 1 qualitatively compares ToPO with the base model and three preference-optimization baselines on four fixed SDXL prompts. Bold prompt terms mark the target constraints; Section 5 quantifies the corresponding outcomes under fixed and compositional protocols.
Our main contributions are threefold:
-
We formulate route allocation for pair-only offline diffusion DPO: an image-level winner–loser comparison fixes a preference orientation but does not identify a sample-dependent distribution over local denoising coordinates.
-
We introduce ToPO, a detached token-conditioned, separable spatial–temporal reweighting of Diffusion-DPO. A frozen reference denoiser derives a residual-contrast route; preferred-branch cross-attention supplies content-token modulation of its spatial factor, and a routed pixel-midpoint term adds an auxiliary symmetric ordering constraint. The appendix analyzes the declared detached update and frozen diagnostic under stated assumptions.
-
We find that the locked route has positive three-seed ToPO–Diffusion-DPO endpoint differences on all five SD-1.5 metrics and on SDXL HPSv2, ImageReward, and CLIP under equal-update, shared-hyperparameter U-Net protocols. Descriptive checkpoint, compositional, human-preference, route-permutation, and held-out evaluations map the empirical profile of the complete objective within their respective protocols.
Fine-grained spatial and instance alignment. PatchDPO estimates local patch quality for finetuning-free personalized generation (Huang et al., 2025). IAPO advances image-level preference data to automatically constructed instance-level preferences, using vision-language and detector-derived instance masks (Sun et al., 2026). Visual Preference Policy Optimization lifts scalar visual rewards to structured pixel-level advantages with pretrained vision backbones (Ni et al., 2026), whereas ViPO: Visual Preference Optimization at Scale introduces large-scale data and Poly-DPO, a confidence-aware sample-level modification of offline DPO (Li et al., 2026a). BiDPO constructs the BiComp preference data and adds region-level guidance (Liu et al., 2026b); D-Fusion changes pair construction through mask-guided self-attention fusion (Hu et al., 2025). OSPO is a particularly close attention-based alternative: it constructs object-centric self-improvement data and combines attention masks with an object-weighted SimPO loss (Oh et al., 2026). In contrast, ToPO retains the supplied winner-loser pair and uses a frozen denoiser's residual contrast and cross-attention to construct a detached route, without detector, box, patch-quality, or learned local-reward supervision. The methods differ in data construction, supervision, initialization, and endpoint protocol, so Table 9 compares interfaces rather than reported scores.
Temporal and latent preference optimization. Trajectory-aware objectives modify temporal weighting, DDIM inversion, step-wise reward estimation, or reference handling (Yang et al., 2024b; Lu et al., 2025; Li et al., 2025; Wu et al., 2025; Hong et al., 2024; Kang et al., 2026; Zhu et al., 2026). SPO learns step-aware preference supervision (Liang et al., 2025), LPO learns a noise-aware latent reward model (Zhang et al., 2025), and SLRM/TAPO learns noise-compatible latent rewards for trajectory-level advantages (Xian et al., 2026). ToPO instead remains an offline pairwise DPO objective: its separable time factor is inferred from the supplied pair's frozen-reference residual contrast and is coupled to a token-conditioned spatial factor, rather than to a learned reward model, moving reference, or re-sampled step-level labels.
Attention-guided routing and control. Latent diffusion uses cross-attention for text conditioning (Rombach et al., 2022); Prompt-to-Prompt, Attend-and-Excite, and Freestyle manipulate attention at inference (Hertz et al., 2023; Chefer et al., 2023; Xue et al., 2023). Concurrent STAR studies adaptive spatiotemporal reward allocation for text-to-image RL post-training (Shen et al., 2026). ToPO instead uses preferred-branch attention as a conditional read-write bridge inside an offline DPO update: it reads a residual-contrast map into content-token weights and writes the resulting modulation back to diffusion coordinates. Its distinguishing interface is thus a frozen-reference, pair-only route without external local supervision, learned latent rewards, online reward optimization, or a changed preference-data construction. Appendix C.1 expands this comparison.
3 Preliminaries: Diffusion Preference Learning
3.1 Conditional latent diffusion
Let be an image, its latent encoding, and a text prompt. For noise , the standard DDPM forward process (Ho et al., 2020) produces
The denoiser predicts . Its native prediction coordinates are a latent spatial position and a denoising time ; deterministic DDIM trajectories are one common reverse-time construction (Song et al., 2021). We write the corresponding local residual as
Thus, spatial locations and timesteps are intrinsic coordinates of diffusion training. A prompt token is different: it affects the denoiser through cross-attention rather than indexing a noise-prediction residual on its own.
3.2 Human preferences and Diffusion-DPO
The preference data consist of triples , where is preferred to for prompt . We use the standard Bradley–Terry interpretation
with an unobserved human reward . Direct preference optimization eliminates an explicit reward model by comparing a learned policy score to a reference score (Rafailov et al., 2023). In diffusion models, Diffusion-DPO instantiated this comparison with a tractable surrogate for the image-level diffusion likelihood (Wallace et al., 2024). Abstractly, if denotes such a surrogate and , the pairwise objective has the form
The trajectory approximation differs across diffusion preference objectives, but the relevant common feature here is unchanged: each preference pair enters the loss through one image-level scalar comparison.
3.3 From scalar preference to local credit
The diffusion preference objective in equation 4 ranks two images, whereas its denoising surrogate is assembled from many local residuals in equation 2. This creates a route-allocation question: the objective supplies a global comparison but does not prescribe a sample-specific allocation over . Prompt token affects a local prediction through cross-attention rather than serving as another residual index. ToPO consequently uses the declared preferred-branch attention map as a conditional bridge from token modulation back to a spatial–temporal field.
The route-factor diagnostic makes this transition empirical. For every pair and candidate factor, we normalize its allocation and measure its KL divergence from uniform on that factor's declared support. Across 1,716 preference pairs, token, timestep, and spatial allocations each depart from uniform. Frequency is shown as a non-route comparison rather than selected or rejected by its raw KL magnitude. Because raw KL also depends on support cardinality, Figure 2 is a within-factor non-uniformity diagnostic rather than a cross-factor ranking. It motivates a token-conditioned, separable spatial–temporal construction—native diffusion coordinates plus a cross-attention token modulation—without claiming that non-uniformity establishes semantic correctness. Section 4 turns this construction into a routed preference objective.

Figure 2: Route-factor diagnostic over 1,716 preference pairs. Curves show pair-level KL divergence from a uniform allocation on each factor's declared support, on a logarithmic scale; markers and the sidebar give bootstrap means and 95% intervals. The raw KL values diagnose non-uniformity within a factor and are not used to rank factors with different support sizes. Token, timestep, and spatial allocations depart from uniform, while frequency is retained only as a comparison.
4 ToPO: Token-Oriented Spatial–Temporal Preference Routing
4.1 Overview
The preliminary analysis identifies non-uniform candidate statistics that can define a route over native diffusion coordinates rather than assign a loss directly to prompt tokens. ToPO uses a branchwise residual-contrast route to construct a spatial factor , an anchor-time factor , and a token-conditioned modulation weight as an attention-weighted content-token readout of the spatial factor. Preferred-branch cross-attention folds this modulation back into one separable spatial–temporal map . Thus, tokens modulate a diffusion-native route; they are not a separate loss coordinate. The frozen reference constructs the route, whose spatial factor also weights the midpoint regularizer. Figure 3 summarizes the training-time computation.
4.2 Token-conditioned separable spatial–temporal route construction
For an anchor , the residual-contrast pass noises both endpoints with the same draw and evaluates the frozen-reference predictions . For channel and latent site , its branchwise squared-residual contrast is
Here is the Diffusion-DPO integrand weight. is a symmetric observable residual-contrast magnitude: it is high where the frozen reference exhibits different local residual magnitudes for the two image branches. We use this label-invariant quantity to assign allocation mass, while the signed winner–loser term in equation 12 specifies preference direction. For example, a site with residual magnitudes (.1, .4) receives contrast .3 under either ordering of the branch labels. Thus the route emphasizes coordinates with larger branchwise residual-magnitude differences; it is not a standalone local preference label. Let

Figure 3: ToPO routing pipeline (schematic). A frozen reference contrasts preferred and dispreferred local squared residuals at four full-precision anchors. Spatial and timestep define a separable route; the cross-attention-projected token-conditioned modulation weight adjusts its spatial factor, as shown by the dashed magenta token-to-site paths. The detached field reweights Diffusion-DPO, while weights the auxiliary pixel-midpoint ordering term before the clipped AdamW update. Pair labels supply the DPO sign; routing supplies coordinate allocation.
normalize a nonnegative vector over its declared support to sum to one. The residual-contrast pass forms the data-dependent spatial and anchor-time marginals
then mixes each normalized marginal with its declared structural prior:
The locked configuration uses , a uniform spatial prior, and an SNR-flat anchor-time prior. During training, the anchor-time distribution is evaluated at an arbitrary sampled timestep through normalized Gaussian interpolation with :
At every preferred-branch residual-contrast forward, we capture the attention probabilities of all U-Net modules named attn2. We average query-key attention probabilities over heads, average each captured layer over the four anchors, average the resized layer maps, and bilinearly resize the result to the native latent grid ( for SD-1.5 and for SDXL); denote the resulting map by . We use the preferred branch as the declared coordinate-to-token readout: it conditions the spatial route on the image that defines the desired direction, while the signed DPO logit in equation 12 alone carries the winner-loser orientation. This choice is neither a target annotation nor a claim that preferred-only attention is the unique valid bridge; loser-only and symmetric bridges are distinct route variants. The token pathway reads the pre-prior spatial evidence through this map:
The content-token indicator removes padding, SOS, and the valid EOS position before normalization. This defines as an attention-weighted token-conditioned modulation statistic of branchwise residual disagreement while retaining a content-token prior.
Cross-attention folds the factors into the field used by the objective:
(10)
Here , , and , whereas . Equation 10 is deliberately separable over the two native loss coordinates: modulates , and does not introduce a three-dimensional loss tensor. At every update , the frozen reference computes from the current preference minibatch. The policy then uses on that same update: the route is differentiated through neither the attributor nor the reference model. This per-minibatch construction is shared by the SD-1.5 and SDXL implementations.
The normalization convention is part of the construction rather than a cosmetic rescaling. For a nonnegative map on its declared support , we use
Consequently, multiplying the factors changes their arrangement across coordinates without allowing a vanishing or arbitrarily scaled factor to set the global loss scale. The floor is the implementation safeguard used before the post-clipping update. This convention also makes the Shuffled-W stress test interpretable: it alters the arrangement of a normalized route rather than merely changing the total weight applied to the loss.
4.3 Preference and anchor losses
The main objective applies the detached route to the reference-relative local residual advantage. With policy and reference predictions and at a sampled training timestep, define
(12)
Thus weights the per-site residual reduction and scales the sampled-timestep preference logit. We further form a deterministic pixel-midpoint anchor and penalize an ordering violation between the policy's spatially weighted prediction distances to the two endpoints:
The complete loss is , with and in the locked run configuration. We encode the pixel midpoint rather than interpolate the two endpoint latents; this fixes a deterministic, symmetric image-space anchor under the same encoder used for both endpoints. Pixel averaging can contain ghosted or otherwise off-manifold content, so the anchor is not treated as a natural-image target and no generated image is trained to imitate it. It only supplies a common reference for the relative ordering of the two spatially weighted prediction distances. Because its three predictions are evaluated at one sampled timestep, it uses the shared factor , not the full .
The controlled removals, per-minibatch execution order, and scope of the supporting characterization are specified in Appendix B.2. They keep the underlying preference pairs fixed and test sensitivity to the declared routing factors under the locked configuration.
5 Experiments
5.1 Settings, metrics, and reporting
We evaluate SD-1.5 and SDXL with a fixed six-method checkpoint protocol. Non-ToPO rows are author-released final checkpoints and serve as descriptive within-backbone references. Locked ToPO runs initialize from SFT-winners (SD-1.5) or SDXL Base and use 500 AdamW updates on Pick-a-Pic v2 pairs (Kirstain et al., 2023) after 200 warmup updates. They are full-U-Net finetunes with effective batches of 1,024 and 512. A frozen fp32 reference recomputes the residual-contrast route on each minibatch and detaches it before the policy update; Appendix B.2 records precision, route, and triplet settings. The matched ToPO-Diffusion-DPO study is equal-update and shared-hyperparameter, not equal-GPU-hour or equal-search-budget.
We report PickScore, HPSv2, ImageReward, aesthetic score, CLIP, GenEval (Ghosh et al., 2023), and T2I-CompBench (Huang et al., 2023). Tables use audited locked endpoints; bootstrap artifacts resample prompts, not training runs. Appendix B.4 gives all three matched ToPO–Diffusion-DPO streams per backbone at the shared , 500-update endpoint. Backbone blocks remain separate protocols, and no automatic metric is treated as a universal preference endpoint.
Reporting convention. Tables are read within backbone–metric blocks and ablation panels. Mint/bold and mist-blue/italics mark the largest and second-largest distinct point estimates, not statistical significance; the .0001 SDXL CB Avg. near-tie and terminal r-gaps are uncolored.
5.2 Aggregate preference results
Table 1 reports multi-metric outcomes. On SD-1.5, ToPO has the largest listed point estimate on PickScore, HPSv2, ImageReward, and aesthetic score, while InPO leads CLIP; it exceeds the listed Diffusion-DPO checkpoint on all five. The second block gives the SDXL profile. The matched three-seed ToPO–Diffusion-DPO study is the controlled comparison: mean paired effects are positive on all five SD-1.5 metrics and on SDXL HPSv2, ImageReward, and CLIP (Appendix B.4). We report seedwise values and sample standard deviations, not prompt-bootstrap intervals as training-seed inference.
5.3 Blind human preference study
We conduct a blind SDXL pairwise study with 16 participants, 300 prompts, and one shared seed per prompt. Prompt-conditioned, unlabeled A/B judgments select overall preference, visual appeal, or prompt faithfulness, with ties allowed (Wallace et al., 2024); Figure 5 reports 300 aggregate responses per comparison-question pair.



Figure 4: Controlled SD-1.5 trajectory. PickScore, HPSv2, and ImageReward are evaluated at every checkpoint for one controlled training seed with shared initialization and schedule. Bands are 95% prompt-bootstrap intervals on 500 prompts, not training-seed intervals. Seedwise endpoints are reported separately in Appendix B.4.



Figure 5: Blind SDXL A/B study: 16 participants, hidden methods, and ties allowed. Bars show 300 descriptive aggregate responses per bar; the released record has no clustered uncertainty.
ToPO is selected more often in all six bars. The (ToPO/tie/comparator) triples are (198, 41, 61)/(220, 42, 38)/(202, 55, 44) against SDXL Base and (190, 51, 59)/(212, 34, 54)/(196, 55, 49) against Diffusion-DPO, ordered by the three questions. They are descriptive aggregate shares, not participant-level significance tests, because the released record is aggregate-only.
Table 1: Descriptive Pick-a-Pic checkpoint outcomes (500 prompts). Non-ToPO rows use author-released final checkpoints and serve as within-backbone references, not matched retraining comparisons. Shading denotes point-estimate rank, not statistical significance.
| Backbone | Method | PickScore | HPSv2 | ImageReward | Aesthetic | CLIP |
|---|---|---|---|---|---|---|
| SD-1.5 | Base | 20.543 | .2467 | .074 | 5.325 | 27.199 |
| Diffusion-DPO | 20.947 | .2586 | .250 | 5.336 | 27.595 | |
| SFT-winners | 21.181 | .2824 | .642 | 5.354 | 28.064 | |
| KTO | 21.108 | .2810 | .618 | 5.351 | 28.003 | |
| InPO | 21.410 | .2871 | .748 | 5.357 | 28.467 | |
| ToPO | 21.542 | .2903 | .812 | 5.361 | 28.393 | |
| SDXL | Base | 21.866 | .2869 | .744 | 5.359 | 28.411 |
| Diffusion-DPO | 22.264 | .3005 | .934 | 5.365 | 29.018 | |
| SFT-winners | 21.481 | .2829 | .647 | 5.348 | 28.526 | |
| InPO | 22.208 | .3044 | .955 | 5.365 | 28.842 | |
| MaPO | 21.945 | .2962 | .866 | 5.377 | 28.613 | |
| ToPO | 22.270 | .3140 | 1.032 | 5.360 | 29.487 |
Table 2: Compositional estimates. Avg. is unweighted; full suites are in Appendix C. Shading marks point-estimate rank only; the .0001 SDXL CB Avg. near-tie is unshaded.
| SD-1.5 | SDXL | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | GenEval | T2I-CompBench | Method | GenEval | T2I-CompBench | ||||||
| Avg. | Colors | Position | Avg. | Color | Shape | Avg. | Colors | Position | Avg. | Color | |
| Base | .4378 | .7553 | .0500 | .3393 | .3750 | .3715 | Base | .5783 | .8723 | .1275 | .4533 |
| Diffusion-DPO | .4591 | .7926 | .0625 | .3521 | .4028 | .3842 | Diffusion-DPO | .5917 | .8644 | .1075 | .4974 |
| SFT-winners | .4878 | .8138 | .0725 | .3870 | .4761 | .4310 | SFT-winners | .5464 | .8670 | .1250 | .4436 |
| KTO | .4879 | .8271 | .0550 | .3887 | .4875 | .4300 | InPO | .5827 | .8750 | .1125 | .4731 |
| InPO | .4925 | .8245 | .0725 | .3984 | .4967 | .4389 | MaPO | .5687 | .8803 | .1225 | .4691 |
| ToPO | .5092 | .8404 | .0775 | .4123 | .5242 | .4579 | ToPO | .6168 | .9069 | .1675 | .4975 |
5.4 System-level compositional outcomes
Table 2 reports declared GenEval and shared T2I-CompBench aggregates; Appendix C gives full suites.
On SD-1.5, ToPO leads both displayed summaries (.5092/.4123 versus .4591/.3521 for Diffusion-DPO). On SDXL, it leads GenEval (.6168), while the .4975/.4974 T2I-CompBench averages are a declared near tie at reported precision.
5.5 Routing Ablations and Preference-Scale Analysis
Route-allocation controls. Panel A compares three locked SD-1.5 routes. Uniform-W replaces the route by one while retaining the midpoint term. Shuffled-W applies a fresh joint value permutation before each loss evaluation, preserving the route-value multiset while changing its pair-coordinate assignment and local spatial-temporal structure. In this single locked run, the full route has the largest point estimate on all seven displayed outcomes, including PickScore (21.237 → 21.542), ImageReward (.769 → .812), and GenEval average (.4710 → .5092) versus Uniform-W. Terminal r-gap is a within-run diagnostic and is not rank-coded.
Multi-seed route controls. The single-run profile complements the matched three-seed comparison in Appendix B.4. Full ToPO exceeds Uniform-W on all five means. Against the coordinate-shuffled stress test, it is higher on PickScore, ImageReward, and CLIP, whereas Shuffled-W is higher on HPSv2 and Aesthetic. The matched evidence therefore supports a selective preference-reward and alignment advantage of the complete allocation design, while separating it from an all-metric dominance claim.
Component and scale sensitivity. Spatial, timestep, and token removals reduce PickScore by .295, .307, and .168; removing the content-token prior gives the largest reduction (.429). Removing the midpoint raises CLIP slightly but lowers PickScore and GenEval. The sweep is non-monotone: 2000 leads PickScore, CLIP, and GenEval, while 1000 leads HPSv2 and ImageReward.
Table 3: SD-1.5 ToPO ablations and route-allocation controls. Panel A uses one locked run per route allocation; matched multi-seed means are in Table 7. Shading marks point-estimate rank, not significance.
| Configuration | PickScore ↑ | HPSv2 ↑ | ImageReward ↑ | Aesthetic ↑ | CLIP ↑ | GE Avg.‡ ↑ | GE Count ↑ | Final r-gap |
|---|---|---|---|---|---|---|---|---|
| A. Route-allocation controls (one locked run per configuration) | ||||||||
| ToPO (full) | 21.542 | .2903 | .812 | 5.361 | 28.393 | .5092 | .4969 | 3.64 × 10⁻⁴ |
| Uniform-W | 21.237 | .2851 | .769 | 5.348 | 28.198 | .4710 | .4418 | 4.29 × 10⁻⁴ |
| Shuffled-W | 21.382 | .2899 | .741 | 5.358 | 28.180 | .4926 | .4375 | -3.47 × 10⁻⁵ |
| B. Component removals | ||||||||
| ToPO (full) | 21.542 | .2903 | .812 | 5.361 | 28.393 | .5092 | .4969 | 3.64 × 10⁻⁴ |
| w_k ≡ 1 | 21.374 | .2842 | .803 | 5.365 | 28.271 | .5026 | .4406 | 5.53 × 10⁻⁴ |
| w_τ ≡ 1 | 21.235 | .2883 | .805 | 5.361 | 28.331 | .5079 | .4500 | 4.27 × 10⁻⁴ |
| w_s ≡ 1 | 21.247 | .2856 | .808 | 5.364 | 28.371 | .5026 | .4219 | 5.34 × 10⁻⁴ |
| No SOS/EOS prior | 21.113 | .2845 | .788 | 5.362 | 28.311 | .5060 | .4531 | 6.50 × 10⁻⁴ |
| No triplet term | 21.295 | .2840 | .807 | 5.363 | 28.412 | .4950 | .4375 | 6.81 × 10⁻⁴ |
| C. Preference scale β | ||||||||
| 500 | 21.484 | .2902 | .804 | 5.368 | 28.277 | .4894 | .4062 | 1.00 × 10⁻³ |
| 1000 | 21.433 | .2921 | .856 | 5.364 | 28.201 | .4901 | .4406 | 8.64 × 10⁻⁴ |
| 2000 (default) | 21.542 | .2903 | .812 | 5.361 | 28.393 | .5092 | .4969 | 3.64 × 10⁻⁴ |
| 4000 | 21.398 | .2883 | .774 | 5.362 | 28.298 | .4972 | .4312 | 4.85 × 10⁻⁴ |
6 Conclusion
ToPO turns an offline preference pair into a detached, separable spatial–temporal DPO route without local labels or a learned reward model. A frozen reference supplies residual-contrast factors, preferred-branch cross-attention supplies content-token modulation, and an auxiliary midpoint term imposes symmetric ordering. The resulting field acts over diffusion’s native spatial and temporal coordinates rather than as a separate token-level loss.
At the locked 500-update endpoint, matched ToPO–DPO differences are positive on all five SD-1.5 metrics and on SDXL HPSv2, ImageReward, and CLIP. Full ToPO exceeds the route-neutral Uniform-W control on all five matched SD-1.5 means. Relative to the coordinate-shuffled stress test, it is higher on PickScore, ImageReward, and CLIP, while the shuffled route is higher on HPSv2 and Aesthetic. Checkpoint, compositional, and blind SDXL A/B results complement this equal-update evidence for attention-equipped noise-prediction latent-diffusion U-Nets.
Ethics and Reproducibility Statement
The blind image-preference study involved 16 participants, all of whom gave informed consent. The protocol used prompt-conditioned, method-unlabeled A/B judgments with a tie option for overall preference, visual appeal, and prompt faithfulness; Section 5 reports its aggregate win/tie/loss counts. We treat these aggregate observations as descriptive and do not infer participant-level significance from them. The supplementary material specifies the method, locked configurations, training and reporting conventions, component tables, and the scope of each supporting characterization. We will release code, locked configurations, evaluation scripts, and model checkpoints after review.
AI Use Statement
We used generative-AI tools for manuscript organization; drafting and editing presentation prose; refinement of methodological, mathematical, and proof exposition from author-specified designs and assumptions; critical review of claim and experiment descriptions; LATEX editing; and schematic-figure layout. We did not use generative AI to generate evaluation data, execute experiments, or introduce unverified numerical results. The authors reviewed and verified all AI-assisted text, equations, formal claims, code, tables, and visual artifacts against the reported methods and results, and take responsibility for the final manuscript.
References
Kevin Black, Michael Janner, Yilun Du, Ilya Kostrikov, and Sergey Levine. Training diffusion models with reinforcement learning. In International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=nMkdvj7BF8.
Hila Chefer, Yuval Alaluf, Yael Vinker, Lior Wolf, and Daniel Cohen-Or. Attend-and-excite: Attention-based semantic guidance for text-to-image diffusion models. ACM Transactions on Graphics, 42(4): 1–10, 2023. doi: 10.1145/3592116. URL https://arxiv.org/abs/2301.13826.
Florinel-Alin Croitoru, Vlad Hondru, Radu Tudor Ionescu, Nicu Sebe, and Mubarak Shah. Curriculum direct preference optimization for diffusion and consistency models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2824–2834, 2025. URL https://openaccess.thecvf.com/content/CVPR2025/html/Croitoru_Curriculum_Direct_Preference_Optimization_for_Diffusion_and_Consistency_Models_CVPR_2025_paper.html.
Kawin Ethayarajh, Winnie Xu, Niklas Muennighoff, Dan Jurafsky, and Douwe Kiela. KTO: Model alignment as prospect theoretic optimization. In Proceedings of the International Conference on Machine Learning, 2024.
Dhruba Ghosh, Hanna Hajishirzi, and Ludwig Schmidt. GenEval: An object-focused framework for evaluating text-to-image alignment. arXiv preprint arXiv:2310.11513, 2023.
Amir Hertz, Ron Mokady, Jay Tenenbaum, Kfir Aberman, Yael Pritch, and Daniel Cohen-Or. Prompt-to-prompt image editing with cross-attention control. In International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=_CDixzkzeyb.
Jonathan Ho, Ajay N. Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, volume 33, pp. 6840–6851, 2020. URL https://proceedings.neurips.cc/paper/2020/hash/4c5bcfec8584af0d967f1ab10179ca4b-Abstract.html.
Jiwoo Hong, Sayak Paul, Noah Lee, Kashif Rasul, James Thorne, and Jongheon Jeong. Margin-aware preference optimization for aligning diffusion models without reference, 2024.
Zijing Hu, Fengda Zhang, and Kun Kuang. D-Fusion: Direct preference optimization for aligning diffusion models with visually consistent samples. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 24869–24892. PMLR, 2025. URL https://proceedings.mlr.press/v267/hu25ab.html.
Kaiyi Huang, Kaiyue Sun, Enze Xie, Zhenguo Li, and Xihui Liu. T2I-CompBench: A comprehensive benchmark for open-world compositional text-to-image generation. In Advances in Neural Information Processing Systems, volume 36, 2023.
Qihan Huang, Long Chan, Jinlong Liu, Wanggui He, Hao Jiang, Mingli Song, and Jie Song. PatchDPO: Patch-level DPO for finetuning-free personalized image generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 18369–18378, 2025. URL https://openaccess.thecvf.com/content/CVPR2025/html/Huang_PatchDPO_Patch-level_DPO_for_Finetuning-free_Personalized_Image_Generation_CVPR_2025_paper.html.
Junyong Kang, Seohyun Lim, Kyungjune Baek, and Hyunjung Shim. Rethinking direct preference optimization in diffusion models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pp. 5611–5619, 2026. doi: 10.1609/aaai.v40i7.37480. URL https://ojs.aaai.org/index.php/AAAI/article/view/37480.
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. In Advances in Neural Information Processing Systems, volume 36, 2023.
Ming Li, Jie Wu, Justin Cui, Xiaojie Li, Rui Wang, and Chen Chen. ViPO: Visual preference optimization at scale. In International Conference on Learning Representations, 2026a. URL https://openreview.net/forum?id=x5zP3k64Nl.
Shufan Li, Konstantinos Kallidromitis, Akash Gokul, Yusuke Kato, and Kazuki Kozuka. Aligning diffusion models by optimizing human utility. In Advances in Neural Information Processing Systems, volume 37, 2024. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/2c487f8a54cf24c0684c32abc77fed56-Abstract-Conference.html.
Yang Li, Songlin Yang, Wei Wang, Xiaoxuan Han, and Jing Dong. -dpo: Robust preference alignment for diffusion models via divergence. In International Conference on Learning Representations, 2026b. URL https://proceedings.iclr.cc/paper_files/paper/2026/hash/a4c17d9b88eaefc9bdf7c656ffc8ce55-Abstract-Conference.html.
Zejian Li, Yize Li, Chenye Meng, Zhongni Liu, Ling Yang, Shengyuan Zhang, Guang Yang, Changyuan Yang, Zhiyuan Yang, and Lingyun Sun. Inversion-DPO: Precise and efficient post-training for diffusion models. In Proceedings of the 33rd ACM International Conference on Multimedia, 2025. doi: 10.1145/3746027.3755220. URL https://doi.org/10.1145/3746027.3755220.
Zhanhao Liang, Yuhui Yuan, Shuyang Gu, Bohan Chen, Tiankai Hang, Mingxi Cheng, Ji Li, and Liang Zheng. 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, pp. 13199–13208, 2025. URL https://openaccess.thecvf.com/content/CVPR2025/html/Liang_Aesthetic_Post-Training_Diffusion_Models_from_Generic_Preferences_with_Step-by-step_Preference_CVPR_2025_paper.html.
Xinxin Liu, Ming Li, Zonglin Lyu, Yuzhang Shang, and Chen Chen. Learning from noisy preferences: A semi-supervised learning approach to direct preference optimization. In International Conference on Learning Representations, 2026a. URL https://proceedings.iclr.cc/paper_files/paper/2026/hash/17061a94c3c7fda5fa24bbdd1832fa99-Abstract-Conference.html.
Zhuohan Liu, Wujian Peng, Yitong Chen, and Zuxuan Wu. Compositional text-to-image generation via region-aware bimodal direct preference optimization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 36604–36614, 2026b. URL https://openaccess.thecvf.com/content/CVPR2026/html/Liu_Compositional_Text-to-Image_Generation_Via_Region-aware_Bimodal_Direct_Preference_Optimization_CVPR_2026_paper.html.
Yunhong Lu, Qichao Wang, Hengyuan Cao, Xierui Wang, Xiaoyin Xu, and Min Zhang. 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, pp. 28629–28639, 2025.
Ziqi Ni, Yuanzhi Liang, Rui Li, Yi Zhou, Haibin Huang, Chi Zhang, and Xuelong Li. Seeing what matters: Visual preference policy optimization for visual generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 27260–27269, 2026. URL https://openaccess.thecvf.com/content/CVPR2026/papers/Ni_Seeing_What_Matters_Visual_Preference_Policy_Optimization_for_Visual_Generation_CVPR_2026_paper.pdf.
Yoonjin Oh, Yongjin Kim, Hyomin Kim, Donghwan Chi, and Sungwoong Kim. OSPO: Object-centric self-improving preference optimization for text-to-image generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7620–7631, 2026. URL https://openaccess.thecvf.com/content/CVPR2026/html/Oh_OSPO_Object-Centric_Self-Improving_Preference_Optimization_for_Text-to_Image_Generation_CVPR_2026_paper.html.
Mihir Prabhudesai, Anirudh Goyal, Deepak Pathak, and Katerina Fragkiadaki. Aligning text-to-image diffusion models with reward backpropagation. arXiv preprint arXiv:2310.03739, 2023. URL https://arxiv.org/abs/2310.03739.
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. In Advances in Neural Information Processing Systems, volume 36, pp. 53728–53741, 2023.
Herbert Robbins and David Siegmund. A convergence theorem for non negative almost supermartingales and some applications. In Optimizing Methods in Statistics, pp. 233–257. Academic Press, 1971.
Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Bjorn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10684–10695, 2022.
Jinjie Shen, Wei Deng, Xian Hu, Daiguo Zhou, and Jian Luan. STAR: Spatiotemporal adaptive reward allocation for text-to-image RL post-training. arXiv preprint arXiv:2606.17979, 2026. URL https://arxiv.org/abs/2606.17979.
Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=StlgiarCHLP.
Maojiang Su, Jerry Yao-Chieh Hu, Yi-Chen Lee, Ning Zhu, Jui-Hui Chung, Shang Wu, Zhao Song, Minshuo Chen, and Han Liu. High-order flow matching: Unified framework and sharp statistical rates. In Advances in Neural Information Processing Systems, volume 38, pp. 45820–45932, 2025.
Jiayang Sun, Pin Wang, Hongbo Wang, Xinyue Liu, Huaibo Huang, and Ran He. Towards fine-grained attribution: Instance-aware preference optimization for aligning diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 43155–43164, 2026. URL https://openaccess.thecvf.com/content/CVPR2026/html/Sun_Towards_Fine-Grained_Attribution_Instance-Aware_Preference_Optimization_for_Aligning_Diffusion_Models_CVPR_2026_paper.html.
Bram Wallace, Meihua Dang, Rafael Rafailov, Linqi 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, pp. 8228–8238, 2024.
Xun Wu, Shaohan Huang, Lingjie Jiang, and Furu Wei. Rethinking DPO-style diffusion aligning frameworks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 18068–18077, 2025. URL https://openaccess.thecvf.com/content/ICCV2025/html/Wu_Rethinking_DPO-style_Diffusion_Aligning_Frameworks_ICCV_2025_paper.html.
Xiaole Xian, Xilin He, Wenting Chen, Wenshuang Liu, Wenqi Mu, Yancheng He, Liang Li, Yi Zhang, and Xiangyu Yue. Consistent noisy latent rewards for trajectory preference optimization in diffusion models. In International Conference on Learning Representations, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/hash/0b408293619f725fd30162af057e531a-Abstract-Conference.html.
Juntao Xu, Tianxiang Zhan, and Yong Deng. Reliability assessment of information sources based on random permutation set, 2024. URL https://arxiv.org/abs/2410.22772.
Juntao Xu, Tianxiang Zhan, and Yong Deng. Evaluating evidential reliability in pattern recognition based on intuitionistic fuzzy sets. International Journal of Fuzzy Systems, 2025. doi: 10.1007/s40815-025-02117-7.
Han Xue, Zhiwu Huang, Qianru Sun, Li Song, and Wenjun Zhang. Freestyle layout-to-image synthesis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 14256–14266, 2023. URL https://openaccess.thecvf.com/content/CVPR2023/html/Xue_Freestyle_Layout-to-Image_Synthesis_CVPR_2023_paper.html.
Kai Yang, Jian Tao, Jiafei Lyu, Chunjiang Ge, Jiaxin Chen, Weihan Shen, Xiaolong Zhu, and Xiu Li. Using human feedback to fine-tune diffusion models without any reward model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8941–8951, 2024a. URL https://openaccess.thecvf.com/content/CVPR2024/html/Yang_Using_Human_Feedback_to_Fine-tune_Diffusion_Models_without_Any_Reward_CVPR_2024_paper.html.
Shentao Yang, Tianqi Chen, and Mingyuan Zhou. A dense reward view on aligning text-to-image diffusion with preference. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 55998–56032, 2024b. URL https://proceedings.mlr.press/v235/yang24e.html.
Tao Zhang, Cheng Da, Kun Ding, Huan Yang, Kun Jin, Yan Li, Tingting Gao, Di Zhang, Shiming Xiang, and Chunhong Pan. Diffusion model as a noise-aware latent reward model for step-level preference optimization. In Advances in Neural Information Processing Systems, volume 38, 2025. URL https://openreview.net/forum?id=YB9VGCClv9.
Huaisheng Zhu, Teng Xiao, and Vasant Honavar. DSPO: Direct score preference optimization for diffusion model alignment. In International Conference on Learning Representations, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/hash/7f70331dbe58ad59d83941dfa7d975aa-Abstract-Conference.html.
Ning Zhu, An Chen, Mengfei Zhao, Juntao Xu, Jingze Liang, Boyuan Gu, and Liang-Jian Deng. Rectify then diffuse: Disentangling concepts before denoising trajectory unfolds, 2026. URL https://arxiv.org/abs/2608.03135.
A Supporting Characterization
Appendix guide. A Supporting characterization · B Proofs and implementation details · C Additional results · D Token-modulation diagnostics
This supporting analysis records properties of three mathematical objects created by the method. First, for the per-minibatch configuration shared by both backbones, a frozen-reference route yields a stochastic update field. Second, the routed field obeys a one-step gradient-energy envelope. Third, at a frozen checkpoint, the token pathway computes an attention-weighted branchwise residual-contrast statistic with an explicit population target. These propositions formalize the declared construction under their assumptions; they do not prove semantic localization, establish the preferred attention side as uniquely correct, or analyze AdamW's moment-state dynamics. The proofs and all probability-space conventions appear in Appendix B.
A.1 Adaptive detached field
Let contain the optimization history through , and let contain the next preference minibatch together with the diffusion randomness used by the loss. We distinguish the unclipped and post-clipping gradients:
where sg detaches the frozen-reference attributor. In the current-batch setting, is recomputed from the same current batch, but its derivative is not taken. Let . Appendix B collects the update-field conditions (U1)–(U4): with-replacement sampling, the post-clipping bound , local dissipativity, and a Robbins–Monro schedule.
Proposition 1 (Current-batch detached-SGD field). Under , is a martingale difference. The projected SGD-form iteration in the declared local basin converges almost surely to its stable root .
The proposition isolates the role of an adaptive detached route in an SGD-form recursion. The reported optimizer uses constant-step AdamW; Proposition 3 gives the corresponding fixed-step characterization for the routed SGD-form field, while AdamW's moment-state dynamics remain implementation-specific.
Proposition 2 (Gradient-energy envelope). Suppose the unclipped gradient has the local representation , where is diagonal multiplication on local coordinate gradients and maps them to parameter space. Then
equation 15 is a one-iteration envelope for the energy carried by a routed update. It motivates monitoring route scale jointly with the underlying local-gradient energy.
Proposition 3 (Constant-step detached-SGD neighborhood). Under , if , then the projected SGD-form constant-step iterate obeys
This result characterizes the stable constant-step neighborhood. Under the decreasing schedule in (U4), Proposition 1 supplies the corresponding almost-sure conclusion for the projected SGD-form recursion.
A.2 Attention-weighted residual contrast
The following result is separate from the adaptive-update analysis. Fix a checkpoint and evaluate its detached attributor on held-out i.i.d. draws. Let denote the pre-prior spatial residual-contrast map from equation 6, and let be the declared winner-side attention map after the same aggregation used by the residual-contrast route. The token pathway has the population target
This normalization matters because a token can receive different total attention mass on different prompts. It makes the residual contrast observed at spatial sites selected by token under the frozen route's attention measure.
Proposition 4 (Frozen modulation-statistic consistency). Under the frozen-statistic conditions (F1)–(F4), the self-normalized pre-prior token statistic converges in probability to .
The proposition gives an exact population interpretation of the data-dependent component of the frozen token pathway: each token is scored by the residual contrast at the locations to which the declared attention map assigns mass. The content-token prior in equation 9 then supplies the declared mixture used for training.
A.3 Scale monitoring for routed updates
Proposition 5 (-W scale envelope). For a local ToPO preference contribution , its magnitude is bounded by . For the aggregate routed logit , the corresponding bound is . Hence is an operational summary of the sample-dependent scale introduced by the routed field.
The proposition motivates monitoring whenever ToPO introduces nonuniform routing. Panel C of Table 3 reports the resulting finite scale sweep under the fixed protocol.
B Formal Proofs and Implementation Details
This appendix keeps two probability constructions separate. The current-minibatch update analysis studies the reported ToPO recursion shared by SD-1.5 and SDXL, whose preference data and diffusion noise are resampled at each iteration. The frozen-statistic analysis fixes a checkpoint and evaluates an attention-weighted residual-contrast statistic on held-out independent draws. This separation aligns every formal result with the computation it analyzes, rather than treating the training recursion and the diagnostic statistic as interchangeable.
Proof roadmap. The update conditions (U1)–(U4) govern the current-batch, frozen-reference detached field; the frozen conditions (F1)–(F4) govern only the held-out token statistic. The map below makes the dependency structure explicit before introducing the technical details.
| Formal result | Object analyzed | Conditions and proof |
|---|---|---|
| Proposition 1 | current-batch detached-SGD field | (U1)–(U4), §B.5 |
| Proposition 2 | one-step routed energy | local u form, §B.6 |
| Proposition 3 | constant-step detached-SGD field | (U1)–(U3), §B.6 |
| Proposition 4 | frozen modulation statistic | (F1)–(F4), §B.7 |
| Proposition 5 | routed-logit scale | norm inequality, §B.8 |
B.1 Probability spaces and separated assumptions
For the adaptive recursion, let include a preference triple and every diffusion random variable used in one gradient calculation. Let denote its population distribution. Define
The stop-gradient symbol means that is evaluated by the frozen reference on the same Z but is constant when differentiating the policy loss. Let .
For the token-contrast analysis, is a frozen checkpoint and are held-out evaluation draws. The notation denotes the nonnegative winner-side attention mass after the implementation's declared head, layer, and anchor aggregation. The spatial grid is fixed by the frozen protocol, and is the pre-prior residual-contrast map from equation 6.
The token-contrast result uses the following regularity conditions.
(F1) Frozen evaluation. The checkpoint and all attribution settings are fixed before drawing the held-out evaluation sample. The are independent draws from .
(F2) Integrability. The attention-weighted residual-contrast sum in equation 35 and its attention-mass denominator have finite first moments.
(F3) Finite attribution grid. The declared latent spatial grid S is finite and fixed with the frozen evaluation protocol.
(F4) Declared attention measure. , and satisfies .
These conditions are directly tied to the frozen residual-contrast computation: they ensure that the attention-weighted residual contrast and its self-normalization are well-defined population quantities.
The adaptive-field analysis uses a different set of update conditions.
(U1) With-replacement current-minibatch idealization. Conditional on , . The frozen-reference map is recomputed from that same draw.
(U2) Post-clipping bound. in equation 18 is measurable and . This is the contract of ‘clip_grad_norm_(1.0)’ when is defined after clipping.
(U3) Local dissipativity. There is a nonempty closed convex set , a point with , and such that
(U4) Robbins–Monro schedule. For the almost-sure statement only, , , , and eventually .
The analyzed recursion is
where the Euclidean projection is nonexpansive because is closed and convex. The reported epoch-shuffled sampler and constant-learning-rate AdamW instantiate the current-batch route with an optimizer state beyond the projected SGD recursion. Proposition 3 supplies the matching constant-step neighborhood characterization for the SGD-form field.
B.2 Training procedure and scope
Algorithm 1 fixes the execution order of one reported ToPO minibatch update. It is a procedural restatement of the route construction and losses in Section 4: it introduces neither an additional loss coordinate nor a standalone token reward. At every update, the full-precision residual-contrast pass constructs the route from the current preference minibatch and is detached before the loss backward pass. Thus, the optimizer differentiates the routed objective but not the attributor; this execution order is shared by the SD-1.5 and SDXL implementations.
Algorithm 1 One detached preference-update step for ToPO.
Require: Frozen reference attributor; policy ; current preference minibatch ; anchors ;
1: Run the residual-contrast route on in full precision at every ; collect
2: Construct, mask, and normalize , and using Eqs. (5)–(9)
3:
4:
▷ detach current-minibatch route
5: Draw diffusion noise and training times for ; evaluate with
6: for each pair in ; evaluate with
▷ Eq. (13)
7: ; compute
8: ; update with the locked learning-rate schedule
9: return updated
Controlled removals and implementation conventions. Setting the token fold to one removes attention-projected token modulation; setting or to one removes temporal or spatial routing; and setting removes the midpoint regularizer. Panel A of Table 3 compares the full route with Uniform-W, which sets the route to one while retaining the midpoint term, and Shuffled-W, which applies a fresh joint value permutation before each loss evaluation. The latter preserves the empirical route multiset while disrupting its coordinate assignment and original spatial–temporal structure; it is consequently a coordinate-shuffled route stress test, not an isolated correspondence test. The residual-contrast route is evaluated in full precision with the frozen reference and detached before loss backward; paired endpoints share an anchor-noise draw; head, layer, and anchor averages precede bilinear resizing; and padding, SOS, and valid EOS are excluded before token normalization. The supporting characterization applies to this shared per-minibatch route construction.
Scope and availability. ToPO is instantiated for noise-prediction latent diffusion with accessible cross-attention. Extending it to flow-matching or other conditioning interfaces requires a compatible local residual field and dedicated validation. Upon publication, we will release the training and evaluation code, locked run configurations, and final model checkpoints for ToPO.
Locked implementation configuration. The main SD-1.5 endpoint is a full-U-Net finetune from SFT-winners at ; the SDXL endpoint is a full-U-Net finetune from SDXL Base at . Both use 500 updates of AdamW (), weight decay .01, , a 200-update linear warmup followed by a constant rate, gradient norm clipping at 1.0, gradient checkpointing, and checkpoints every 100 updates; the reported endpoint is the final 500-update checkpoint. SD-1.5 uses per-device batch 4 and SDXL uses 2; both use 32 accumulation microsteps over eight processes, giving effective batches of 1,024 and 512. Master U-Net weights and the residual-contrast pass are fp32; policy autocast is fp16 for SD-1.5 and bf16 for SDXL, whose DPO loss is explicitly evaluated in fp32. The residual-contrast pass captures
Table 4: Locked automatic-evaluation protocol. Generation is benchmark-specific and held fixed within each backbone–benchmark comparison. Main and matched-seed endpoints use the final 500-update checkpoint; the external checkpoint rows retain their released endpoint. “No extra negative prompt” means that no additional negative-prompt argument is supplied to the generation call.
| Protocol | Prompt / image schedule | Generation | Scorers / frozen implementation |
|---|---|---|---|
| Pick-a-Pic validation | 500 prompts; one image per prompt; seed 0 | DDIMScheduler from native pipeline config; 30 steps, CFG 7.5, no extra negative prompt; native VAE; (SD-1.5) / (SDXL) | PickScore v1; HPS-v2 1.2.0 (v2.1 weights); ImageReward-v1.0; improved aesthetic predictor; CLIP ViT-L/14 |
| T2I-CompBench | 300 prompts per declared category; SD-1.5: 10 images/prompt with seeds 42–51; SDXL: 5 images/prompt with seeds 42–46 | DDIMScheduler from native pipeline config; 30 steps, CFG 7.5, no extra negative prompt; native VAE; / | Official T2I-CompBench evaluator, commit 1b709499; reported SDXL categories exclude the 10-image complex evaluator |
| GenEval | 553 official prompts; four sequential samples/prompt from seed 42 | DDIMScheduler from native pipeline config; 50 steps, CFG 9.0, no extra negative prompt; native VAE; / | Official GenEval scoring mmdetection-v3.3.0 adapter |
every U-Net attn2 module at the four anchors, averages heads, anchors, and layers before bilinear resizing, and freezes and detaches the resulting route before the policy backward pass.
B.3 Immutable evaluation protocol
Table 4 collects the benchmark-specific generation and scorer settings used for the locked endpoint reports. Within any backbone–benchmark block, all compared rows use the same listed schedule; SD-1.5 and SDXL blocks are intentionally not pooled. SD-1.5 uses the native VAE from runwayml/stable-diffusion-v1-5 with the SFT-winners U-Net initialization, and SDXL uses the native VAE from stabilityai/stable-diffusion-x each sampling scheduler is reconstructed as a DDIM scheduler from that pipeline configuration. The source records identify the endpoint and protocol per run, while the released evaluator manifest fixes the listed public metric implementations.
Prompt manifests. The local prompt serializations used for Pick-a-Pic validation, PartiPrompts, and HPDv2 are fingerprinted below; the immutable evaluator manifest records the complete files and scorer identifiers. GenEval and T2I-CompBench use the official prompt files associated with the versions recorded in Table 4; no prompt subsampling is applied to those official benchmark suites.
| Prompt suite | SHA256 of local serialization |
|---|---|
| Pick-a-Pic validation | df6b63919b5ee3db7e5d7f3a448c9335cfd280d5f9099b7764b1add89c80ce0e |
| PartiPrompts | 41e6c66a6a396c8e2e6cc4f6e6eb256abc23d18c0fda512160e5d7bc90f83184 |
| HPDv2 | 1fc39ac6b38a80dd944dfe2f95af67e4385225d60d1bb1718f2b999169d02d8f |
B.4 Matched seeds and route-permutation semantics
Theory-level seed interpretation. A random training seed indexes the shuffled preference stream, diffusion noises and times, and any randomized implementation controls. To separate this source of randomness from a performance claim, consider the projected-SGD-form current-batch update under two random streams r and :
Assume, locally, that is -Lipschitz and define the same-parameter stream perturbation . Nonexpansiveness of gives
The clipped update field gives in this surrogate recursion. If an evaluation functional is locally -Lipschitz, then . Thus, normalization and clipping bound the effect of stochastic streams per update in the stated SGD-form model. The bound alone does not identify an empirical method effect; Table 5 supplies the corresponding matched three-seed comparison under the fixed 500-prompt protocol.
Exact Shuffled-W intervention. The implementation forms a joint residual-weight tensor for mini-batch index b, residual-band index f, and latent site s, then samples a fresh uniform permutation of all entries at every ablated loss evaluation:
This leaves the global empirical multiset, mean, and total weight unchanged, but disrupts its batch, residual-band, spatial, and timestep-induced assignments and therefore the route's original local structure. The residual-band index is part of the implementation's loss reduction, not an additional ToPO coordinate. The reported Panel-A entry is one training run of this intervention. A five-run extension would use five independent random-permutation streams, report the mean and standard deviation of each terminal metric, and test whether the route effect survives this intervention randomness; it is not equivalent to applying five static shuffles to one completed checkpoint.
Matched locked-control comparison. For each backbone and random seed, ToPO and Diffusion-DPO share the starting checkpoint, 500-update budget, preference-stream order, effective batch, optimizer, and learning-rate schedule. Both arms use the same locked preference scale , and every reported seed endpoint is the final 500-update checkpoint rather than a per-seed selected checkpoint. Seed identity therefore binds each ToPO-DPO row pair to the same locked training stream. Table 5 summarizes endpoint variation and seedwise differences; Table 6 exposes every underlying endpoint. This is an equal-update comparison under a common fixed configuration, rather than a claim about an unreported equal-budget hyperparameter search.
On SD-1.5, every paired stream favors ToPO on all five reported metrics. The SDXL effect is more targeted: all three streams favor ToPO on HPSv2, ImageReward, and CLIP, whereas PickScore and the automatic Aesthetic score favor Diffusion-DPO on the three paired streams. We consequently use the SDXL matched comparison to support stable gains in preference-reward and semantic-alignment metrics, rather than an all-metric automatic-quality claim. The raw records make these seedwise signs inspectable; with n = 3, we report sample standard deviations rather than significance claims. The descriptive multi-method checkpoint tables remain a separate fixed-endpoint protocol.
Table 5: Matched three-seed comparison with Diffusion-DPO. Mean ± sample standard deviation over three locked ToPO–Diffusion-DPO training-stream pairs, each evaluated at the final 500-update endpoint on the fixed 500-prompt protocol. is computed seedwise as ToPO minus Diffusion-DPO. Backbone blocks remain separate evaluation protocols.
| Backbone | Method / effect | PickScore | HPSv2 | ImageReward | Aesthetic | CLIP |
|---|---|---|---|---|---|---|
| SD-1.5 | Diffusion-DPO | |||||
| ToPO | ||||||
| Paired (ToPO-DPO) | ||||||
| SDXL | Diffusion-DPO | |||||
| ToPO | ||||||
| Paired (ToPO-DPO) |
Matched route-allocation controls. Table 7 compares route allocations within the SD-1.5 locked configuration. Diffusion-DPO provides the no-route/no-midpoint reference. Uniform-W retains the midpoint term but replaces its route weights by one, while Shuffled-W preserves the route-value distribution but jointly disrupts its coordinate correspondence and original local spatial-temporal structure through the declared fresh permutations. Full ToPO is higher than Uniform-W in all five reported mean metrics. Relative to Shuffled-W, it is higher on PickScore, ImageReward, and CLIP, whereas Shuffled-W has slightly higher HPSv2 and Aesthetic means. Thus, these controls support a selective preference-reward and text-alignment advantage of the declared allocation; they do not support an all-metric dominance claim or a significance claim from three summary statistics alone.
B.5 Adaptive detached attributor: martingale difference and Lyapunov recursion
Lemma B.1 (Adaptive detached-attributor martingale property). Under , with ,
Proof. Conditional on , the iterate is fixed. By (U1), the next draw has distribution . Crucially, the measurable map already includes recomputation of the frozen-reference detached field from that same draw. Hence
which proves the first equality in equation 24. No independence between and its batch, preference sign, or local logit is used.
For the second equality, expand the conditional squared norm and use equation 25:
(26)
where the final inequality is (U2).
Lemma B.2 (A summable-drift almost-supermartingale criterion). Let be adapted and integrable. If deterministic nonnegative sequences obey and
Table 6: Seed-level endpoints and effects underlying Table 5. Each seed is a locked ToPO–Diffusion-DPO pair evaluated at 500 updates on the same fixed 500-prompt protocol. For both backbones, ToPO recomputes and detaches its route from every current minibatch. The rows are ToPO minus Diffusion-DPO and make every reported pairwise direction explicit.
| Backbone | Seed / method | PickScore | HPSv2 | ImageReward | Aesthetic | CLIP |
|---|---|---|---|---|---|---|
| SD-1.5 | 1 / Diffusion-DPO | 20.895 | .2591 | .250 | 5.348 | 27.529 |
| 1 / ToPO | 21.508 | .2897 | .814 | 5.372 | 28.328 | |
| 1 / Paired | + .613 | + .0306 | + .564 | + .024 | + .799 | |
| 2 / Diffusion-DPO | 20.996 | .2591 | .250 | 5.327 | 27.638 | |
| 2 / ToPO | 21.523 | .2880 | .797 | 5.347 | 28.378 | |
| 2 / Paired | + .527 | + .0289 | + .547 | + .020 | + .740 | |
| 3 / Diffusion-DPO | 20.898 | .2580 | .249 | 5.345 | 27.659 | |
| 3 / ToPO | 21.617 | .2907 | .827 | 5.358 | 28.388 | |
| 3 / Paired | + .719 | + .0327 | + .578 | + .013 | + .729 | |
| SDXL | 1 / Diffusion-DPO | 22.224 | .3011 | .932 | 5.377 | 29.069 |
| 1 / ToPO | 22.220 | .3147 | 1.034 | 5.350 | 29.419 | |
| 1 / Paired | -.004 | + .0136 | + .102 | -.027 | + .350 | |
| 2 / Diffusion-DPO | 22.314 | .2998 | .932 | 5.378 | 28.950 | |
| 2 / ToPO | 22.259 | .3112 | 1.009 | 5.363 | 29.455 | |
| 2 / Paired | -.055 | + .0114 | + .077 | -.015 | + .505 | |
| 3 / Diffusion-DPO | 22.318 | .2999 | .932 | 5.356 | 28.957 | |
| 3 / ToPO | 22.280 | .3145 | 1.048 | 5.352 | 29.624 | |
| 3 / Paired | -.038 | + .0146 | + .116 | -.004 | + .667 |
then converges almost surely and almost surely.
Proof. Let and . Since , equation 27 gives
Thus is a nonnegative supermartingale. The nonnegative supermartingale convergence theorem yields an almost-sure finite limit for . Taking expectations in the telescoping form of equation 28 gives for every ; monotone convergence therefore gives almost surely. Finally, , so also converges. This is the deterministic-remainder specialization used in the Robbins–Siegmund argument (Robbins & Siegmund, 1971).
Proof of Proposition 1. Let . Projection nonexpansiveness and imply
(29)
Taking conditional expectations, using Lemma B.1, then applying (U2) and (U3), gives
(30)
Apply Lemma B.2 to , , and . Condition (U4) makes finite. Hence has an almost-sure limit and almost surely.
It remains to identify the limit. On an event where , there is a random such that for all . Then , contradicting the preceding summability. Therefore almost surely, which proves for the projected SGD-form recursion.
Table 7: Matched three-seed route-allocation controls on SD-1.5. All rows use the locked 500-update configuration and are reported as mean ± sample standard deviation over three matched training seeds. Uniform-W sets the route weights to one while retaining the midpoint term; Shuffled-W retains the route-value distribution while jointly disrupting its coordinate correspondence and original local structure with fresh permutations. Shading marks the largest and second-largest mean in each column, not statistical significance.
| Configuration | PickScore ↑ | HPSv2 ↑ | ImageReward ↑ | Aesthetic ↑ | CLIP ↑ |
|---|---|---|---|---|---|
| Diffusion-DPO | |||||
| Uniform-W | |||||
| Shuffled-W | |||||
| ToPO (full) |
B.6 Proofs of the gradient-energy and constant-step statements
Proof of Proposition 2. For a random vector with conditional mean ,
By definition of clipping, . Under the theorem's representation,
(32)
Squaring equation 32, taking conditional expectations, and substituting into equation 31 proves equation 15. The result is a one-update route-scale bound, stated independently of cross-method comparisons.
Proof of Proposition 3. Set . With , take expectations in equation 30 to obtain
Iterating equation 33 gives
which is equation 16. The nonvanishing second term is why the conclusion is a noise neighborhood. AdamW has additional first- and second-moment state variables, so it is not represented by equation 33.
B.7 Attention-weighted residual-contrast consistency
The frozen token pathway is a self-normalized attention-weighted average of the spatial residual contrast. For a held-out draw , define
The denominator retains the example-dependent mass of winner-side token attention. The following lemma supplies the statistical core of the result.
Lemma B.3 (Ratio law of large numbers). Under (F1), (F2), and (F4),
Proof. The pairs are i.i.d. and integrable by (F1)–(F2). The weak law of large numbers yields
Condition (F4) gives . The map is continuous at every point with , so the continuous-mapping theorem applied to equation 37 proves equation 36.
Proof of Proposition 4. By the definitions in equation 35,
Lemma B.3 now gives , completing the proof.
B.8 Proof of the beta-W scale envelope
Proof of Proposition 5. For a scalar local contribution, directly gives
For an aggregate logit, apply the triangle inequality coordinatewise:
(40)
Taking expectation of the nonnegative factor yields the monitoring scale . The envelope complements the observed finite sweep with an explicit route-scale quantity.
Empirical scale probe. At each checkpoint, the -W probe correlates batch-max active with the pre-clipping gradient norm over 32 batches (64 held-out samples). The probe makes the monitored relation between routed-logit scale and update magnitude directly inspectable.
Additional evaluation protocol. The formal main checkpoint comparison uses its audited 500-prompt records, one locked endpoint per method, and paired bootstrap artifacts; Table 5 separately reports three matched ToPO-Diffusion-DPO training streams under the same prompt protocol. The residual-contrast proposition concerns a frozen-checkpoint, held-out i.i.d. evaluation construction. The controlled token-functional diagnostic uses a fixed 300-case controlled suite, reports its five word classes separately, and applies a five-test Holm correction. The completed per-axis ablations and finite sweep are displayed in Table 3.
Table 8: Descriptive -W scale probe (32 paired batches per checkpoint).
| Step | Pearson | value |
|---|---|---|
| 100 | .660 | |
| 200 | .539 | |
| 300 | .728 | |
| 400 | .731 | |
| 500 | .671 |
Table 9: Closest preference-allocation interfaces. The table separates methods that retain an offline winner-loser pair from methods that construct local supervision, change the objective, or learn a trajectory reward. It is an interface map, not a numerical leaderboard.
| Method family | Pair / data interface | Local signal or objective | Coordinate allocation |
|---|---|---|---|
| Diffusion-DPO (Wallace et al., 2024) | supplied offline pair | reference-relative preference objective | uniform local reduction |
| DSPO (Zhu et al., 2025) | supplied offline pair | score-preference objective | global objective change |
| -DPO / Semi-DPO (Li et al., 2026b; Liu et al., 2026a) | supplied or pseudo-labeled pair | pair robustness / consistency handling | pair or sample weighting |
| PatchDPO / IAPO (Huang et al., 2025; Sun et al., 2026) | retained or constructed local preference | patch quality or detector/VLM instances | local supervision / instances |
| SPO / TAPO (Liang et al., 2025; Xian et al., 2026) | supplied pair or trajectory samples | step supervision or learned latent reward | timestep / trajectory |
| OSPO (Oh et al., 2026) | self-constructed pair data | attention masks and object-weighted SimPO | object regions |
| ToPO | supplied offline pair | frozen residual contrast and cross-attention | detached spatial/time route with token-conditioned spatial modulation |
C Additional Experimental Results
C.1 Closest local-allocation methods
Protocol and reporting. The 500-prompt primary checkpoint protocol uses one locked endpoint per method, and every external row identifies its author-released endpoint. Appendix B.4 separately reports three matched ToPO–Diffusion-DPO training streams under the same prompt protocol. T2I-CompBench reports only the six shared category labels; CB Avg.† and GE Avg.‡ are declared unweighted means, not official scores. Backbone blocks are separate protocols. PartiPrompts and HPDv2 are held-out evaluations with 1,632 and 3,200 prompts, respectively, without creating a pooled claim. Mint/bold and mist-blue/italics are local reading aids, not significance marks.
Aggregate human-study record and inferential scope. The released human-study artifact contains only the six aggregate triples (), each summing to 300. It therefore identifies descriptive shares, for example for comparison and question , but it does not identify dependence induced by repeated participants or prompts. We consequently report no participant- or prompt-clustered interval from these counts.
Held-out checks and attribution diagnostic. Tables 11 and 13 repeat the primary measurements on independent prompt suites. Table 14 instead audits on 300 controlled cases with a frozen SD-1.5 reference attributor, not the final ToPO checkpoint; Appendix D defines its ratio and matched controls.
Table 10: Expanded GenEval results. GE Avg.‡ is the unweighted mean of the six displayed GenEval components.
| Backbone | Method | GE Avg.‡ ↑ | Single ↑ | Two ↑ | Count ↑ | Colors ↑ | Position ↑ | Color-attr. ↑ |
|---|---|---|---|---|---|---|---|---|
| SD-1.5 | Base | .4378 | .9781 | .4116 | .3719 | .7553 | .0500 | .0600 |
| Diffusion-DPO | .4591 | .9812 | .4343 | .3938 | .7926 | .0625 | .0900 | |
| SFT-winners | .4878 | .9875 | .5404 | .4125 | .8138 | .0725 | .1000 | |
| KTO | .4879 | .9875 | .5202 | .4375 | .8271 | .0550 | .1000 | |
| InPO | .4925 | .9844 | .5379 | .4281 | .8245 | .0725 | .1075 | |
| ToPO | .5092 | .9875 | .5480 | .4969 | .8404 | .0775 | .1050 | |
| SDXL | Base | .5783 | .9906 | .7955 | .4188 | .8723 | .1275 | .2650 |
| Diffusion-DPO | .5917 | .9875 | .8434 | .4500 | .8644 | .1075 | .2975 | |
| SFT-winners | .5464 | .9906 | .7273 | .3562 | .8670 | .1250 | .2125 | |
| InPO | .5827 | .9781 | .8106 | .4750 | .8750 | .1125 | .2450 | |
| MaPO | .5687 | .9875 | .7904 | .3812 | .8803 | .1225 | .2500 | |
| ToPO | .6168 | 1.0000 | .8409 | .4920 | .9069 | .1675 | .2935 |
Table 11: Held-out PartiPrompts results (1,632 prompts; one random training seed).
| Backbone | Method | PickScore ↑ | HPSv2 ↑ | ImageReward ↑ | Aesthetic ↑ | CLIP ↑ |
|---|---|---|---|---|---|---|
| SD-1.5 | Base | 21.275 | .2513 | .205 | 5.318 | 27.103 |
| Diffusion-DPO | 21.509 | .2592 | .359 | 5.328 | 27.373 | |
| SFT-winners | 21.626 | .2804 | .653 | 5.354 | 27.754 | |
| KTO | 21.611 | .2795 | .618 | 5.351 | 27.734 | |
| InPO | 21.785 | .2839 | .736 | 5.355 | 28.064 | |
| ToPO | 21.858 | .2894 | .829 | 5.361 | 28.081 | |
| SDXL | Base | 22.375 | .2790 | .816 | 5.343 | 28.062 |
| Diffusion-DPO | 22.635 | .2938 | 1.096 | 5.358 | 28.655 | |
| SFT-winners | 21.974 | .2772 | .787 | 5.338 | 28.529 | |
| InPO | 22.657 | .2953 | 1.027 | 5.350 | 28.498 | |
| MaPO | 22.410 | .2868 | .935 | 5.364 | 28.190 | |
| ToPO | 22.657 | .2954 | 1.064 | 5.357 | 28.604 |
Reading the extended benchmark tables. Table 10 decomposes the declared GenEval average into six shared components. On SD-1.5, ToPO has the largest point estimate on the displayed average, Two, Count, Colors, and Position components; on SDXL, it has the largest displayed average, Single, Count, Colors, and Position components, while Diffusion-DPO remains largest on Two and Color-attr. Table 11 checks a separate 1,632-prompt suite. Within SD-1.5, ToPO has the largest point estimate on all five reported metrics. Within SDXL, it ties for the largest PickScore and leads HPSv2, whereas Diffusion-DPO leads ImageReward and CLIP and MaPO leads Aesthetic. These extensions preserve the within-backbone reading convention and do not create a pooled comparison across benchmarks.
Table 12: Expanded T2I-CompBench results.
| Backbone | Method | CB Avg.† ↑ | Color ↑ | Shape ↑ | Texture ↑ | Count ↑ | Spatial ↑ | Non-spatial ↑ |
|---|---|---|---|---|---|---|---|---|
| SD-1.5 | Base | .3393 | .3750 | .3715 | .4201 | .4514 | .1068 | .3109 |
| Diffusion-DPO | .3521 | .4028 | .3842 | .4243 | .4591 | .1309 | .3114 | |
| SFT-winners | .3870 | .4761 | .4310 | .4773 | .4677 | .1572 | .3129 | |
| KTO | .3887 | .4875 | .4300 | .4729 | .4748 | .1538 | .3131 | |
| InPO | .3984 | .4967 | .4389 | .4966 | .4785 | .1663 | .3135 | |
| ToPO | .4123 | .5242 | .4579 | .5175 | .4793 | .1816 | .3136 | |
| SDXL | Base | .4533 | .6277 | .4878 | .5587 | .5114 | .2179 | .3161 |
| Diffusion-DPO | .4974 | .7177 | .5378 | .6436 | .5402 | .2262 | .3190 | |
| SFT-winners | .4436 | .6089 | .4955 | .5437 | .5046 | .1888 | .3202 | |
| InPO | .4731 | .6731 | .5231 | .5902 | .5176 | .2170 | .3174 | |
| MaPO | .4691 | .6429 | .5197 | .5808 | .5302 | .2235 | .3175 | |
| ToPO | .4975 | .7190 | .5398 | .6441 | .5369 | .2250 | .3201 |
Reading the CompBench breakdown. Table 12 separates unary visual attributes (color, shape, and texture) from cardinality and relational conditions. On SD-1.5, ToPO has the largest displayed point estimate in every shown component. On SDXL, it has the largest displayed CB average and the three unary-attribute columns, while Diffusion-DPO is largest on count and spatial and SFT-winners on non-spatial. The breakdown resolves the aggregate into condition types without treating one category as a universal endpoint or comparing across backbones.
Table 13: Held-out HPDv2 results (3,200 prompts; one random training seed).
| Backbone | Method | PickScore ↑ | HPSv2 ↑ | ImageReward ↑ | Aesthetic ↑ | CLIP ↑ |
|---|---|---|---|---|---|---|
| SD-1.5 | Base | 20.825 | .2416 | .105 | 5.327 | 29.343 |
| Diffusion-DPO | 21.272 | .2551 | .345 | 5.339 | 29.703 | |
| SFT-winners | 21.605 | .2865 | .770 | 5.357 | 30.253 | |
| KTO | 21.526 | .2842 | .725 | 5.355 | 29.947 | |
| InPO | 21.854 | .2907 | .847 | 5.362 | 30.600 | |
| ToPO | 21.901 | .2957 | .907 | 5.364 | 30.515 | |
| SDXL | Base | 22.547 | .2881 | .934 | 5.356 | 30.281 |
| Diffusion-DPO | 22.884 | .3049 | 1.122 | 5.363 | 30.734 | |
| SFT-winners | 22.040 | .2877 | .872 | 5.347 | 30.434 | |
| InPO | 22.928 | .3113 | 1.095 | 5.361 | 30.637 | |
| MaPO | 22.617 | .2988 | 1.023 | 5.371 | 30.464 | |
| ToPO | 22.941 | .3063 | 1.123 | 5.360 | 30.821 |
Table 14: Token-modulation diagnostic with the frozen SD-1.5 reference attributor (60 cases per class).
| Class | Mean R | Ratio of means | 95% CI | Raw p | Holm p | R > 1/R < 1 |
|---|---|---|---|---|---|---|
| Color | 1.404 | 1.402 | [1.286, 1.523] | 48/12 | ||
| Shape | 1.261 | 1.256 | [1.136, 1.390] | 39/21 | ||
| Texture | 1.310 | 1.290 | [1.205, 1.419] | 43/17 | ||
| Count | .941 | .936 | [.851, 1.032] | .140 | .140 | 23/37 |
| Spatial | .918 | .906 | [.817, 1.024] | .140 | .140 | 24/36 |
Reading the held-out quality and token diagnostic. On the 3,200-prompt HPDv2 suite in Table 13, ToPO is largest on SD-1.5 PickScore, HPSv2, ImageReward, and Aesthetic, while InPO is largest on CLIP. In the SDXL block, ToPO is largest on PickScore, ImageReward, and CLIP, whereas InPO and MaPO lead HPSv2 and Aesthetic. Table 14 is a separate frozen-reference diagnostic: color, shape, and texture ratios are above one with Holm-adjusted evidence, while count and spatial intervals include one. It characterizes the declared token pathway rather than replacing the final-image evaluations above.
| SDXL Base | Diffusion-DPO | InPO | MaPO | ToPO (ours) | |
|---|---|---|---|---|---|
| a black angry cat with headphones on being a dj on a techno festival, with roaring animals as a crowd, hyping them up as they dance and rave |  | ||||
| A moai wearing headphones. | |||||
| Artwork in the style of the archangel. | |||||
| An alchemist in a dark hood | |||||
| a capybara made of voxels sitting in a field | |||||
| A man on a boat crossing a hellish sea surrounded by monstrous creatures in "Sea of Souls" by Gainax Co. | |||||
| A bird god swings a gold metal weapon while in combat ghostly fighting pose in a traditional Chinese myth. | |||||
| A bird is speaking into a high-end microphone, wearing headphones in a recording studio. |
Figure 6: Additional fixed-prompt SDXL aesthetic comparisons. Columns compare SDXL Base, Diffusion-DPO, InPO, MaPO, and ToPO on stylized subjects, visual detail, material rendering, and complex scenes. These eight fixed cases are a qualitative complement to the preference, quality, and human-study results.
| SD-1.5 Base | Diffusion-DPO | InPO | KTO | ToPO (ours) | |
|---|---|---|---|---|---|
| Two cats, one grey and one black, are wearing steampunk attire and standing in front of a ship in a heavily detailed painting. | |||||
| A white polar bear cub wearing sunglasses sits in a meadow with flowers. | |||||
| A portrait of Childe Hassam in digital art style surrounded by other famous artists in HD. | |||||
| A portrait painting of a male deer in a suit sitting on a sofa near a window by John Singer Sargent. | |||||
| A detailed soft painting of a bat with golden rose flowers and amethyst stained glass in the background. | |||||
| "A samurai warrior background with smoke in Ghibli Studio's mystical and magical style." | |||||
| A ginger haired mouse mechanic in blue overalls in a cyberpunk scene with neon slums in the background. | |||||
| Portrait of an anime princess in white and golden clothes. |
Figure 7: Additional fixed-prompt SD-1.5 visual-quality comparisons. Columns compare SD-1.5 Base, Diffusion-DPO, InPO, KTO, and ToPO on eight prompts with detailed apparel, accessories, materials, stylized subjects, and scenes. Each row is a same-prompt, same-backbone comparison that complements the SD-1.5 preference and quality evaluations.

Figure 8: Additional fixed-prompt SDXL attribute and relational comparisons. Highlighted words denote requested colors, shapes, or relations; magenta solid or dashed boxes call out locally mismatched prompt elements in comparator outputs. Columns compare SDXL Base, Diffusion-DPO, InPO, MaPO, and ToPO. These eight fixed cases make local composition directly inspectable alongside Tables 12 and 10.

Figure 9: Additional visual-quality samples from the final SDXL ToPO checkpoint. The gallery spans detailed environments, atmospheric scenes, fantasy subjects, a fashion portrait, and material-rich natural elements. Four central anchors foreground creature, character, lighting, and material detail, while the two outer columns retain eight uncropped square samples to show breadth. The gallery extends the matched SDXL plates in Figures 6 and 8 with a broader view of the final model's visual profile.
D Token-Modulation and Scale Diagnostics
The fixed-template controlled token test contains 300 cases: 60 each for color, shape, texture, count, and spatial relations. It reports the target-token mass relative to matched non-target content-token controls, with class-wise paired inference and no cross-class aggregate. Table 14 reports this diagnostic for the frozen sft_init_ref_unet reference attributor, not for the final trained ToPO checkpoint; it therefore characterizes a fixed attribution rule rather than final-model localization.
Realistic 3d render of a happy, furry and cute baby Shiba-Inu with mane smiling with big e...

Figure 10: Token-conditioned spatial–temporal routing in ToPO. A held-out Pick-a-Pic v2 winner/loser pair is processed by the final SD-1.5 ToPO checkpoint. The top row shows the pair, spatial factor , and the preferred-branch attention aggregate used in the token-to-space fold. The middle row displays timestep factor and the content-token modulation ; the bottom row shows the composed field at the four actual denoising anchors. This is a final-checkpoint diagnostic, distinct from the frozen-reference route used during training. The display is Gaussian-smoothed with for readability, and the four panels share one display scale.
D.1 A Single-Pair View of Token-Conditioned Spatial–Temporal Routing
The controlled token test above characterizes a fixed reference attributor over a prompt suite. Figure 10 instead opens a final-checkpoint diagnostic constructed for one held-out SD-1.5 Pick-a-Pic v2 preference pair; it is not the frozen-reference route used during training. For this example, the spatial factor is nonuniform, the timestep factor favors the low-noise anchor, and the attention-weighted token readout folds content-token modulation back onto the native image grid. The resulting is therefore a nonuniform spatial-temporal multiplier for this pair. This illustration makes the operational bridge inspectable, but does not establish a general localization guarantee.
| The Northern Lights over a frozen Scandinavian lake, greens and purples dancing in perfect reflection, a lone cabin |  | ||||
|---|---|---|---|---|---|
| A young woman in a red coat reading beneath a snow-covered cherry tree in a Japanese garden, the blossoms | |||||
| A giant panda in a bamboo forest, eating with total concentration, rain on the leaves around it, Sichuan. | |||||
| A great horned owl perched in a snow-covered fir at night, moonlight on its feathers, the forest utterly silent around it. | |||||
| Cherry blossoms falling into a dark temple pond in Kyoto at night, the petals lit from below, a paper lantern floating. | |||||
| A dragon sleeping on a mountain summit above the clouds, its breath a gentle fog, treasure glinting between its folded | |||||
| A Masai warrior in full regalia at a ceremony, ochre-dyed hair, beaded collar, a dry savanna behind him. | |||||
| A Valkyrie descending through storm clouds onto a Norse battlefield, ravens flanking her, the fallen beginning to stir. |
Figure 11: Seed-wise samples from the final SDXL ToPO checkpoint. Every row fixes one prompt, while the five image columns use different random seeds. The plate makes the resulting variation in composition, viewpoint, and local detail inspectable alongside the prompt elements that recur within a row, complementing the protocol-level results with a prompt-conditioned view of seed variation.
E Extended Discussion and Limitations
ToPO is a conditional route on diffusion-native coordinates rather than an auxiliary token-level loss. Branch-wise residual contrast supplies the spatial and temporal factors, while the signed DPO logit retains the winner-loser orientation. Preferred-branch cross-attention is the declared conditional bridge: it reads the spatial factor into the token-conditioned modulation statistic and folds that modulation back to the latent field. In both backbone implementations, the frozen reference recomputes this route from every current minibatch and stop-gradient detaches it before the corresponding policy update.
The evidence is intentionally layered. Fixed within-backbone tables summarize the outcome profile of author-released checkpoint comparisons; the matched three-seed ToPO-Diffusion-DPO study is the controlled equal-update comparison; the matched SD-1.5 Uniform-W/Shuffled-W controls probe route allocation under the same locked configuration; the controlled trajectory follows optimization under one common seed; route-permutation and component-removal experiments map local sensitivity; and blinded human choices evaluate final images directly. The shuffled control is an intentionally joint perturbation of coordinate correspondence and local structure. The formal analysis separately characterizes a projected, current-batch detached-SGD surrogate and a frozen token diagnostic; it is not an AdamW convergence theorem or a proof of semantic localization. Together, these layers connect the route construction to observed optimization behavior without conflating checkpoint comparisons, controlled perturbations, and frozen-statistic interpretation.
Limitations. ToPO is currently instantiated for attention-equipped, noise-prediction latent diffusion, where a local residual field and cross-attention map are both available. Extending the construction to flow matching or alternative conditioning interfaces requires a compatible allocation statistic and dedicated evaluation. The matched three-seed studies estimate variation only under the locked SD-1.5/SDXL configurations; the primary checkpoint tables remain one-endpoint descriptive references and do not establish matched multi-seed effects against every external method. The route controls show a mixed automatic-metric profile against Shuffled-W and do not establish an equal-compute advantage, a semantic-localization guarantee, or an exhaustive comparison against alternative saliency constructions. The token diagnostic evaluates a frozen SD-1.5 reference attributor and varies by concept class; it is therefore an analysis of the declared route rather than a final-checkpoint localization guarantee.