StyleRoute: Diffusion Style Transfer via Regional Routing and Conflict-aware Projection

Xunhao Lin, Xinpeng Ding, Yu Sun, Fei Gao, Maoying Qiao, Lihuo He, Nannan WangNeurIPS 2026

TL;DR

Applying a single, uniform "stylization strength" across an entire image is a recipe for disaster: crank it up to give the sky Van Gogh swirls, and you accidentally melt someone's face; dial it back to save the face, and the sky looks boring. StyleRoute fixes this by turning diffusion style transfer into an explicit regional routing problem—deciding where to protect geometry versus where to slather on texture—and using gradient projection to ensure global style updates never overwrite delicate local content.

What Problem Does This Paper Address?

Artistic style transfer wants to repaint a content photo in the visual language of a reference artwork while keeping the original scene recognizable. Different parts of a photo have wildly different tolerances for distortion: human faces, text, and sharp building edges break under tiny geometric shifts, whereas foliage, clouds, and fabric practically beg for heavy textural transformation.

Existing diffusion-based and attention-based methods generally rely on a single global knob (like attention temperature or a fixed feature-injection weight) to balance content and style everywhere at once. Even recent semantic region-matching pipelines lack an explicit mechanism to decide whether a matched region should prioritize structural preservation or aggressive texture injection. As a result, scenes rich in diverse regions suffer from a brittle trade-off: under-stylized backgrounds or mangled foregrounds.

Figure 1: Motivation. A single implicit stylization strength is brittle: conservative transfer weakens painterly cues, while stronger transfer can damage fine structure.

Methods

StyleRoute is a training-free, inference-time latent optimization framework—meaning the underlying diffusion model stays completely frozen while the image's latent representation is nudged at each denoising step. The authors split the pipeline into two explicit questions: where to transfer and how to optimize.

Figure 2: Method overview. The region-first stylization block answers where to transfer by esti- mating region-wise structure protection and texture eligibility. The global-control and diffusion- optimization blocks answer how to apply these regional decisions, using style alignment, conflict- aware projection, and appearance anchoring to preserve content structure.
  1. Where to Transfer (Dual-Carrier Regional Routing): Before denoising begins, automatic segmentation carves the content and style images into regions, using DINOv2 to extract semantic descriptors. Each content region is matched to a structure donor and (if reliable) a texture donor from the style image. A deterministic Stability Gate computes a routing score $g_r$ for each region based on confidence signals and route disagreement. When evidence is ambiguous, the gate conservatively defaults to protecting structure—because you can always add texture later in diffusion, whereas broken geometry is nearly impossible to fix.
  2. How to Optimize (Conflict-Aware Diffusion Stylization): During DDIM denoising, StyleRoute balances local routing with three global stabilizers:
  3. Directional Global Style Alignment: Guides the image along the vector from content to style without forcing exact copying.
  4. Sparse Texture Refinement: Activates only in the second half of the diffusion trajectory (once coarse layout settles) and only on the top-$K$ most texture-eligible regions.
  5. Conflict-Aware Gradient Projection: Borrowed from multi-task learning (like PCGrad), whenever the global style gradient points in a direction that opposes the content-preserving gradient ($\langle g_G, g_C \rangle < 0$), StyleRoute projects out the conflicting component so global style evolution cannot erase local structure. A Gaussian-blurred low-frequency anchor also prevents coarse color/layout drift.

Datasets

Because StyleRoute optimizes latents at inference time without training or fine-tuning, there is no training dataset. For evaluation, the authors follow standard style-transfer protocols, constructing a fixed held-out set of random pairs from:

  • MS-COCO and FFHQ (30 content images covering complex multi-object layouts and distortion-sensitive human faces).
  • WikiArt (30 diverse artistic style references).

Key Insights and Ideas

  • Region masks alone don't solve the problem: Simply feeding high-quality segmentation masks (like SAM) into an existing region-aware baseline (StyleGallery) barely moves the needle on performance. Knowing what the regions are doesn't help unless you explicitly route how much structure vs. texture each region should receive.
  • Asymmetry of errors in diffusion: Geometric mistakes made early in denoising lock in and ruin salient objects, while missing texture can easily be painted in late. Delaying sparse texture injection until 55% of the diffusion steps have passed—and biasing uncertain gates toward structure—exploits this natural hierarchy.
  • Resolving tug-of-war gradients geometrically: Fixed scalar loss weights fail because the conflict between global style and content changes dynamically across steps and pixels. Projecting the global style gradient onto a "content-safe subspace" stops the losses from actively canceling each other out.

Key Results

StyleRoute beats eight state-of-the-art baselines (including StyleGallery, StyleID, InstantStyle, AD, and StyTR$^2$) across all five evaluated metrics simultaneously—avoiding the usual trap of sacrificing content metrics to win on style metrics:

  • Quantitative wins: Achieves best scores in ArtFID (28.29 vs. 28.90 for StyleGallery), FID (19.11), LPIPS content preservation (0.4070), CFSD structural preservation (0.0551), and Block-Hungarian Gram style distance (2.190 $\times 10^{-3}$).
  • Human preference: In a 50-participant user study across 30 image groups, StyleRoute captured 62.3% of preference votes, more than tripling the runner-up StyleGallery (17.7%).
Figure 3: Qualitative comparison with baselines. StyleRoute preserves structure-sensitive geometry across diverse scenes while retaining visible style texture. Best viewed zoomed in.

Limitations and Future Work

  • Inference-time overhead: Because StyleRoute computes losses and projects gradients to update the latent during denoising, it incurs extra inference-time compute compared to feed-forward or adapter-only methods.
  • Hand-crafted routing & upstream dependencies: The Stability Gate relies on manually designed confidence formulas rather than a learned router, and overall quality is bounded by how good the initial segmentation masks and style-pool donors are.
  • Uncharted backbones and domains: Non-painting style references still show mixed content–style trade-offs, and the framework has not yet been validated on newer Diffusion Transformer (DiT / MMDiT) architectures.

Summary updated

Abstract

Diffusion-based style transfer faces two fundamental questions: which regions should prioritize structure preservation and which are more amenable to texture transfer, namely the “where” question, and how to achieve such region-aware stylization without corrupting content, namely the “how” question. Existing methods typically rely on a single mechanism to control local structure, local texture, and global style together, making them fragile in region-rich scenes: uniform stylization strength may distort salient objects, while conservative control leaves texture-dominant regions under-stylized. We propose StyleRoute, a region-aware diffusion stylization framework that explicitly separates where style should be transferred from how the transfer should be optimized. For the where question, StyleRoute infers a region-level routing variable from structure confidence, texture confidence, and route disagreement, deciding per region whether to protect structure or to inject texture. For the how question, StyleRoute coordinates the regional routing with diffusion optimization to guide global style evolution, suppress style-content conflicts, and stabilize coarse layout. Together, StyleRoute transforms the implicit style-content trade-off into an explicit, interpretable, and region-aware transfer process. Experiments on diverse content-style pairs show consistent improvements over prior diffusion-based and region-matching stylization methods. Project page: https://lxihan.github.io/StyleRoute/.
BibTeX
@inproceedings{lin2026styleroute,
  author = {Xunhao Lin and Xinpeng Ding and Yu Sun and Fei Gao and Maoying Qiao and Lihuo He and Nannan Wang},
  title = {{StyleRoute: Diffusion Style Transfer via Regional Routing and Conflict-aware Projection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=4kfUQ7cPeY},
}
Figure