Diagnose-to-Generate: Eliminating Structural Distortions in Flow Models via Patch-Level Grounded Alignment
cs.CV
Submitted: 2026-10-13
Updated: 2026-10-13
Code: https://github.com/black-forest-labs/flux
License: http://creativecommons.org/licenses/by/4.0/
The gist: Flow-based image generators achieve strong semantic synthesis but still produce localized structural distortions, such as malformed hands and limbs.
Terminology
Abstract
Flow-based image generators achieve strong semantic synthesis but still produce localized structural distortions, such as malformed hands and limbs. Existing post-training methods typically optimize global scalar rewards, which provide weak spatial credit assignment and may alter well-formed regions while correcting local defects. We present Diagnose-to-Generate (D2G), a grounded alignment framework that separates visual diagnosis from generative optimization. We construct Achilles-600K, a region-annotated dataset for structural anomalies, and train ARGUS through supervised cold-start and Region-Aware Group Relative Policy Optimization to predict anomaly categories and bounding boxes. These diagnoses are converted into confidence-weighted spatial rewards for our Patch-level Flow-GRPO. We further identify that global stochastic exploration can shift semantic regions across group rollouts, making patch-wise relative advantages spatially inconsistent. Our Trajectory-Preserving Stochastic Sampling (TPSS) anchors early denoising with deterministic ODE trajectories and introduces stochasticity only at later steps, thereby limiting intra-group spatial drift while retaining local exploration. Experiments on FLUX.1-dev and SD3.5 show improved structural fidelity with preserved FID and CLIP scores. Consistent gains under HumanRefiner, zero-shot GPT-4.1, and blinded human evaluation further demonstrate that the improvements extend beyond the training reward model.
Sources
- Wan: Open and Advanced Large-Scale Video Generative Models
- Qwen3-VL Technical Report
- Qwen2.5-VL Technical Report
- Z-Image: An Efficient Image Generation Foundation Model with Single-Stream Diffusion Transformer
- OpenGPT-4o-Image: A Comprehensive Dataset for Advanced Image Generation and Editing
- Scaling Rectified Flow Transformers for High-Resolution Image Synthesis
- Seedance 1.0: Exploring the Boundaries of Video Generation Models
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- Re-Align: Structured Reasoning-guided Alignment for In-Context Image Generation and Editing
- GLM-4.5V and GLM-4.1V-Thinking: Towards Versatile Multimodal Reasoning with Scalable Reinforcement Learning
- Mind the Generative Details: Direct Localized Detail Preference Optimization for Video Diffusion Models
- T2I-R1: Reinforcing Image Generation with Collaborative Semantic-level and Token-level CoT
- HunyuanVideo: A Systematic Framework For Large Video Generative Models
- MixGRPO: Unlocking Flow-based GRPO Efficiency with Mixed ODE-SDE
- Q-Insight: Understanding Image Quality via Visual Reinforcement Learning
- Flow Matching for Generative Modeling
- Flow-GRPO: Training Flow Matching Models via Online RL
- Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow
- Evaluating and Predicting Distorted Human Body Parts for Generated Images
- GIE-Bench: Towards Grounded Evaluation for Text-Guided Image Editing
Related papers
- Loss Knows Best: Detecting Annotation Errors in Videos via Loss Trajectories
- AnchorWeave: World-Consistent Video Generation with Retrieved Local Spatial Memories
- Benchmarking the Robustness of Foundation Models for Mammography under Domain Shift
- MambaX-Net: Dual-Input Mamba-Enhanced Cross-Attention Network for Longitudinal MRI Segmentation
- TeleOCR: Navigating Document Parsing Across Digital and Camera-Captured Documents
- A Survey on Efficient Vision-Language-Action Models