arXiv:2609.03688cs.CVSep 2026

Manuscript Offprint

arXiv:2609.03688

ToPO: Token-Conditioned Preference Routing for Attention-Based Latent Diffusion Models

Juntao Xu, Shihong Li, Hoi Fan Au, Ning Zhu

Juntao Xu1,∗^{1,*} Shihong Li2,∗^{2,*} Hoi Fan Au1^{1} Ning Zhu3^{3}

1^{1}Tsinghua University 2^{2}University of Electronic Science and Technology of China 3^{3}Stanford University

$Equal contribution.

SDXL BaseDiffusion-DPOInPOMaPOToPO (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 ss and denoising time τ\tau are native noise-prediction indices; a prompt token kk 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 wkw_k and folds it back into a separable spatial–temporal field W(s,τ)W(s,\tau). 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.

References (64)