RAGDiffusion++: From Macro-Retrieval to Micro-Fidelity Alignment for Garment Generation

Yuhan Li, Xianfeng Tan, Fangao Zeng, Wenxiang Shang, Pipei Huang, Hao Zhou, Zhiyu Jin, Wenjun Zhang, Bingbing NiarXiv 2026

TL;DR

RAGDiffusion++ introduces a novel reinforcement learning post-training paradigm (AR-GRPO) to solve the "High-Frequency Trajectory Collapse" in garment generation, allowing models to generate intricate fabric textures and clear logos instead of blurry, over-smoothed surfaces. By combining a dual-stream FLUX architecture, an attribute-aware reward model, and an adversarial discriminator, it achieves state-of-the-art visual fidelity, outperforming even large-scale commercial models.

What Problem Does This Paper Address?

Generating high-fidelity flat-lay garment images from real-world, in-the-wild photos is highly valuable for e-commerce, but current diffusion and flow-matching models suffer from two major flaws:

  1. High-Frequency Trajectory Collapse (HFTC): Standard Supervised Fine-Tuning (SFT) forces models to regress to the conditional mean of the training data. Because smooth, low-frequency textures dominate statistically, high-frequency details like tweed weaves, corduroy lines, and brand logos get completely smoothed out, resulting in a plastic "AI look".
  2. Artifact Hacking: Simply applying Reinforcement Learning (RL) to fix this causes the model to exploit blind spots in generic vision reward models (like CLIP or DINO). Instead of generating real textures, the model learns to generate deceptive checkerboard noise or high-frequency speckles that score highly but look terrible.
SFT models smooth out textures, whereas RL elevates the probability of true high-frequency modes.

Methods

The authors propose RAGDiffusion++, which addresses these issues through three core pillars:

  • Dual-Image-Stream FLUX Architecture: They upgrade the generative backbone from SDXL to FLUX, replicating a portion of the denoising stream to handle pure visual feature injection from the reference image.
  • Garment-RM (Perceptive Reward): A specialized reward model trained on 12 fine-grained garment attributes (material, texture, local decorations) using contrastive learning. This provides a precise, attribute-aware optimization direction instead of generic semantic similarity.
  • AR-GRPO (Adversarial-Regularized Group Relative Policy Optimization): To prevent artifact hacking, they integrate a dynamic GAN discriminator (built on a DINOv2 backbone) directly into the RL sampling trajectory. Acting as a "texture police," it penalizes low-level artificial noise while the Garment-RM rewards authentic high-frequency details.
The AR-GRPO framework combines static rewards (Garment-RM, LPIPS) with a dynamic discriminator reward to update the policy.

Datasets

  • STGarment-Plus: A newly introduced dataset containing 27,725 high-resolution, high-complexity garment pairs (in-the-wild reference and flat-lay target). It specifically focuses on difficult high-frequency materials (tweed, dense knits, textured leather) and complex structures (down jackets, coats) under challenging real-world poses.
  • Viton-HD & DressCode: Used for zero-shot cross-dataset evaluation to test the model's out-of-distribution generalization capabilities.

Key Insights and Ideas

  • RL as Distribution Reshaping: SFT via flow matching is fundamentally limited because it calculates a deterministic conditional mean. RL, by replacing Ordinary Differential Equation (ODE) inference with Stochastic Differential Equation (SDE) sampling, allows the model to explore the thin distributional tails where rare, high-frequency trajectories reside.
  • The Necessity of the "Texture Police": Multi-reward formulations aren't enough to stop reward hacking. A dynamically updated adversarial discriminator is essential because it co-evolves alongside the generator, continuously closing new blind spots the model tries to exploit.
  • Disentangled Attribute Rewards: Generic aesthetic models (like PickScore or HPSv2) fail at garment evaluation (scoring below 50%, worse than random guessing) because they judge holistic composition rather than physical correctness. Disentangling attributes (e.g., fabric type vs. collar style) is key to meaningful reward signals.

Key Results

  • Quantitative Improvements: RAGDiffusion++ reduces FID by 14.3% and KID by 34.2% compared to its predecessor, RAGDiffusion. It outperforms the open-source baseline Qwen-Image-Edit by 51.0% in KID and beats the commercial model Nano Banana by 10.9% in FID.
  • Breaking the SFT Bottleneck: As shown in the training curves, extending SFT yields diminishing returns, whereas introducing AR-GRPO triggers a sharp decline in FID, successfully recovering fine-grained details.
AR-GRPO breaks the SFT performance plateau, significantly enhancing fabric textures and intricate patterns.
  • Qualitative Excellence: The model successfully restores complex textures like corduroy and honeycomb knits while maintaining sharp, undistorted brand logos, avoiding the checkerboard artifacts that plague standard GRPO.

Limitations and Future Work

  • Computational Overhead: The post-training RL process requires significant computational resources, sampling 8 trajectories per prompt over multiple days of training on high-end GPU clusters.
  • Category Distribution: While the model handles upper-body garments exceptionally well due to the training data distribution, extending this level of micro-fidelity to full-body outfits or highly fluid materials (like silk or sheer chiffon) remains an open area for future dataset expansion and alignment tuning.

Summary updated

BibTeX
@misc{li2026ragdiffusion,
  author = {Yuhan Li and Xianfeng Tan and Fangao Zeng and Wenxiang Shang and Pipei Huang and Hao Zhou and Zhiyu Jin and Wenjun Zhang and Bingbing Ni},
  title = {{RAGDiffusion++: From Macro-Retrieval to Micro-Fidelity Alignment for Garment Generation}},
  year = {2026},
  eprint = {2608.29280},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.29280},
}
Figure