Abstract
The fashion industry has diverse applications in multi-modal image generation and editing. It aims to create a desired high-fidelity image with the multi-modal conditional signal as guidance. Most existing methods learn different condition guidance controls by introducing extra models or ignoring the style prior knowledge, which is difficult to handle multiple signal combinations and faces a low-fidelity problem. In this paper, we adapt both style prior knowledge and flexibility of multi-modal control into one unified two-stage framework, M6-Fashion, focusing on the practical AI-aided Fashion design. It decouples style codes in both spatial and semantic dimensions to guarantee high-fidelity image generation in the first stage. M6-Fashion utilizes self-correction for the non-autoregressive generation to improve inference speed, enhance holistic consistency, and support various signal controls. Extensive experiments on a large-scale clothing dataset M2C-Fashion demonstrate superior performances on various image generation and editing tasks. M6-Fashion model serves as a highly potential AI designer for the fashion industry.
Introduction
M6-Fashion is a unified, two-stage transformer framework designed to master the complex world of fashion image generation and editing. By merging the high-fidelity style priors of Generative Adversarial Networks (GANs) with the multi-modal flexibility of non-autoregressive transformers, it achieves state-of-the-art results across tasks like text-to-image synthesis and local editing—all while running 8x faster than traditional autoregressive models.
The Challenge in Fashion AI
The fashion industry demands high-fidelity imagery and granular control. Designers need to generate new outfits from text descriptions, swap patterns on existing clothes, or "out-paint" a partial sketch into a full garment.
Existing solutions generally fall into two camps, both with flaws:
- GAN-based methods: Excellent at producing realistic textures but often require separate, specialized models for every new task (e.g., one for style mixing, another for editing), making multi-modal control (combining text and images) difficult.
- VQ-based Transformer methods: Highly flexible but often suffer from "low-fidelity" issues because they use generic image compressors that ignore domain-specific style knowledge (like the specific drape or texture of fabric). Furthermore, their autoregressive nature (predicting one pixel-token at a time) is slow and struggles with local editing where global context is needed.
The M6-Fashion Framework
M6-Fashion proposes a two-stage "best of both worlds" approach to address these limitations.
Stage 1: Spatial-aware Discrete Latent Codes
Instead of a standard VQ-VAE, the authors use a StyleGAN-based generator as the decoder. They decouple style codes into spatial and semantic dimensions, allowing the model to "understand" where a pocket is versus what the fabric looks like. To handle the vast variety of fashion details, they employ Product Quantization (PQ), which allows them to represent an exponentially large codebook (for high detail) at a very low memory cost.
Stage 2: Non-Autoregressive (NAR) Transformer
Unlike models that generate images line-by-line, M6-Fashion uses a bidirectional transformer. It treats image generation as a "filling in the blanks" task. To make the NAR generation stable, they introduced the SMART algorithm (Progressive Self-correction). The model starts with a fully masked image and iteratively predicts and refines tokens, allowing it to fix its own mistakes across iterations for better holistic consistency.
Key Insights
- Fusing GAN Priors with Transformers: By using a StyleGAN-based decoder in Stage 1, the Transformer in Stage 2 inherits a "sense of style" and realism that generic models lack.
- Spatial Awareness for Editing: By maintaining a 2D grid of latent codes, the model naturally supports local editing. Users can mask a specific area (like a collar) and ask the model to regenerate only that part based on a new text prompt or a reference pattern.
- The Power of Non-Autoregressive Generation: Moving away from the "left-to-right" generation of GPT-style models allows for bidirectional context. The model can "see" the bottom of a dress while deciding how to draw the top, which is crucial for maintaining symmetry and style consistency.
Experimental Results
The researchers utilized M2C-Fashion, a massive, specialized clothing dataset containing tens of millions of image-text pairs.
- Superior Quality: On the text-to-image task, M6-Fashion achieved a Fréchet Inception Distance (FID) of 5.69, significantly outperforming CogView (39.79) and Taming Transformer (10.28).
- Inference Speedup: Thanks to the NAR architecture and the SMART algorithm, M6-Fashion is roughly 8x faster than VQGAN and CogView, generating high-quality images in about 1 second.
- Zero-Shot Creativity: The model demonstrates "counterfactual" generation, successfully synthesizing items that don't exist in the training data—like a "men's suit dress"—by logically combining learned concepts.
Conclusion and Future Work
While M6-Fashion is a powerhouse for clothing, its reliance on fashion-specific style priors means it might not generalize to open-domain scenes without retraining. Future directions include exploring universal synthesis capabilities on open domains, potentially scaling the architecture to compete with general-purpose models while maintaining its speed and editing advantages.
Summary updated