Abstract
Fashion image editing requires high precision to modify specific attributes like necklines or patterns while maintaining the overall garment structure and background. Traditional GAN-based approaches often struggle with scalability and training stability when handling numerous attributes. This paper introduces a novel framework that utilizes a pre-trained, "off-the-shelf" diffusion model guided by a domain-specific multi-attribute classifier. By incorporating an attention-pooling Vision Transformer (ViT), the model generates internal cross-attention maps that serve as "soft masks," enabling precise, mask-free editing. Experimental results on the Shopping100k dataset demonstrate that this approach achieves high photorealism and stability across 100 different fashion labels.
Introduction
In the e-commerce sector, the ability to programmatically alter garment attributes—such as changing a round-neck shirt to a V-neck—is highly valuable. However, existing methods face significant hurdles. Generative Adversarial Networks (GANs) typically require separate training for different datasets and often suffer from "training collapse" when tasked with multi-attribute manipulation. Furthermore, many high-quality tools necessitate manual masking, which is impractical for high-volume industrial use. This research proposes a scalable, mask-free alternative leveraging the robust generative capabilities of diffusion models.
Methodology
The proposed framework avoids training a generative model from scratch. Instead, it employs a pre-trained Denoising Diffusion Probabilistic Model (DDPM) and steers its denoising process using a specialized fashion classifier.
The architecture consists of several key components:
- Classifier-Guided Diffusion: A general-purpose diffusion model provides visual priors, while a fashion-specific classifier provides the gradient signal to move the image toward target attributes.
- Attention-Pooling ViT: A Vision Transformer is fine-tuned with a novel attention-pooling layer. The authors found that freezing the majority of a pre-trained ViT and only training the attention-pooling layer yielded the best results, allowing the model to focus on spatially relevant regions for specific attributes.
- Mask-Free Editing via Cross-Attention: The framework utilizes internal cross-attention maps as "soft masks," identifying pixels relevant to the target attribute and preserving the rest of the image.
- Background Preservation: A loss function (including LPIPS) is applied to low-attention regions to ensure the person and background remain unchanged.
Experiments and Key Insights
The researchers utilized the Shopping100k dataset, focusing on 8 major attribute categories (Category, Collar, Fabric, Fit, Gender, Neckline, Pattern, and Sleeve Length) encompassing 100 labels.
A core insight of this work is that "off-the-shelf" diffusion models trained on general datasets like ImageNet possess a latent space rich enough for fashion tasks when properly guided. Additionally, the study found that classifiers are significantly more stable to train than GANs under limited data conditions. The internal "reasoning" of the transformer-based classifier—visualized through attention maps—provides the necessary localization for editing without human intervention.
Results
The diffusion-based framework demonstrated superior stability compared to StarGAN and Fashion-AttGAN, which frequently collapsed when handling the full 100-label set. The CLIP-pretrained ViT-L/14 with attention pooling achieved an average classification accuracy of 80.9%, providing a robust guidance signal. Qualitatively, the model successfully performed complex edits, such as altering both texture and geometry, while maintaining high photorealism. Ablation studies confirmed that the attention-based masking is critical; without it, the model tends to generate new images of the target attribute rather than editing the source image.
Conclusion
This research presents a scalable solution for automated fashion image manipulation. While diffusion models are currently slower than GANs during inference, their stability and ability to perform precise, mask-free edits make them a compelling choice for e-commerce. Future work will focus on optimizing inference speed using methods like DDIM to facilitate real-time applications.
Summary updated