TL;DR
Style-GRPO introduces a two-stage preference optimization framework that solves the long-standing challenge of decoupling style from content in image style transfer. By leveraging a newly curated 300k adversarial dataset (StyleReward-Dataset) and a specialized vision-language reward model (StyleScore), the method uses Group Relative Preference Optimization (GRPO) to achieve state-of-the-art style alignment without sacrificing the semantic integrity of the original image.
What Problem Does This Paper Address?
Image style transfer requires a model to apply a reference style (e.g., "cyberpunk" or "watercolor") to a content image while faithfully preserving its original structure and meaning.
Despite recent leaps in text-to-image diffusion models, existing editing tools frequently suffer from two opposing failure modes:
- Style Leakage: The model fails to fully capture or apply the global style traits.
- Semantic Drift: The model over-stylizes, altering the actual objects or context of the source image to fit the aesthetic.
Standard supervised fine-tuning (SFT) often causes models to overfit to dataset biases, failing to generalize across diverse artistic expressions. The authors tackle this by framing style transfer as a preference optimization problem, explicitly teaching the model how to balance the trade-off between style fidelity and content preservation.
Methods
The authors propose Style-GRPO, a two-stage training pipeline designed to achieve high-fidelity style transfer:
- Stage 1: Domain Adaptation (SFT): The base model (FLUX.1[Kontext]) undergoes supervised fine-tuning on high-quality, verified style-content pairs to establish a stable initial policy.
- Stage 2: Preference Refinement via GRPO: Using Group Relative Preference Optimization, the model samples multiple stylistic candidates for a given prompt. Instead of relying on a costly auxiliary critic network, candidates are scored directly by StyleScore, a custom vision-language reward model. The relative rewards within the sampled group drive stable policy updates.
Additionally, the authors implement a timestep-aware reward weighting strategy. Because early diffusion denoising steps dictate global structure and style layout, the framework heavily weights the reward signal during these initial steps, significantly improving style-content separation.
Datasets
The core engine behind this work is the creation of two new resources:
- StyleReward-Dataset: An expert-annotated dataset containing over 300k adversarial image pairs and 150k prompts. It spans real-world cultural aesthetics and virtual game styles. Crucially, it features an adversarial setup: each clean "perfect pair" is contrasted against targeted negative examples that are either content-aware but style-inconsistent or style-aware but content-inconsistent.
- StyleScore: An end-to-end multimodal reward model trained on the StyleReward-Dataset. Built on top of a Qwen2.5-VL-7B backbone with a custom MLP reward head, it acts as a language-guided verifier that jointly evaluates style consistency, content preservation, and perceptual quality.
The data distribution and curation pipeline are illustrated below:
Key Insights and Ideas
- The Flaw of Generalist VLMs: Standard vision-language models often conflate general aesthetic appeal with true style fidelity. They fail to penalize images that look visually stunning but completely alter the underlying content. Specialized adversarial training fixes this blind spot.
- Why SFT Alone Isn't Enough: Running reinforcement learning directly on a base model is highly unstable because the model initially lacks a nuanced understanding of style semantics. SFT provides the necessary foundation, while GRPO fine-tunes the delicate boundary between style and content.
- Temporal Importance of Style: Not all diffusion timesteps are equal. Prioritizing reward feedback during the early stages of generation prevents the model from drifting semantically while ensuring the global style is locked in.
Key Results
The proposed framework was evaluated against strong baselines (including StyleBooth, Omnistyle, and DiffStyler) on public benchmarks like ImgEdit and AnyEdit:
- Reward Model Accuracy: StyleScore achieved an outstanding 98.6% preference accuracy on a 500-test-pair split, vastly outperforming generalist models like Qwen2.5-VL (65.2%) and ImageReward (48.7%).
- Quantitative Superiority: On the ImgEdit benchmark, Style-GRPO achieved state-of-the-art scores under both GPT-4o (4.74) and Gemini-2.5-Pro (4.46) automated evaluations. On AnyEdit, it achieved the lowest L1 Distance (0.0944) and highest DINO similarity (0.7583), proving its exceptional content preservation capability.
- Human Preference: In a large-scale blind user study with 36 participants evaluating 50 diverse prompts, Style-GRPO was overwhelmingly selected as the top choice (Rank 1) in 87.5% of cases.
Limitations and Future Work
Currently, Style-GRPO is optimized primarily for text-guided style transfer, meaning the target style must be described textually. The authors note that a natural and vital next step is extending the framework to accept reference images directly as style prompts. This extension would bypass the descriptive limitations of text and unlock even more precise artistic control for complex, real-world workflows.
Summary updated